BindingFlags « Reflection « C# / C Sharp






1.Use BindingFlags Instance and NonPublic
2.Print Method Info: BindingFlags
3.Searches for the constructors defined for the current Type, using the specified BindingFlags.
4.GetConstructors(BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Instance)
5.Using difference BindingFlags to get method
6.BindingFlags.Public | BindingFlags.Instance
7.BindingFlags.NonPublic|BindingFlags.Instance|BindingFlags.DeclaredOnly
8.Get Nested Types with BindingFlags
9.Get Properties with BindingFlags