예제 #1
0
        private Encoding GetEncoding(ITypeDescriptorContext context, string name)
        {
            var resolver = GetResolver(context);

            if (resolver != null && !AllEncodings.Any(x => x == name.ToLowerInvariant()))
            {
                return(_resolver.GetEncoding(name));
            }

            return(Encoding.GetEncoding(name));
        }
예제 #2
0
 protected virtual Encoding GetEncoding(ITypeDescriptorContext context, string name)
 {
     return(_resolver.GetEncoding(name));
 }