Cuemon .NET Framework
Create<T> Method (DefaultOr)

The type of the instance to return.
The instance to intermediate.
Initializes a new instance of the DefaultOr<T> class.
Syntax
'Declaration
 
Public Shared Function Create(Of T As {New})( _
   ByVal instance As T _
) As DefaultOr(Of T)
public static DefaultOr<T> Create<T>( 
   T instance
)
where T: new()

Parameters

instance
The instance to intermediate.

Type Parameters

T
The type of the instance to return.

Return Value

The specified instance if DefaultOr<T>.IsDefault evaluates to false; otherwise a new instance of the specified T, using the parameterless constructor.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DefaultOr Class
DefaultOr Members

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback