/// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType);

            declaringType.Add(type);
            return(type);
        }
Пример #2
0
        /// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType, string fullScopeId)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType, fullScopeId);
            if(declaringType != null)
                declaringType.Add(type);

            module.Register(type);
            return type;
        }
Пример #3
0
        /// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType, string fullScopeId)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType, fullScopeId);

            if (declaringType != null)
            {
                declaringType.Add(type);
            }

            module.Register(type);
            return(type);
        }
Пример #4
0
 /// <summary>
 /// Create a synthetic field and add it to the given declaring type.
 /// </summary>
 public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType)
 {
     var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType);
     declaringType.Add(type);
     return type;
 }
Пример #5
0
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nestedTypes.Add(nestedType);
     Reset();
 }
Пример #6
0
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal abstract void Add(XSyntheticTypeDefinition nestedType);
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nestedTypes.Add(nestedType);
     Reset();
 }
Пример #8
0
 /// <summary>
 /// Add the given generated nested type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     throw new NotImplementedException();
 }
Пример #9
0
 /// <summary>
 /// Add the given generated nested type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nested.Add(nestedType);
     addedNestedTypesCount++;
 }