Microsoft.JScript.JSMemberField.GetAsConstructors C# (CSharp) 메소드

GetAsConstructors() 개인적인 메소드

private GetAsConstructors ( Object proto ) : System.Reflection.ConstructorInfo[]
proto Object
리턴 System.Reflection.ConstructorInfo[]
      internal ConstructorInfo[] GetAsConstructors(Object proto){
        JSMemberField field = this;
        int n = 0;
        while (field != null){
          field = field.nextOverload;
          n++;
        }
        ConstructorInfo[] result = new ConstructorInfo[n];
        field = this;
        n = 0;
        while (field != null){
          Debug.Assert(field.IsLiteral);
          FunctionObject func = (FunctionObject)field.value;
          func.isConstructor = true;
          func.proto = proto;
          result[n++] = new JSConstructor(func);
          field = field.nextOverload;
        }
        return result;
      }