/// <summary> /// Create the XType for this builder. /// </summary> protected override XTypeDefinition CreateXType(XTypeDefinition parentXType) { var baseType = Compiler.GetDot42InternalType("EnumInfo"); return(XSyntheticTypeDefinition.Create(Compiler.Module, parentXType, XSyntheticTypeFlags.Private, null, ClassName, baseType, parentXType.ScopeId + ":Info")); }
protected override XTypeDefinition CreateXType(XTypeDefinition parentXType) { var typeDef = (XBuilder.ILTypeDefinition)XBuilder.AsTypeReference(Compiler.Module, Type) .Resolve(); string name = NameConverter.GetNullableClassName(typeDef.Name); XSyntheticTypeFlags xflags = default(XSyntheticTypeFlags); return(XSyntheticTypeDefinition.Create(Compiler.Module, parentXType, xflags, typeDef.Namespace, name, Compiler.Module.TypeSystem.Object, string.Join(":", Type.Scope.Name, Type.MetadataToken.ToScopeId(), "Nullable"))); }
/// <summary> /// Add the given generated nested type to this type. /// </summary> internal override void Add(XSyntheticTypeDefinition nestedType) { throw new NotImplementedException(); }
/// <summary> /// Add the given generated nestedt type to this type. /// </summary> internal abstract void Add(XSyntheticTypeDefinition nestedType);
/// <summary> /// Add the given generated nested type to this type. /// </summary> internal override void Add(XSyntheticTypeDefinition nestedType) { nested.Add(nestedType); addedNestedTypesCount++; }
/// <summary> /// Add the given generated nested type to this type. /// </summary> internal override void Add(XSyntheticTypeDefinition nestedType) { nested.Add(nestedType); }