Skip to content

Repository files navigation

SimpleInfoName

Build statusNuGet Status

Generates names for reflection infos. Adds a SimpleName() extension method to the following types.

  • Type
  • ParameterInfo
  • PropertyInfo
  • FieldInfo
  • MethodInfo
  • ConstructorInfo

See Milestones for release notes.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

Developed using JetBrains IDEs

JetBrains logo.

NuGet

Usage

Given a class definition of:

namespaceMyNamespace{publicclassParent<T>;
public class Target<K>:Parent<int>{publicTarget(){}publicstringProperty{get;set;}=null!;publicstringfield=null!;publicvoidMethod<Y,D>(List<D>parameter){}}}

snippet source | anchor

And a constructed type of Target<int>.

The simple names would be:

TypeTarget<int>
Compared to Type.FullName of
MyNamespace.Target'1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
ConstructorTarget<int>.ctor()
MethodTarget<int>.Method(List<bool> parameter)
Parameter'parameter' of Target<int>.Method(List<bool> parameter)
FieldTarget<int>.field
PropertyTarget<int>.Property

Icon

Complex designed by auttapol from The Noun Project.

About

Generates simple names for *Infos (types, parameters, properties, fields, and methods)

Resources

Code of conduct

Stars

18 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages