Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C#   (RSS)

Performance: Inserting Marks Using Code

Ian previously covered using the VS 2008 Data Collection Control to choose when to collect data . The Data Collection Control can also be used to insert marks into the performance report, but sometimes it is convenient to modify the source code to do

Scripting for C#

Have you ever wanted to quickly run a C# application without having to setup a new project in Visual Studio and configure all the settings? A fellow developer here at Microsoft has written a tool called Code Runner .NET that allows just that. It isn't
Posted by colinth | 1 Comments
Filed under: ,

C# For C++ Devs: ~A() doesn't act like a destructor

In C++, memory allocated with the 'new' keyword must be deallocated using 'delete' or it is not deallocated until the application finishes. A call to delete results in a call to the destructor for that class. Classes that are allocated on the stack are
Posted by colinth | 0 Comments
Filed under:

C# for C++ Devs: Generics vs Templates for Primitive Types

I was trying to write some type-generic (almost) code in C# using a pattern that I commonly use in C++. A very simple version of what I was trying to do looks something like: class B {}; template < typename T> int convert(T value) { return ( int
Posted by colinth | 3 Comments
Filed under: ,

C# for C++ Devs: Structs vs Classes

I'm from a C++ background and now I'm working quite a bit more with C# so I'm learning new things all the time. One thing that baffled me recently was caused by the difference between structs and classes in C#. In C++ the only difference between struct
Posted by colinth | 0 Comments
Filed under:
 
Page view tracker