DeclareOrGetLocal() private method

private DeclareOrGetLocal ( Type type, string name ) : LocalBuilder
type System.Type
name string
return System.Reflection.Emit.LocalBuilder
 internal void WriteCreateInstance(string source, bool ctorInaccessible, Type type, CodeGenerator ilg)
 {
     LocalBuilder sLoc = ilg.DeclareOrGetLocal(type, source);
     ILGenForCreateInstance(ilg, type, ctorInaccessible, ctorInaccessible);
     ilg.Stloc(sLoc);
 }