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

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.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: