Iterators In VNext And Limitations Of Iterators In C#?

Oct 31, 2010

I just saw on the Async CTP website that the next version of VB.NET will have iterators. I guess they included iterators because the rewriting process is similar to the one used for the new async/await feature.But reading the document that explains the feature, I realized that VB.NET iterators will actually have features that are not available in C# today, namely:

iterator blocks in a try/catch block
anonymous iterator blocks

These were known limitations in C#. Is there any chance that these limitations will be removed in C# 5 ? If not, is there any reason why it can be done in VB.NET and not in C# ?

View 1 Replies


ADVERTISEMENT

C# - Clever Uses Of .Net 2 Iterators?

Jan 22, 2010

C# 2 and VB.Net 8 introduced a new feature called iterators, which were designed to make it easier to return enumerables and enumerators.However, iterators are actually a limited form of coroutines, and can be used to do many useful things that have nothing to do with collections of objects.

What non-standard uses of iterators have you seen in real code?

View 5 Replies

C# - Webbrowser Control Limitations?

Sep 30, 2009

I am using the WebBrowser control in a windows form C# project and wanted to know if there are any limitations of how many instances of such application you can have running at the same time. (in other words does MSFT enforce any limitations other than physical machine limits - CPU/memory etc)

View 3 Replies

Communications :: Limitations Of A Tcp /udp Server

May 27, 2010

For my next project i'll have to create a TCP or UDP server based application. I know how to program a server but i am interested on the limitations of such servers.

how many connections a server may be able to handle at the same time. I suspect that this limitation is based on the type of transfer and how much data or how often it is send to the server.

I also read somewhere that a windows program is limited to 25 threads (connections) per core so if i would have a quad core i can have a maximum of 99 connections granted that the server itself is also a thread. Is that correct?

If the above is correct i wonder how to handle let's say 200 users at the same time. There must be some form / way to handle bigger request loads.

View 3 Replies

Using Express Edition Limitations?

Jun 23, 2009

I want to use the free express edition but am concerned about limitations. Wikepedia mentions "Limited options for debugging and breakpoints" as one limitation. None of of the other limitations mentioned concerned me.

View 2 Replies

Limitations Of Excel Resize Method

Jul 9, 2010

I am loading a considerable amount of data from SQL into Excel. For specific reasons, I need to use the Resize method with an array when loading data to Excel.I have found a condition where the size of a cell/row causes the Resize method to crash. I have not found any doco anywhere that shows a Resize limit. My array is OK. My code is OK. But, the data for one row is very large - one field that I am trying to load to a cell has 1097 characters. I have breakpointed the code to assure that this one is the culprit.[code]Does anyone know of any size limits when using Resize. The total number of bytes being written to the row is 1402.Anyone know limits on length for Resize or "overrides" to handle this?

View 1 Replies

Practical Limitations With Assemblies Not Marked As CLS Compliant?

Mar 21, 2012

As an OSS library author, I've always tried to make my stuff CLS compliant. But MS doesn't make this easy. They often put you in catch-22 situations, such as the following:You cannot have a protected variable differing only in case from the public property.You cannot have protected or public variables starting in an underscore or 'm_'. If you want to make a class really extensible, you often need to have protected variables matching public properties. Your least ugly exit is to add a suffix to the variable, like "Var" or "Value". That's nasty and unacceptable to me. I like clean code.I know of no .NET languages that don't support variables starting in an underscore, and I've used them in many places where the variable needs to be visible to subclasses.

I'm tired of the warnings, and I'm planning on turning off CLS compliance at the assembly level on my 30+ C# libraries.Are there any actual problems with turning off CLS compliance on libraries? Any real problems with doing this? Microsoft has issued unheedable guidance on software for decades, with less that 5% of it being worth the bytes it was encoded in. I can't find any evidence that this best practice has any real effect on anything. But, to be careful, I'm checking. And no, this is not a duplicate of the inverse of this question: Any reason not to mark a DLL as CLSCompliant?I'm looking for actual results and effects here, not the advice of a MS intern. For example, if IronPython, IronRuby, or F# are unable to read or write a variable starting with an underscore, that's an effect, although it would only cause a problem for users subclassing certain objects. If a language or tool is completely unable to use an assembly unless it is marked CLS compliant, now that's a big deal.

View 2 Replies

C# - Understanding Floating Point Limitations In Calculations

Jan 12, 2011

How to determine when floating point limitations will cause errors in your calculations. For example the following code.
CalculateTotalTax = function (TaxRate, TaxFreePrice) {
return ((parseFloat(TaxFreePrice) / 100) * parseFloat(TaxRate)).toFixed(4);
};

I have been unable to input any two values that have caused for me an incorrect result for this method. If I remove the toFixed(4) I can infact see where the calculations start to lose accuracy (somewhere around the 6th decimal place). Having said that though, my understanding of floats is that even small numbers can sometimes fail to be represented or have I misunderstood and can 4 decimal places (for example) always be represented accurately.

MSDN explains floats as such... This means they cannot hold an exact representation of any quantity that is not a binary fraction (of the form k / (2 ^ n) where k and n are integers). Now I assume this applies to all floats (inlcuding those used in javascript). How can one determine if any specific method will be vulnerable to errors in floating point operations, at what precision will those errors materialize and what inputs will be required to produce those errors?

View 5 Replies

Limitations Of OLEDB Connection When Reading Excel File?

Feb 15, 2012

I have this program that uses OLEDB connection to import excel file to data table then use it in other functions.Now I have this question: What are the possible limitations of OLEDB when it reads the Excel file. The File is on xls format, and I want to know if there is such limitations(for example: It has limitation in reading value on a cell).

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved