C# - .NET MASTERS BLOG ®

Saturday, April 18, 2009

C# Secret Command

Yes C# has secret commands which microsoft do not tell us.Here is on of them

int x = 13;
TypedReference tRef = __makeref(x);
int g = __refvalue(tRef,int);

   typed references are objects that contain both a managed pointer to a location and a runtime representation of the type that may be stored at that location.

Posted by BLacKNeuron at 2:03 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (13)
    • ►  November (11)
    • ►  September (1)
    • ►  May (1)
  • ►  2013 (7)
    • ►  July (6)
    • ►  June (1)
  • ►  2012 (3)
    • ►  January (3)
  • ►  2011 (10)
    • ►  December (3)
    • ►  February (7)
  • ►  2010 (9)
    • ►  December (4)
    • ►  June (5)
  • ▼  2009 (26)
    • ►  May (4)
    • ▼  April (20)
      • Pollard’s Rho factoring algorithm in C#
      • Reflection
      • LU Decomposition and Linear Equation Solving in c#
      • tricky or idiomatic
      • Mixin ins in c# or code extensions
      • Lock
      • Threading Made Easy
      • Hyacinth yet another messenger program
      • Threading
      • I Want a Parliament Blue Gradient ToolStrip
      • C# Secret Command
      • Tips
      • Performance Issues
      • CONDITIONAL ATTRIBUTE
      • Automatic Typed DataSet Generator
      • Serialization
      • Access Control For Forms
      • Image to byte Array
      • Point Struct
      • Advanced Text Box
    • ►  March (1)
    • ►  February (1)
  • ►  2008 (3)
    • ►  December (1)
    • ►  November (1)
    • ►  January (1)
  • ►  2007 (1)
    • ►  October (1)

About Me

BLacKNeuron
View my complete profile
Simple theme. Powered by Blogger.