/// <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++;
 }