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)); }
protected virtual Encoding GetEncoding(ITypeDescriptorContext context, string name) { return(_resolver.GetEncoding(name)); }