X509ExtensionExtensionsConvertExtension Method

Converts default instance of X509Extension class to a specific extension implementation object.

Definition

Namespace: SysadminsLV.PKI.Cryptography.X509Certificates
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static X509Extension ConvertExtension(
	this X509Extension extension
)

Parameters

extension  X509Extension
Default instance of X509Extension class.

Return Value

X509Extension
Explicit extension implementation if defined, otherwise, the same object is returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509Extension. 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).

See Also