AccidentalFish.ApplicationSupport.Core.Naming.FullyQualifiedNameBase.FullyQualifiedNameBase C# (CSharp) Метод

FullyQualifiedNameBase() публичный Метод

Construct the name from the a type. The type must be decorated with ComponentIdentityAttribute.
public FullyQualifiedNameBase ( Type type ) : System
type System.Type The type to pull the name from
Результат System
        public FullyQualifiedNameBase(Type type)
        {
            object[] attributes = type.GetCustomAttributes(typeof (ComponentIdentityAttribute), true);
            _fullyQualifiedName = ((ComponentIdentityAttribute) attributes[0]).FullyQualifiedName;
        }

Same methods

FullyQualifiedNameBase::FullyQualifiedNameBase ( string fullyQualifiedName ) : System