コード例 #1
0
 internal XImmutableArray(T[] values)
 {
     this.values      = values ?? throw new ArgumentNullException(nameof(values));
     this.elementCode = System.Type.GetTypeCode(typeof(T));
     this.elementType = XHelper.GetElementType(this.elementCode);
 }
コード例 #2
0
 internal XSet(HashSet <T> values)
 {
     this.values      = values ?? throw new ArgumentNullException(nameof(values));
     this.elementCode = System.Type.GetTypeCode(typeof(T));
     this.elementType = XHelper.GetElementType(this.elementCode);
 }