Example #1
0
        public static TypeDescriptor Create(TypeDescriptorKind tag, Maybe<int> maximumItems)
        {
            if (maximumItems == null) throw new ArgumentNullException("maximumItems");

            return new TypeDescriptor(tag, maximumItems);
        }
Example #2
0
 private TypeDescriptor(TypeDescriptorKind tag, Maybe<int> maximumItems)
 {
     this.tag = tag;
     this.maximumItems = maximumItems;
 }