C
Christina Androne
I've read the docs and evrything seems fine. Then what I am missing ?
This is the code snippet:
try
{
Assembly LAssembly = Assembly.LoadFrom(args[0]);
Type[] LTypes = LAssembly.GetTypes();
foreach (Type LType in LTypes)
{
if (LType.IsClass)
{
Console.WriteLine ("Type Name : {0}", LType.FullName);
try
{
foreach (FieldInfo LFieldInfo in
LType.GetFields(BindingFlags.Public | BindingFlags.NonPublic))
{
Console.WriteLine ("{0}", LFieldInfo.Name);
}
Console.WriteLine("__");
}
catch (Exception LEx)
{
Console.WriteLine(LEx.Message);
}
}
}
}
catch (Exception LEx)
{
Console.WriteLine(LEx.Message);
}
The assembmly is ok, i get all types in it listed but I can't list the
fields! What am I missing ????
Christina Androne
This is the code snippet:
try
{
Assembly LAssembly = Assembly.LoadFrom(args[0]);
Type[] LTypes = LAssembly.GetTypes();
foreach (Type LType in LTypes)
{
if (LType.IsClass)
{
Console.WriteLine ("Type Name : {0}", LType.FullName);
try
{
foreach (FieldInfo LFieldInfo in
LType.GetFields(BindingFlags.Public | BindingFlags.NonPublic))
{
Console.WriteLine ("{0}", LFieldInfo.Name);
}
Console.WriteLine("__");
}
catch (Exception LEx)
{
Console.WriteLine(LEx.Message);
}
}
}
}
catch (Exception LEx)
{
Console.WriteLine(LEx.Message);
}
The assembmly is ok, i get all types in it listed but I can't list the
fields! What am I missing ????
Christina Androne