ClientBase<TChannel>.GetDefaultValueForInitialization<T> Method ()


Replicates the behavior of the default keyword in C#.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected T GetDefaultValueForInitialization<T>()

Return Value

Type: T

Returns null if T is a reference type and zero if T is a numeric value type.

Type Parameters


The type that is identified as reference or numeric by the keyword.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top