Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Where live struct with reference type as a property
  2. struct TestStruct
  3. {
  4.  static TestClass[] Instances = new TestClass[16];
  5.  int uid; //max value = 15
  6.  TestClass Instance
  7.  {
  8.   get { return Instances[uid]; }
  9.  }
  10. }