Skip to main content

Home/ Coders/ Group items tagged .net reference

Rss Feed Group items tagged

Joel Bennett

The Performance of Arrays - Chris Burrows - 2 views

  • arrays of reference types are covariant in their element type, but not safely
  • where did that exception come from? It came from the runtime, which was in a unique position to know what the real type of the array object was, and the real type of the element. It needed to determine if the assignment was allowable and throw if not. Now if you think about this for a minute, you can see that it’s going to have to perform that check for every assignment to an array element
  • arrays are covariant only for reference types?
  • ...3 more annotations...
  • So if I want to have an array of reference types, but get the runtime to treat it like an array of value types, what have I got to do? Just wrap the reference type in a value type
  • So I got rid of that check, right? But I added the initialization of a value type. Did I win or lose? Let’s do some timing to figure it out.
  • when I build Debug binaries, the Reference<T> trick makes my example about three times SLOWER.
  •  
    Arrays are covariant only for reference types. If you use a struct wrapper to turn a reference type into a value type, the initialization of the value type takes less time than array assignment.
Joel Bennett

Guide to creating Expression blend 3 addins « Burela's house-o-blog - 1 views

  •  
    "There isn't much information available for creating Expression blend 3 addins. There is some information on creating blend 2 plugins, but the addin model has changed between versions."
Joel Bennett

Microsoft SDKs - 0 views

  •  
    All the Microsoft SDKs in one place...
Joel Bennett

The Weekly Source Code 34 - The Rise of F# - Scott Hanselman's Computer Zen - 0 views

  •  
    Everyone is agog over F# and getting all functional. Again...
Joel Bennett

Ian Griffiths' Weblog on WPF and .Net development - 0 views

  •  
    Ian's blog has some great in-depth articles focused on whateever is the latest and greatest in .Net...
Joel Bennett

Concurrency: What Every Dev Must Know About Multithreaded Apps -- MSDN Magazine, August... - 0 views

  •  
    A comprehensive guide to the basics of multithreaded development...
Joel Bennett

Tracing in .NET and Implementing Your Own Trace Listeners - 0 views

  • TextWriterTraceListener
  •  
    A good place to start if you want to do trace or debug messages from .NET, this article explains the differences between trace and debug, how you can turn them on and off, and how you can set them to trace to file or event log without recompiling. Excellent.
Joel Bennett

Using C++ Interop (Implicit PInvoke) - 0 views

  • C++ Interop is recommended over explicit PInvoke because it provides better type safety, is typically less tedious to implement, is more forgiving if the unmanaged API is modified, and makes performance enhancements possible that are not possible with explicit PInvoke.
  • C++ Interop allows COM components to be accessed at will and does not require separate interop assemblies
  •  
    Because it is the language of the native APIs, Visual C++ has a special status on Windows which makes it  the best language for interacting with the platform APIs -- whether those are pure C++ APIs or COM components. This is partly due to the fact that unlike other .NET languages, Visual C++ allows managed and unmanaged code to exist in the same application
    and even in the same file ... allowing integration with existing apps and platform APIs that is just not possible in other .NET languages.
Joel Bennett

.NET Book Zero by Charles Petzold - 1 views

  •  
    Charles Petzold's free .Net Book Zero is a great introduction to .Net and C# for the C/C++ programmer ... if you're a Windows programmer who's been curious about C# but haven't known where to start, this is where.
  •  
    How to make $ 40,000 in one month with very quickly. What you need. The latest American news article. Immediately visit
    www.killdo.de.gg
    www.fiverr.de.gg
    www.newss.de.gg
    www.reddit.de.gg
    www.newsbbc.de.gg
1 - 10 of 10
Showing 20 items per page