[Mono-dev] RootContext.cs

Mudit Vaidya muditvaidya at gmail.com
Sun Feb 8 18:56:00 EST 2009


I am trying tc.Fields but I don't get any option to display the names of 
fields or their values. Also, I get the following exception

Unhandled Exception: System.NullReferenceException: Object reference not 
set to
an instance of an object
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000]
  at Mono.CSharp.Driver.Compile () [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

when I try to use ToString  like tc.Fields.ToString




Marek Safar wrote:
> Hi,
>> I am trying to find out what variables were contained in the c# file 
>> parsed by mcs. I am looking in RootContext.cs where the whole 
>> structure is created but I am unable to access the variables of the 
>> class.
>> Any help appreciated.
>>
>>   
> I don't know what information you need but type fields are stored in 
> TypeContainer::Fields
>
> Marek
>


More information about the Mono-devel-list mailing list