|
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.Bin16StringConverter.CanConvertFrom |
( |
ITypeDescriptorContext |
context, |
|
|
Type |
sourceType |
|
) |
| |
|
inline |
444 {
445 return sourceType == typeof(string);
446 }
◆ CanConvertTo()
override bool BrawlLib.Internal.Bin16StringConverter.CanConvertTo |
( |
ITypeDescriptorContext |
context, |
|
|
Type |
destinationType |
|
) |
| |
|
inline |
433 {
434 return destinationType == typeof(Bin16);
435 }
◆ ConvertFrom()
override object BrawlLib.Internal.Bin16StringConverter.ConvertFrom |
( |
ITypeDescriptorContext |
context, |
|
|
CultureInfo |
culture, |
|
|
object |
value |
|
) |
| |
|
inline |
449 {
450 return Bin16.FromString(value?.ToString() ?? "");
451 }
◆ ConvertTo()
override object BrawlLib.Internal.Bin16StringConverter.ConvertTo |
( |
ITypeDescriptorContext |
context, |
|
|
CultureInfo |
culture, |
|
|
object |
value, |
|
|
Type |
destinationType |
|
) |
| |
|
inline |
439 {
440 return value?.ToString();
441 }
The documentation for this class was generated from the following file:
- BrawlLib/Internal/StringConverters.cs