BH.oM.Base.FragmentSet¶
Class structure¶
Implemented interfaces and base types¶
The FragmentSet is inheriting from the following base type(s) and implements the following interfaces:
- KeyedCollection<Type, BH.oM.Base.IFragment>
- Collection<BH.oM.Base.IFragment>
- IList<BH.oM.Base.IFragment>
- ICollection<BH.oM.Base.IFragment>
- IEnumerable<BH.oM.Base.IFragment>
- IEnumerable
- IList
- ICollection
- IReadOnlyList<BH.oM.Base.IFragment>
- IReadOnlyCollection<BH.oM.Base.IFragment>
- BH.oM.Base.IObject
Properties¶
Inherited properties¶
The following properties are inherited from the base class of the object
Name | Type | Description | Quantity |
---|---|---|---|
Comparer | IEqualityComparer<Type> | - | - |
Item | IFragment | - | - |
Count | int | - | - |
Item | IFragment | - | - |
Code and Schema¶
C# implementation¶
C#
public class FragmentSet : System.Collections.ObjectModel.KeyedCollection<System.Type, BH.oM.Base.IFragment>,
System.Collections.ObjectModel.Collection<BH.oM.Base.IFragment>,
System.Collections.Generic.IList<BH.oM.Base.IFragment>,
System.Collections.Generic.ICollection<BH.oM.Base.IFragment>,
System.Collections.Generic.IEnumerable<BH.oM.Base.IFragment>,
System.Collections.IEnumerable,
System.Collections.IList,
System.Collections.ICollection,
System.Collections.Generic.IReadOnlyList<BH.oM.Base.IFragment>,
System.Collections.Generic.IReadOnlyCollection<BH.oM.Base.IFragment>,
BH.oM.Base.IObject
Assembly: BHoM.dll
The C# class definition is available on github:
All history and changes of the class can be found by inspection the history.
JSON Schema implementation¶
The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.
JSON Schema
{
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/BHoM/FragmentSet.json"
}
The JSON Schema is available on github here: