Esempio n. 1
0
        /// <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"));
        }
Esempio n. 2
0
        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")));
        }
Esempio n. 3
0
 /// <summary>
 /// Add the given generated nested type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 /// <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);
 }