Example #1
0
        public ParameterizedTypeName(FlyweightFactory factory, TypeInfo typeInfo)
        {
            Parent   = factory.GetNamespaceName(typeInfo.Namespace);
            CoreName = GetCoreName(typeInfo.Name);

            GenericTypeArgumentNames = factory.GetTypeNames(typeInfo.GenericTypeParameters);

            TypeFullName = typeInfo.FullName;
        }
Example #2
0
        public ParameterizedTypeName(FlyweightFactory factory, Type type)
        {
            Parent   = factory.GetNamespaceName(type.Namespace);
            CoreName = GetCoreName(type.Name);

            GenericTypeArgumentNames = factory.GetTypeNames(type.GenericTypeArguments);

            IsConstructed = true;

            TypeFullName = type.FullName;
        }
Example #3
0
 public NonParameterizedTypeName(FlyweightFactory factory, Type type)
 {
     Parent       = factory.GetNamespaceName(type.Namespace);
     Name         = type.Name;
     TypeFullName = type.FullName;
 }
Example #4
0
 public NullableTypeName(FlyweightFactory factory, Type type)
 {
     UnderlyingTypeName = factory.GetTypeName(Nullable.GetUnderlyingType(type));
     _System            = factory.GetNamespaceName(nameof(System));
     TypeFullName       = type.FullName;
 }