public ImmutableSample(int number, string text, ImmutableSubSample subSample, SampleEnumeration digit, Func <int> function) { this.number = number; this.text = text; this.subSample = subSample; this.digit = digit; this.function = function; this.foo = new Foo(); this.readOnlyCollection = new ReadOnlyCollection <int>(new List <int>()); }
public ImmutableSample(int number, string text, ImmutableSubSample subSample, SampleEnumeration digit, Func<int> function) { this.number = number; this.text = text; this.subSample = subSample; this.digit = digit; this.function = function; this.foo = new Foo(); this.readOnlyCollection = new ReadOnlyCollection<int>(new List<int>()); }