Inheritance: System.Reflection.ConstructorInfo
Exemplo n.º 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);
 }
Exemplo n.º 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]);
 }
Exemplo n.º 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] !);
 }
Exemplo n.º 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];
		}
Exemplo n.º 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];
		}