Article From:https://www.cnblogs.com/storebook/p/9061882.html
ylbtech-.NETFramework:Byte

 

1.Assemblies mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Back to the top
1、
#region Assemblies mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll
#endregion

using System.Globalization;
using System.Runtime.InteropServices;
using System.Security;

namespace System
{
    //
    // Abstract://     Represents a 8 bit unsigned integer.
    [ComVisible(true)]
    public struct Byte : IComparable, IFormattable, IConvertible, IComparable<Byte>, IEquatable<Byte>
    {
        //
        // Abstract://     Represents the maximum possible value of System.Byte. This field is constant.
        public const Byte MaxValue = 255;
        //
        // Abstract://     Represents the minimum possible value of System.Byte. This field is constant.
        public const Byte MinValue = 0;

        //
        // Abstract://     Converts the string representation of a specified style and culture specific format to its equivalent System.Byte.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted by the style specified by style.//
        //   style:
        //     Enumerate the bitwise combination of values to indicate style elements that can appear in S. A typical value to be specified is System.Globalization.NumberStyles.Integer.//
        //   provider:
        //     An object to provide regional specific information about s format. If provider is null, the current culture is used.//
        // Return to the result://     A byte value that is equal to the number contained in S.//
        // Abnormality://   T:System.ArgumentNullException:
        //     s For null.//
        //   T:System.FormatException:
        //     s The format is not correct.//
        //   T:System.OverflowException:
        //     s Represents a number less than System.Byte.MinValue or greater than System.Byte.MaxValue. - or -s contains non - zero decimal places.//
        //   T:System.ArgumentException:
        //     style It's not the System.Globalization.NumberStyles value. - or -style is not System.Globalization.NumberStyles.AllowHexSpeci.Fier//     And the combination of System.Globalization.NumberStyles.HexNumber values.
        public static Byte Parse(string s, NumberStyles style, IFormatProvider provider);
        //
        // Abstract://     Converts the numeric string representation in the specified culture specific format to its equivalent System.Byte.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted in System.Globalization.NumberStyles.Integer style.//
        //   provider:
        //     An object that provides regional specific analysis information about s. If provider is null, the current culture is used.//
        // Return to the result://     A byte value that is equal to the number contained in S.//
        // Abnormality://   T:System.ArgumentNullException:
        //     s For null.//
        //   T:System.FormatException:
        //     s The format is not correct.//
        //   T:System.OverflowException:
        //     s Represents a number less than System.Byte.MinValue or greater than System.Byte.MaxValue.
        public static Byte Parse(string s, IFormatProvider provider);
        //
        // Abstract://     Converts the string representation of a number to its equivalent System.Byte representation.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted in System.Globalization.NumberStyles.Integer style.//
        // Return to the result://     A byte value that is equal to the number contained in S.//
        // Abnormality://   T:System.ArgumentNullException:
        //     s For null.//
        //   T:System.FormatException:
        //     s The format is not correct.//
        //   T:System.OverflowException:
        //     s Represents a number less than System.Byte.MinValue or greater than System.Byte.MaxValue.
        public static Byte Parse(string s);
        //
        // Abstract://     Converts the string representation of the number of the specified style to its equivalent System.Byte.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted by the style specified by style.//
        //   style:
        //     Enumerate the bitwise combination of values to indicate style elements that can appear in S. A typical value to be specified is System.Globalization.NumberStyles.Integer.//
        // Return to the result://     A byte value that is equal to the number contained in S.//
        // Abnormality://   T:System.ArgumentNullException:
        //     s For null.//
        //   T:System.FormatException:
        //     s The format is not correct.//
        //   T:System.OverflowException:
        //     s Represents a number less than System.Byte.MinValue or greater than System.Byte.MaxValue. - or -s contains non - zero decimal places.//
        //   T:System.ArgumentException:
        //     style It's not the System.Globalization.NumberStyles value. - or -style is not System.Globalization.NumberStyles.AllowHexSpeci.Fier//     And the combination of System.Globalization.NumberStyles.HexNumber values.
        public static Byte Parse(string s, NumberStyles style);
        //
        // Abstract://     Try to convert the string representation of the number to its equivalent System.Byte and return a value indicating whether the transformation is successful.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted in System.Globalization.NumberStyles.Integer style.//
        //   result:
        //     When this method returns, if the transformation is successful, it contains the s value equivalent to the number contained in System.Byte; if the conversion fails, it contains zero. This parameter is passed without initialization.//     result Any value provided in it will be covered.//
        // Return to the result://     If true is successfully converted, it is s; otherwise, it is false.
        public static bool TryParse(string s, out Byte result);
        //
        // Abstract://     Converts the string representation of a specified style and culture specific format to its equivalent System.Byte. A return value that indicates whether the conversion is successful.//
        // Parameters://   s:
        //     A string that contains the number to be converted. The string is interpreted by the style specified by style.//
        //   style:
        //     Enumerate the bitwise combination of values to indicate style elements that can appear in S. A typical value to be specified is System.Globalization.NumberStyles.Integer.//
        //   provider:
        //     An object that provides information about regionally specific formatting for S. If provider is null, the current culture is used.//
        //   result:
        //     When this method returns, if the conversion is successful, it contains the 8 bit unsigned integer value equivalent to the number contained in S; if the conversion fails, it contains zero. If the S parameter is null or System.String.Empty, the format is incorrect, or it meansThe number is less than//     System.Byte.MinValue Or greater than System.Byte.MaxValue, the conversion fails. This parameter is passed without initialization; initially in result//     Any value provided in it will be covered.//
        // Return to the result://     If true is successfully converted, it is s; otherwise, it is false.//
        // Abnormality://   T:System.ArgumentException:
        //     style It's not the System.Globalization.NumberStyles value. - or -style is not System.Globalization.NumberStyles.AllowHexSpeci.Fier//     And the combination of System.Globalization.NumberStyles.HexNumber values.
        public static bool TryParse(string s, NumberStyles style, IFormatProvider provider, out Byte result);
        //
        // Abstract://     Compares this instance with the specified 8 bit unsigned integer and returns an indication of its relative value.//
        // Parameters://   value:
        //     8 bit unsigned integers to be compared.//
        // Return to the result://     A signed integer indicating the relative order of this instance and value. The return value is less than zero. This instance is less than value. Zero this instance is equal to value. Greater than zero this instance is greater than value.
        public int CompareTo(Byte value);
        //
        // Abstract://     Compare this instance with the specified object and return an indication of the relative value of the two.//
        // Parameters://   value:
        //     The object to be compared, or null.//
        // Return to the result://     A signed integer indicating the relative order of this instance and value. The return value is less than zero. This instance is less than value. Zero this instance is equal to value. Greater than zero this instance is greater than value. -//     Or - value is null.//
        // Abnormality://   T:System.ArgumentException:
        //     value It's not System.Byte.
        public int CompareTo(object value);
        //
        // Abstract://     Returns a value indicating whether the instance is equal to the specified object.//
        // Parameters://   obj:
        //     The object that is compared with this instance, or null.//
        // Return to the result://     If true is an instance of obj and is equivalent to the value of this instance, it is System.Byte; otherwise it is false.
        public override bool Equals(object obj);
        //
        // Abstract://     Returns a value indicating whether the instance and the specified System.Byte object represent the same value.//
        // Parameters://   obj:
        //     An object that is compared with this instance.//
        // Return to the result://     If true is equal to this instance, it is obj; otherwise, it is false.
        public bool Equals(Byte obj);
        //
        // Abstract://     Returns the Hashi code for this instance.//
        // Return to the result://     The current Hashi code for System.Byte.
        public override int GetHashCode();
        //
        // Abstract://     Returns the System.Byte of the value type System.TypeCode.//
        // Return to the result://     Enumerate the constant System.TypeCode.Byte.
        public TypeCode GetTypeCode();
        //
        // Abstract://     Converts the value of the current System.Byte object to its equivalent string representation using the specified format and culture specific format information.//
        // Parameters://   format:
        //     A standard or custom numeric format string.//
        //   provider:
        //     An object that provides information for regionally specific formatting.//
        // Return to the result://     A string representation of the current provider object that is formatted in the manner specified by System.Byte and format parameters.//
        // Abnormality://   T:System.FormatException:
        //     format Contains an unsupported specifier. The supported format specifier is listed in the remarks section.
        [SecuritySafeCritical]
        public string ToString(string format, IFormatProvider provider);
        //
        // Abstract://     Converts the value of the current System.Byte object to its equivalent string representation.//
        // Return to the result://     The string representation of the value of this object consists of a series of numbers from 0 to 9, without leading zeros.
        [SecuritySafeCritical]
        public override string ToString();
        //
        // Abstract://     Converts the value of the current System.Byte object to its equivalent string representation in the specified format.//
        // Parameters://   format:
        //     A numeric format string.//
        // Return to the result://     A string representation of the current format object that is formatted in the manner specified by the System.Byte parameter.//
        // Abnormality://   T:System.FormatException:
        //     format Contains an unsupported specifier. The supported format specifier is listed in the remarks section.
        [SecuritySafeCritical]
        public string ToString(string format);
        //
        // Abstract://     Converts the value of the current System.Byte object to its equivalent string representation using the specified culture specific formatting information.//
        // Parameters://   provider:
        //     An object that provides information for regionally specific formatting.//
        // Return to the result://     The string representation of this object value is in the format specified by the provider parameter.
        [SecuritySafeCritical]
        public string ToString(IFormatProvider provider);
    }
}
2、
2.Back to the top
 
3.Back to the top
 
4.Back to the top
 
5.Back to the top
 
 
6.Back to the top
 
warnAuthor: ylbtech
Source: http://ylbtech.cnblogs.com/
The copyright of this article is shared by the author and the blogger. It is welcome to reprint, but the statement must be retained without the consent of the author, and the original connection is given in the obvious position of the article page, otherwise the right to be investigated for legal responsibility is retained.
Link of this Article: .NETFramework:Byte

Leave a Reply

Your email address will not be published. Required fields are marked *