|
override bool | CanConvertTo (ITypeDescriptorContext context, Type destinationType) |
|
override object | ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) |
|
override bool | CanConvertFrom (ITypeDescriptorContext context, Type sourceType) |
|
override object | ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value) |
|
◆ CanConvertFrom()
override bool BrawlLib.Internal.Bin8StringConverter.CanConvertFrom |
( |
ITypeDescriptorContext |
context, |
|
|
Type |
sourceType |
|
) |
| |
|
inline |
420 {
421 return sourceType == typeof(string);
422 }
◆ CanConvertTo()
override bool BrawlLib.Internal.Bin8StringConverter.CanConvertTo |
( |
ITypeDescriptorContext |
context, |
|
|
Type |
destinationType |
|
) |
| |
|
inline |
409 {
410 return destinationType == typeof(Bin8);
411 }
◆ ConvertFrom()
override object BrawlLib.Internal.Bin8StringConverter.ConvertFrom |
( |
ITypeDescriptorContext |
context, |
|
|
CultureInfo |
culture, |
|
|
object |
value |
|
) |
| |
|
inline |
425 {
426 return Bin8.FromString(value?.ToString() ?? "");
427 }
◆ ConvertTo()
override object BrawlLib.Internal.Bin8StringConverter.ConvertTo |
( |
ITypeDescriptorContext |
context, |
|
|
CultureInfo |
culture, |
|
|
object |
value, |
|
|
Type |
destinationType |
|
) |
| |
|
inline |
415 {
416 return value?.ToString();
417 }
The documentation for this class was generated from the following file:
- BrawlLib/Internal/StringConverters.cs