Abstraction Project Site
Navigation
Home
Articles
Downloads
FAQ
Web Links
News Categories
Photo Gallery
Search
OIL - What it is.
Objectified Intermediate LanguageThe Objectified Intermediate Language is a framework I'm writing to help people generate code in three of the .NET's primary target languages. That is:
  • Visual Basic
  • Visual C♯
  • Common Intermediate Language (CIL)
Read More

Alexander Morou on May 09 2008 17:29:40 Read More · 697 Reads · Print
C# - Fast Array Initialization
.NET Framework - CILI've been researching the .NET Common Intermediate Language (CIL) lately, and I noticed a few funny things in how C# exports array initializers.

If you use a primitive type, such as Int32, Int64, Byte, SByte, and so on, instead of creating a new array and initializing each element individually, it merely creates a new array and pushes a RuntimeFieldHandle of a static field stored privately.

Now to help illustrate, lets use an example, starting with a sample C# Array:

Read More

Alexander Morou on May 05 2008 08:11:08 Read More · 3398 Reads · Print
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Copyright © 2008 Allen Copeland Jr.