SettingsUnitExtensionsCloneT - метод
Пространство имён: Tessa.SettingsUnitsСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public static T Clone<T>(
this T instance
)
where T : new(), SettingsUnitStorage
<ExtensionAttribute>
Public Shared Function Clone(Of T As {New, SettingsUnitStorage}) (
instance As T
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : gcnew(), SettingsUnitStorage
static T Clone(
T instance
)
[<ExtensionAttribute>]
static member Clone :
instance : 'T -> 'T when 'T : new() and SettingsUnitStorage
- instance T
- The instance to clone.
- T
- The type of the settings unit storage, which must inherit from SettingsUnitStorage and have a parameterless constructor.
TA new instance of type T with cloned storage data.В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
T. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).