TypeNameKind Enumeration

Assembly: CodeEffects.Rule.Editor.dll
Namespace: CodeEffects.Rule.Editor.Models

Summary

Specifies which form of a .NET type's name the static methods of the Source class write into the source elements they build. A type that carries a SourceAttribute with a TypeOrAliasName always uses that alias, whatever the value.

Syntax

public enum TypeNameKind
{
	AssemblyQualifiedName = 0,
	FullName = 1,
	Name = 2
}

Fields

  • AssemblyQualifiedName

    Value: 0

    The assembly-qualified name of the type (System.Type.AssemblyQualifiedName).

  • FullName

    Value: 1

    The full name of the type, namespace included (System.Type.FullName).

  • Name

    Value: 2

    The simple name of the type, without the namespace (System.Type.Name).

Example

var fields = Source.GetFields(typeof(Loan), TypeNameKind.FullName);

Ask on Stack Overflow - Yes, it's still active
Ask in GitHub Discussions

p102

l097 --

l102

p101

×