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
ITypeDescriptorContextsourceType
Type
Returns
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
ITypeDescriptorContextdestinationType
Type
Returns
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
ITypeDescriptorContextculture
CultureInfovalue
object
Returns
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
ITypeDescriptorContextculture
CultureInfovalue
objectdestinationType
Type
Returns
ToString()
Returns a string that represents this instance.
public override string ToString()