Table of Contents

Class ObjectIdentifierConverter

Namespace
Lextm.SharpSnmpLib
Assembly
SharpSnmpLib.dll

The TypeConverter dedicated for the ObjectIdentifier class.

public sealed class ObjectIdentifierConverter : TypeConverter
Inheritance
ObjectIdentifierConverter
Inherited Members

Constructors

ObjectIdentifierConverter()

public ObjectIdentifierConverter()

Methods

CanConvertFrom(ITypeDescriptorContext?, Type)

Returns whether this converter can convert an object of the given type to the type of this converter.

public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)

Parameters

context ITypeDescriptorContext
sourceType Type

Returns

bool

CanConvertTo(ITypeDescriptorContext?, Type?)

Returns whether this converter can convert the object to the specified type.

public override bool CanConvertTo(ITypeDescriptorContext? context, Type? destinationType)

Parameters

context ITypeDescriptorContext
destinationType Type

Returns

bool

ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)

Converts the given object to the type of this converter, using the specified context and culture information.

public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)

Parameters

context ITypeDescriptorContext
culture CultureInfo
value object

Returns

object

ConvertTo(ITypeDescriptorContext?, CultureInfo?, object?, Type)

Converts the given value object to the specified type, using the arguments.

public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)

Parameters

context ITypeDescriptorContext
culture CultureInfo
value object
destinationType Type

Returns

object

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.