Inheritance: System.Reflection.ConstructorInfo
示例#1
0
 internal override ConstructorInfo GetConstructor(ConstructorInfo fromNoninstanciated)
 {
     ctors ??= new Dictionary <ConstructorInfo, ConstructorInfo>();
     if (!ctors.TryGetValue(fromNoninstanciated, out ConstructorInfo? ci))
     {
         ctors[fromNoninstanciated] = ci = new ConstructorOnTypeBuilderInst(this, fromNoninstanciated);
     }
     return(ci);
 }
示例#2
0
 internal override ConstructorInfo GetConstructor(ConstructorInfo fromNoninstanciated)
 {
     if (ctors == null)
     {
         ctors = new Hashtable();
     }
     if (!ctors.ContainsKey(fromNoninstanciated))
     {
         ctors [fromNoninstanciated] = new ConstructorOnTypeBuilderInst(this, fromNoninstanciated);
     }
     return((ConstructorInfo)ctors [fromNoninstanciated]);
 }
示例#3
0
 internal override ConstructorInfo GetConstructor(ConstructorInfo fromNoninstanciated)
 {
     if (ctors == null)
     {
         ctors = new Dictionary <ConstructorInfo, ConstructorInfo>();
     }
     if (!ctors.ContainsKey(fromNoninstanciated))
     {
         ctors[fromNoninstanciated] = new ConstructorOnTypeBuilderInst(this, fromNoninstanciated);
     }
     return(ctors[fromNoninstanciated] !);
 }
示例#4
0
		internal override ConstructorInfo GetConstructor (ConstructorInfo fromNoninstanciated)
		{
			initialize ();

			if (ctors == null)
				ctors = new Hashtable ();
			if (!ctors.ContainsKey (fromNoninstanciated))
				ctors [fromNoninstanciated] = new ConstructorOnTypeBuilderInst (this, fromNoninstanciated);
			return (ConstructorInfo)ctors [fromNoninstanciated];
		}
示例#5
0
		internal override ConstructorInfo GetConstructor (ConstructorInfo fromNoninstanciated)
		{
			initialize ();

			if (!(fromNoninstanciated is ConstructorBuilder))
				throw new InvalidOperationException ("Inflating non ConstructorBuilder objects is not supported: " + fromNoninstanciated.GetType ());

			ConstructorBuilder cb = (ConstructorBuilder)fromNoninstanciated;
			if (ctors == null)
				ctors = new Hashtable ();
			if (!ctors.ContainsKey (cb))
				ctors [cb] = new ConstructorOnTypeBuilderInst (this, cb);
			return (ConstructorInfo)ctors [cb];
		}