OneOrMany<T> Constructors
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.
Overloads
OneOrMany<T>(List<T>) |
Creates an instance of OneOrMany<T> using the given list as the content. |
OneOrMany<T>(Int32) |
Creates an instance of OneOrMany<T> that will use the given capacity to create its internal list. |
OneOrMany<T>(T) |
Creates an instance of OneOrMany<T> using the given object as the content. |
OneOrMany<T>(List<T>)
Creates an instance of OneOrMany<T> using the given list as the content.
public OneOrMany (System.Collections.Generic.List<T> list);
new Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)> : System.Collections.Generic.List<'T (requires 'T : null)> -> Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)>
Public Sub New (list As List(Of T))
Parameters
- list
- List<T>
Applies to
OneOrMany<T>(Int32)
Creates an instance of OneOrMany<T> that will use the given capacity to create its internal list.
public OneOrMany (int capacity);
new Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)> : int -> Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)>
Public Sub New (capacity As Integer)
Parameters
- capacity
- Int32
Applies to
OneOrMany<T>(T)
Creates an instance of OneOrMany<T> using the given object as the content.
public OneOrMany (T data);
new Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)> : 'T -> Microsoft.VisualStudio.Utilities.OneOrMany<'T (requires 'T : null)>
Public Sub New (data As T)
Parameters
- data
- T