PropertyOrFieldInfo

How to use

to print all names of Fields and Properties of TestType use:

foreach (FieldOrProperyInfo info in typeof(TestType).GetTypeInfo().GetPropertiesAndFields()) {
	Console.WriteLine(info.Name);
}

For further information about using features of this package visit this.

Download

Download this package in your NuGet Client or here Supported Frameworks:

Starting with version 1.1 C#8 nullability is provided

License

This project has been published by Tobias Brohl under MIT License.

Bug Reports

Please report any Bugs here, then I can fix them probably within 24h!

Attribution:

You can find attribution for all libraries used here.

Contribution

Please review this before contributing.