Christian Nagel's OneNotes

.NET Training, Consulting, Coaching - C#, Web Services, Enterprise Services, ASP.NET, Whidbey, Longhorn and More!

Affiliations

Books I've written

INETA UG Leaders

My Blogroll

Browse by Tags

All Tags » Language (RSS)
C#: The Party Just Started
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...
Posted: Aug 20 2005, 05:55 PM by CNagel | with 4 comment(s)
Filed under:
Nullable Types change the runtime
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...
Posted: Aug 12 2005, 10:55 PM by CNagel | with 2 comment(s)
Filed under: ,
C++/CLI, IDisposable and Finalize
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...
Posted: Apr 27 2005, 09:15 PM by CNagel | with 3 comment(s)
Filed under:
C# 2.0 and C++/CLI Event
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...
Posted: Apr 20 2005, 09:58 AM by CNagel | with 3 comment(s)
Filed under:
C++/CLI: Pointer Arithmetic with Embedded Value Types
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>...
Posted: Mar 15 2005, 10:22 AM by CNagel | with no comments
Filed under: ,
Predicates with .NET 2.0
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...
Posted: Mar 10 2005, 10:06 AM by CNagel | with 4 comment(s)
Filed under: ,
Generic Methods
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...
Generic Delegates and Anonymous Methods
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...
Posted: Mar 04 2005, 03:16 PM by CNagel | with 9 comment(s)
Filed under: ,
C++/CLI Value Types and Memory Location
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...
Posted: Feb 28 2005, 02:05 PM by CNagel | with 3 comment(s)
Filed under: ,
Dispose and Finalize with C++/CLI, C# and VB
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 »