System.Runtime.Serialization.XmlReaderDelegator.XmlReaderDelegator.ReadContentAsBase64 C# (CSharp) Method

ReadContentAsBase64() private method

private ReadContentAsBase64 ( string str ) : byte[]
str string
return byte[]
        internal byte[] ReadContentAsBase64(string str)
        {
            if (str == null)
                return null;
            str = str.Trim();
            if (str.Length == 0)
                return Array.Empty<byte>();

            try
            {
                return Convert.FromBase64String(str);
            }
            catch (ArgumentException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(str, "byte[]", exception));
            }
            catch (FormatException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(str, "byte[]", exception));
            }
        }

Same methods

XmlReaderDelegator.XmlReaderDelegator::ReadContentAsBase64 ( ) : byte[]
XmlReaderDelegator.XmlReaderDelegator