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

ConvertFrom() 공개 메소드

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

            if (context.PropertyDescriptor.ComponentType == typeof(char))
                return val[0];

            return val;
        }

Same methods

WhitespaceStringConverter::ConvertFrom ( string value ) : string