Browse by Tags
All Tags »
Language (
RSS)
Calvin Austin wrote an article C#: Is The Party Over? for JDJ. This article has a lot of misleading and wrong information. What can be expected from an article for a Java magazine? Contrary on that, in my opinion the party just started ;-) C# 2.0 has...
With Visual Studio 2005, the CTP August 2005 has new runtime features for Nullable types. Nullable types had unexpected behavior with boxing to Object (null is lost). This behavior could only be changed by changing the runtime. Somasgear explains with...
With Beta 2, C++/CLI changed the code that is generated with the destructor (~Class) and the explicit finalize (!Class). It's a great improvement! Now the Dispose(true) pattern for embedded objects is implemented with this code that just contains a destructor...
Last week I've done an INETA sponsored talk for the .NET User Group Styria , thanks to the invitation of Klaus Aschenbrenner . The attendees have been zealous from possibilities of generics and anonymous methods. Some more information about generics and...
With C++/CLI it is possible to use the interior_ptr<> keyword for using pointer arithmetic with value types that are embedded in a managed class. The array keyword is used to create .NET arrays. Here the array consists of 8 int values. array<int>...
In a previous blog entry I've shown the transformation of the Accumulate method from a traditional implementation to a generic implementation where the action is passed. This was the result of the last version that does something to every object in a...
Following my blog about Generic Delegates and Anonymous Methods , here is more: Generics and anonymous methods can make code a lot more flexible. Following I show different ways to accumulate the balance of Account objects. The Account class is a simple...
Generics and anonymous methods are great improvements of C#. Having a generic collection persons of type List<Person>, the objects of the collection can be accessed with a simple foreach statement: foreach (Person p in persons) { Console.WriteLine...
With C++/CLI value types can be put on the stack, or on the native or managed heaps. value class MyData { property int Simple; }; Declaring the variable locally, the object is put on the stack. MyData d1; d1.Simple = 11; Using the pointer syntax, the...
Depending on the .NET language more or less of implementing resource management with the interface IDisposable and the finalizer is hidden. Interestingly, with VB nothing is hidden - however all the code is created automatically with Visual Studio 2005...
More Posts
Next page »