ArrayExtensionsInitializeAllT(T) Method
Initializes all the elements (that aren't already initialized) of the specified Array.
Namespace: DevCase.Extensions.ArrayExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static void InitializeAll<T>(
this T[] sender
)
where T : new()
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Sub InitializeAll(Of T As New) (
sender As T()
)
Dim sender As T()
sender.InitializeAll()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : gcnew()
static void InitializeAll(
array<T>^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member InitializeAll :
sender : 'T[] -> unit when 'T : new()
No code example is currently available or this language may not be supported.
- sender T
-
The source Array.
- T
-
The type.
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Private Sub Test()
Dim myCol As MyType() = New MyType(100) {}
myCol.InitializeAll()
MsgBox(myCol(0).MyField)
End Sub
Public NotInheritable Class MyType
Public MyField As String
Public Sub New()
Me.MyField = "Default field initialization value"
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.