BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BrawlLib.Internal.Bin32StringConverter Class Reference
Inheritance diagram for BrawlLib.Internal.Bin32StringConverter:

Public Member Functions

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)
 

Member Function Documentation

◆ CanConvertFrom()

override bool BrawlLib.Internal.Bin32StringConverter.CanConvertFrom ( ITypeDescriptorContext  context,
Type  sourceType 
)
inline
468 {
469 return sourceType == typeof(string);
470 }

◆ CanConvertTo()

override bool BrawlLib.Internal.Bin32StringConverter.CanConvertTo ( ITypeDescriptorContext  context,
Type  destinationType 
)
inline
457 {
458 return destinationType == typeof(Bin32);
459 }

◆ ConvertFrom()

override object BrawlLib.Internal.Bin32StringConverter.ConvertFrom ( ITypeDescriptorContext  context,
CultureInfo  culture,
object  value 
)
inline
473 {
474 return Bin32.FromString(value?.ToString() ?? "");
475 }

◆ ConvertTo()

override object BrawlLib.Internal.Bin32StringConverter.ConvertTo ( ITypeDescriptorContext  context,
CultureInfo  culture,
object  value,
Type  destinationType 
)
inline
463 {
464 return value?.ToString();
465 }

The documentation for this class was generated from the following file: