ModelReaderWriterTypeBuilder.GetItems(Object) Method      
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an IEnumerable representation of the passed in collection.
protected virtual System.Collections.IEnumerable? GetItems(object collection);abstract member GetItems : obj -> System.Collections.IEnumerable
override this.GetItems : obj -> System.Collections.IEnumerableProtected Overridable Function GetItems (collection As Object) As IEnumerableParameters
- collection
- Object
Returns
An IEnumerable representation if its a collection otherwise null.
Remarks
This is only needed when the collection passed into Write(Object, ModelReaderWriterOptions, ModelReaderWriterContext) does not implement IEnumerable. In this case you must implement this method to return an IEnumerable.