Click here to Skip to main content
15,896,154 members
Articles / Programming Languages / C#

Reflection Explorer

Rate me:
Please Sign up or sign in to vote.
3.80/5 (3 votes)
11 Jul 20064 min read 20.5K   563   16  
Using reflection as a runtime debugger, and to load/save settings files.
using System;
using RefExpNS;

namespace TestRefExp
{

	public struct STRUCT1
	{
		public STRUCT2 [] struct2;
	};
	

	public struct STRUCT2
	{
		public int [] arrInt;
	

	};
	/// <summary>
	/// Summary description for Class5.
	/// </summary>
	public class Class5:RefExpNS.LSRef
	{
		public 	STRUCT1 s1;
		public Class5()
		{
	
			s1.struct2=new STRUCT2[3];
			
			s1.struct2[0].arrInt=new int[10];
			s1.struct2[1].arrInt=new int[10];
			s1.struct2[2].arrInt=new int[10];
			s1.struct2[2].arrInt[1]=1;
			s1.struct2[2].arrInt[4]=4;



		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions