ARCed.Scintilla.WhitespaceStringConverter.ConvertTo C# (CSharp) 메소드

ConvertTo() 공개 메소드

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
리턴 object
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            string val = this.ConvertTo(value.ToString());

            if (destinationType == typeof(char))
                return val[0];

            return val;
        }

Same methods

WhitespaceStringConverter::ConvertTo ( string nativeString ) : string