示例#1
0
        public NamesMoreThanParamCount(ISampleContractA defaultA, ISampleContractA namedA, ISampleContractB defaultB, ISampleContractB namedB)
        {
            _defaultA = defaultA;
            _namedA   = namedA;

            _defaultB = defaultB;
            _namedB   = namedB;
        }
        public NamesLessThanParamCount(ISampleContractA defaultA, ISampleContractA namedA, ISampleContractB defaultB, ISampleContractB unnamedB)
        {
            _defaultA = defaultA;
            _namedA   = namedA;

            _defaultB = defaultB;
            _unnamedB = unnamedB;
        }
示例#3
0
 public MultiConstructorsWithDefault(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }
示例#4
0
 public MultiConstructorsWithDefault(ISampleContractA a)
 {
     _a = a;
     _b = null;
     _invokedConstructor = 2;
 }
示例#5
0
 public MultiConstructorsWithDefault()
 {
     _a = null;
     _b = null;
     _invokedConstructor = 1;
 }
示例#6
0
 private PrivateMarkedConstructor(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }
示例#7
0
// ReSharper disable UnusedMember.Local
        private PrivateDefaultSingleConstructor()
        {
            _a = null;
            _b = null;
            _invokedConstructor = 1;
        }
示例#8
0
 public NoDefaultMultipleUnmarkedConstructors(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }
 public SingleNonDefaultConstructor(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }
 public PrivateDefaultNoneMarkedFromOtherConstructors(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }
 public MultipleMarkedConstructors(ISampleContractA a, ISampleContractB b)
 {
     _a = a;
     _b = b;
     _invokedConstructor = 3;
 }