public ParameterizedTypeName(FlyweightFactory factory, TypeInfo typeInfo) { Parent = factory.GetNamespaceName(typeInfo.Namespace); CoreName = GetCoreName(typeInfo.Name); GenericTypeArgumentNames = factory.GetTypeNames(typeInfo.GenericTypeParameters); TypeFullName = typeInfo.FullName; }
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; }
public NonParameterizedTypeName(FlyweightFactory factory, Type type) { Parent = factory.GetNamespaceName(type.Namespace); Name = type.Name; TypeFullName = type.FullName; }
public NullableTypeName(FlyweightFactory factory, Type type) { UnderlyingTypeName = factory.GetTypeName(Nullable.GetUnderlyingType(type)); _System = factory.GetNamespaceName(nameof(System)); TypeFullName = type.FullName; }