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

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