G
Guest
hello
Can any one please tell me the order in which GetConstructors(BindingFlags) function returns the constructors? This is because in C# the function takes the constructors in the order in which they are defined but in J# it always takes static construtors at last
This resulted in change in output of J# as compared to C#
The actual code is
// <Snippet2
import System .*
import System.Reflection .*
public class
public t()
} //
stati
} //
public t(int i
} //
public static void main(String[] args
ConstructorInfo p[] = t .class.ToType().GetConstructors
(BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPubli
| BindingFlags.Instance))
Console.WriteLine(p.length)
for(int i=0;i< p.length;i++)
Console.WriteLine(p.get_IsStatic())
}
} //mai
} //
// </Snippet2
Thanks
Can any one please tell me the order in which GetConstructors(BindingFlags) function returns the constructors? This is because in C# the function takes the constructors in the order in which they are defined but in J# it always takes static construtors at last
This resulted in change in output of J# as compared to C#
The actual code is
// <Snippet2
import System .*
import System.Reflection .*
public class
public t()
} //
stati
} //
public t(int i
} //
public static void main(String[] args
ConstructorInfo p[] = t .class.ToType().GetConstructors
(BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPubli
| BindingFlags.Instance))
Console.WriteLine(p.length)
for(int i=0;i< p.length;i++)
Console.WriteLine(p.get_IsStatic())
}
} //mai
} //
// </Snippet2
Thanks