PcapDotNet.Base Extension methods for IDictionary<TKey,TValue> interface. Tests for equality between dictionaries. Two dictionaries are equal if they have the same pairs. Keys are compared using Equals() and values are compared using the given comparator. The type of the key of the dictionary. The type of the value of the dictionary. The first dictionary to compare. The second dictionary to compare. The comparator to check for values equality. True iff the dictionaries are equal. Tests for equality between dictionaries. Two dictionaries are equal if they have the same pairs. Keys are compared using Equals() and values are compared using the default EqualityComparer. The type of the key of the dictionary. The type of the value of the dictionary. The first dictionary to compare. The second dictionary to compare. True iff the dictionaries are equal. Extension method for UShort structure. Reverses the endianity of the given value. Extension methods for String. Returns whether all of the chars in the given string are in the [minValue, maxValue] range. The string to test. The first char in the chars range. The last char in the chars range. True iff all of the string's chars are in the given range. A 48 bit unsigned integer. The number of bytes this type will take. The minimum value of this type. The maximum value of this type. Converts the string representation of a number to its 48-bit unsigned integer equivalent. A string that represents the number to convert. A 48-bit unsigned integer equivalent to the number contained in . The parameter is . The parameter is not in the correct format. The parameter represents a number less than or greater than . The parameter should be the string representation of a number in the following form. [ws][sign]digits[ws] Elements in square brackets ([ and ]) are optional. The following table describes each element. Element Description wsOptional white space. sign An optional sign. Valid sign characters are determined by the and properties of the current culture. However, the negative sign symbol can be used only with zero; otherwise, the method throws an . digitsA sequence of digits from 0 through 9. Any leading zeros are ignored. The parameter is interpreted using the style. It cannot contain any group separators or decimal separator, and it cannot have a decimal portion. The parameter is parsed by using the formatting information in a object that is initialized for the current system culture. For more information, see . To parse a string by using the formatting information of a specific culture, use the method. Converts the string representation of a number in a specified culture-specific format to its 48-bit unsigned integer equivalent. A string that represents the number to convert. An object that supplies culture-specific formatting information about . A 48-bit unsigned integer equivalent to the number specified in . The parameter is . The parameter is not in the correct style. The parameter represents a number less than or greater than . This overload of the Parse(String, IFormatProvider) method is typically used to convert text that can be formatted in a variety of ways to a value. For example, it can be used to convert the text entered by a user into an HTML text box to a numeric value. The parameter contains a number of the form: [ws][sign]digits[ws] Elements in square brackets ([ and ]) are optional. The following table describes each element: Element Description wsOptional white space. sign An optional positive sign, or a negative sign if represents the value zero. digitsA sequence of digits from 0 through 9. The parameter is interpreted using the style. In addition to the unsigned integer value's decimal digits, only leading and trailing spaces along with a leading sign is allowed. (If the negative sign is present, must represent a value of zero, or the method throws an .) To explicitly define the style elements together with the culture-specific formatting information that can be present in , use the method. The parameter is an implementation whose method returns a object that provides culture-specific information about the format of . There are three ways to use the parameter to supply custom formatting information to the parse operation: You can pass the actual object that provides formatting information. (Its implementation of simply returns itself.) You can pass a object that specifies the culture whose formatting is to be used. Its property provides formatting information. You can pass a custom implementation. Its method must instantiate and return the object that provides formatting information. If provider is , the object for the current culture is used. Converts the string representation of a number in a specified style to its 48-bit unsigned integer equivalent. A string that represents the number to convert. The string is interpreted by using the style specified by the parameter. A bitwise combination of the enumeration values that specifies the permitted format of . A typical value to specify is . A 48-bit unsigned integer equivalent to the number specified in . The parameter is . is not a value. -or- is not a combination of and values. The parameter is not in a format compliant with . The parameter represents a number less than or greater than . -or- includes non-zero, fractional digits. The parameter defines the style elements (such as white space, the positive or negative sign symbol, the group separator symbol, or the decimal point symbol) that are allowed in the s parameter for the parse operation to succeed. It must be a combination of bit flags from the enumeration. Depending on the value of style, the parameter may include the following elements: [ws][$][sign][digits,]digits[.fractional_digits][E[sign]exponential_digits][ws] Elements in square brackets ([ and ]) are optional. If includes , the parameter may contain the following elements: [ws]hexdigits[ws] The following table describes each element. Element Description ws Optional white space. White space can appear at the start of if includes the flag, and it can appear at the end of if includes the flag. $ A culture-specific currency symbol. Its position in the string is defined by the and properties of the current culture. The current culture's currency symbol can appear in if includes the flag. sign An optional sign. The sign can appear at the start of if includes the flag, and it can appear at the end of if includes the flag. Parentheses can be used in to indicate a negative value if includes the flag. However, the negative sign symbol can be used only with zero; otherwise, the method throws an . digits A sequence of digits from 0 through 9. . A culture-specific decimal point symbol. The current culture's decimal point symbol can appear in if includes the flag. , A culture-specific group separator symbol. The current culture's group separator can appear in if includes the flag. fractional_digits One or more occurrences of the digit 0-9 if includes the flag, or one or more occurrences of the digit 0 if it does not. Fractional digits can appear in only if includes the flag. E The "e" or "E" character, which indicates that the value is represented in exponential (scientific) notation. The parameter can represent a number in exponential notation if includes the flag. exponential_digits A sequence of digits from 0 through 9. The parameter can represent a number in exponential notation if includes the flag. hexdigitsA sequence of hexadecimal digits from 0 through f, or 0 through F. A string with decimal digits only (which corresponds to the style) always parses successfully. Most of the remaining members control elements that may be present, but are not required to be present, in this input string. The following table indicates how individual members affect the elements that may be present in . value Elements permitted in in addition to digits The digits element only. The decimal point (.) and fractional_digits elements. However, if does not include the flag, fractional_digits must consist of only one or more 0 digits; otherwise, an is thrown. The "e" or "E" character, which indicates exponential notation, along with exponential_digits. The ws element at the start of . The ws element at the end of . The sign element at the start of . The sign element at the end of . The sign element in the form of parentheses enclosing the numeric value. The group separator (,) element. The currency ($) element. All elements. However, cannot represent a hexadecimal number or a number in exponential notation. The ws element at the start or end of , sign at the start of , and the decimal point (.) symbol. The parameter can also use exponential notation. The ws, sign, group separator (,), and decimal point (.) elements. All elements. However, cannot represent a hexadecimal number. Unlike the other values, which allow for, but do not require, the presence of particular style elements in , the style value means that the individual numeric characters in are always interpreted as hexadecimal characters. Valid hexadecimal characters are 0-9, A-F, and a-f. The only other flags that can be combined with the parameter are and . (The enumeration includes a composite number style, , that includes both white-space flags.) If is the string representation of a hexadecimal number, it cannot be preceded by any decoration (such as 0x or &h) that differentiates it as a hexadecimal number. This causes the conversion to fail. The parameter is parsed by using the formatting information in a object that is initialized for the current system culture. To specify the culture whose formatting information is used for the parse operation, call the overload. Converts the string representation of a number in a specified style and culture-specific format to its 48-bit unsigned integer equivalent. A string that represents the number to convert. The string is interpreted by using the style specified by the parameter. A bitwise combination of enumeration values that indicates the style elements that can be present in . A typical value to specify is . An object that supplies culture-specific formatting information about . A 48-bit unsigned integer equivalent to the number specified in . The parameter is . is not a value. -or- is not a combination of and values. The parameter is not in a format compliant with . The parameter represents a number less than or greater than . -or- includes non-zero, fractional digits. The parameter defines the style elements (such as white space, the positive or negative sign symbol, the group separator symbol, or the decimal point symbol) that are allowed in the s parameter for the parse operation to succeed. It must be a combination of bit flags from the enumeration. Depending on the value of style, the parameter may include the following elements: [ws][$][sign][digits,]digits[.fractional_digits][E[sign]exponential_digits][ws] Elements in square brackets ([ and ]) are optional. If includes , the parameter may contain the following elements: [ws]hexdigits[ws] The following table describes each element. Element Description ws Optional white space. White space can appear at the start of if includes the flag, and it can appear at the end of if includes the flag. $ A culture-specific currency symbol. Its position in the string is defined by the and properties of the object that is returned by the method of the provider parameter. The currency symbol can appear in if includes the flag. sign An optional sign. The sign can appear at the start of if includes the flag, and it can appear at the end of if includes the flag. Parentheses can be used in to indicate a negative value if includes the flag. However, the negative sign symbol can be used only with zero; otherwise, the method throws an . digitsA sequence of digits from 0 through 9. . A culture-specific decimal point symbol. The current culture's decimal point symbol can appear in if includes the flag. , A culture-specific group separator symbol. The current culture's group separator can appear in if includes the flag. fractional_digits One or more occurrences of the digit 0-9 if includes the flag, or one or more occurrences of the digit 0 if it does not. Fractional digits can appear in only if includes the flag. E The "e" or "E" character, which indicates that the value is represented in exponential (scientific) notation. The parameter can represent a number in exponential notation if includes the flag. exponential_digits A sequence of digits from 0 through 9. The parameter can represent a number in exponential notation if includes the flag. hexdigitsA sequence of hexadecimal digits from 0 through f, or 0 through F. A string with decimal digits only (which corresponds to the style) always parses successfully. Most of the remaining members control elements that may be present, but are not required to be present, in this input string. The following table indicates how individual members affect the elements that may be present in . value Elements permitted in in addition to digits The digits element only. The decimal point (.) and fractional_digits elements. However, if does not include the flag, fractional_digits must consist of only one or more 0 digits; otherwise, an is thrown. The "e" or "E" character, which indicates exponential notation, along with exponential_digits. The ws element at the start of . The ws element at the end of . The sign element at the start of . The sign element at the end of . The sign element in the form of parentheses enclosing the numeric value. The group separator (,) element. The currency ($) element. All elements. However, cannot represent a hexadecimal number or a number in exponential notation. The ws element at the start or end of , sign at the start of , and the decimal point (.) symbol. The parameter can also use exponential notation. The ws, sign, group separator (,), and decimal point (.) elements. All elements. However, cannot represent a hexadecimal number. Unlike the other values, which allow for, but do not require, the presence of particular style elements in , the style value means that the individual numeric characters in are always interpreted as hexadecimal characters. Valid hexadecimal characters are 0-9, A-F, and a-f. The only other flags that can be combined with the parameter are and . (The enumeration includes a composite number style, , that includes both white-space flags.) If is the string representation of a hexadecimal number, it cannot be preceded by any decoration (such as 0x or &h) that differentiates it as a hexadecimal number. This causes the conversion to fail. The parameter is an implementation whose method returns a object that provides culture-specific information about the format of . There are three ways to use the parameter to supply custom formatting information to the parse operation: You can pass the actual object that provides formatting information. (Its implementation of simply returns itself.) You can pass a object that specifies the culture whose formatting is to be used. Its property provides formatting information. You can pass a custom implementation. Its method must instantiate and return the object that provides formatting information. If provider is , the object for the current culture is used. Converts a 32 bit unsigned integer to a 48 bit unsigned integer by taking all the 32 bits. The 32 bit value to convert. The 48 bit value created by taking all the 32 bits of the 32bit value. Converts a 64 bit signed integer to a 48 bit unsigned integer by taking the 48 least significant bits. The 64 bit value to convert. The 48 bit value created by taking the 48 least significant bits of the 64 bit value. Converts a 64 bit unsigned integer to a 48 bit unsigned integer by taking the 48 least significant bits. The 64 bit value to convert. The 48 bit value created by taking the 48 least significant bits of the 64 bit value. Converts the 48 bits unsigned integer to a 64 bits signed integer. The 48 bit value to convert. The 64 bit value converted from the 48 bit value. Converts the 48 bits unsigned integer to a 64 bits unsigned integer. The 48 bit value to convert. The 64 bit value converted from the 48 bit value. Converts the 48 bits unsigned integer to an 8 bits unsigned integer. The 48 bit value to convert. The 8 bit value converted from the 48 bit value. Returns true iff the two values represent the same value. The value to compare to. True iff the two values represent the same value. Indicates whether this instance and a specified object are equal. true if and this instance are the same type and represent the same value; otherwise, false. Another object to compare to. 2 Returns true iff the two values represent the same value. The first value to compare. The second value to compare. True iff the two values represent the same value. Returns true iff the two values represent different values. The first value to compare. The second value to compare. True iff the two values represent different values. Returns the hash code for this instance. A 32-bit signed integer that is the hash code for this instance. Returns a string representing the value using a default format and an invariant culture format provider. Returns a string representing the value using the given string format and an invariant culture format provider. Returns a string representing the value using the given string format and the given format provider. Extension methods for Func of type T. Generates an array of a given size by generating elements using the given delegate. The type of the array to create. The delegate to generate elements with. The size of the array to create. An array of a given size with elements generated by the given delegate. Extension method for UInt structure. Returns the number of digits the number will be represented by according to a specific base. The number to check for number of digits. The base of the digits. The number of digits the number will be represented by according to a specific base. Extension methods for Match class. Returns all the values that were captured for a given group name. The match to take the captured values from. The name of the capture group to take the values of. All the values that were captured for a given group name. Extension methods for Encoding class. ISO-8859-1 Encoding. A 24 bit unsigned integer. The number of bytes this type will take. The maximum value of this type. Converts a 16 bit unsigned integer to a 24 bit unsigned integer. The 16 bit value to convert. The 24 bit value created. Converts a 32 bit signed integer to a 24 bit unsigned integer by taking the 24 least significant bits. The 32 bit value to convert. The 24 bit value created by taking the 24 least significant bits of the 32 bit value. Converts a 32 bit unsigned integer to a 24 bit unsigned integer by taking the 24 least significant bits. The 32 bit value to convert. The 24 bit value created by taking the 24 least significant bits of the 32 bit value. Converts the 24 bits unsigned integer to a 32 bits signed integer. The 24 bit value to convert. The 32 bit value converted from the 24 bit value. Returns true iff the two values represent the same value. The value to compare to. True iff the two values represent the same value. Indicates whether this instance and a specified object are equal. true if and this instance are the same type and represent the same value; otherwise, false. Another object to compare to. 2 Returns true iff the two values represent the same value. The first value to compare. The second value to compare. True iff the two values represent the same value. Returns true iff the two values represent different values. The first value to compare. The second value to compare. True iff the two values represent different values. Returns the hash code for this instance. A 32-bit signed integer that is the hash code for this instance. 2 Returns the fully qualified type name of this instance. A containing a fully qualified type name. 2 Useful functions for a sequence of objects. Returns the xor of the hash codes of the given objects. Returns the xor of the hash codes of the given objects. Returns the xor of the hash codes of the given objects. Extension methods for PropertyInfo. Returns the value of the given instance's non-indexed property. Extension methods for char structure. True iff the given character is one of the capital english letters. The input character to check. True for capital english letters. A 128 bit unsigned integer. The number of bytes this type will take. The minimum UInt128 value. The maximum value of this type. A Zero UInt128 value. A One UInt128 value. Creates a value using two 64 bit values. The most significant 64 bits of the value. The least significant 64 bits of the value. Conversion of a object to an unsigned 128-bit integer value. The value to convert to an unsigned 128-bit integer. The parameter represents a number less than or greater than . Defines an explicit conversion of a object to an unsigned 128-bit integer value. The value to convert to an unsigned 128-bit integer. The 128 bit value created by equivalent to . The parameter represents a number less than or greater than . Converts the 128 bits unsigned integer to a . The 128 bit value to convert. The value converted from the 128 bit value. Converts a 64 bit unsigned integer to a 128 bit unsigned integer by taking all the 64 bits. The 64 bit value to convert. The 128 bit value created by taking all the 64 bits of the 64 bit value. Converts the 128 bits unsigned integer to a 64 bits unsigned integer. The 128 bit value to convert. The 64 bit value converted from the 128 bit value. Converts the string representation of a number in a specified style and culture-specific format to its equivalent. A string that contains a number to convert. A bitwise combination of the enumeration values that specify the permitted format of value. An object that provides culture-specific formatting information about . A value that is equivalent to the number specified in the value parameter. is not a value or includes the or flag along with another value. is null. does not comply with the input pattern specified by . The parameter represents a number less than or greater than . The parameter defines the style elements (such as white space, the positive or negative sign symbol, the group separator symbol, or the decimal point symbol) that are allowed in the parameter for the parse operation to succeed. must be a combination of bit flags from the enumeration. The parameter makes this method overload useful when contains the string representation of a hexadecimal value, when the number system (decimal or hexadecimal) represented by value is known only at run time, or when you want to disallow white space or a sign symbol in value. Depending on the value of , the parameter may include the following elements: [ws][$][sign][digits,]digits[.fractional_digits][E[sign]exponential_digits][ws] If includes , the parameter may include the following elements: [ws]hexdigits[ws] Elements in square brackets ([ and ]) are optional. The following table describes each element. Element Description ws Optional white space. White space can appear at the start of value if includes the flag, and it can appear at the end of value if includes the flag. $ A culture-specific currency symbol. Its position in the string is defined by the and properties of the culture indicated by the parameter. The current culture's currency symbol can appear in value if includes the flag. sign An optional sign. The sign can appear at the start of if includes the flag, and it can appear at the end of if includes the flag. Parentheses can be used in to indicate a negative value if includes the flag. digits, fractional_digits, exponential_digits A sequence of digits from 0 through 9. A sequence of digits from 0 through 9. For fractional_digits, only the digit 0 is valid. , A culture-specific group separator symbol. The group separator symbol of the culture specified by can appear in if includes the flag. . A culture-specific decimal point symbol. The decimal point symbol of the culture designated by can appear in if includes the flag. Only the digit 0 can appear as a fractional digit for the parse operation to succeed; if fractional_digits includes any other digit, a is thrown. E The "e" or "E" character, which indicates that the value is represented in exponential (scientific) notation. The parameter can represent a number in exponential notation if includes the flag. hexdigits A sequence of hexadecimal digits from 0 through f, or 0 through F. If you use the method to round-trip the string representation of a value that was output by the method, you should use the method with the "R" format specifier to generate the string representation of the value. Otherwise, the string representation of the preserves only the 50 most significant digits of the original value, and data may be lost when you use the method to restore the value. Unlike the other values, which allow for but do not require the presence of particular style elements in , the style value means that the individual numeric characters in are always interpreted as hexadecimal characters. Valid hexadecimal characters are 0-9, A-F, and a-f. The only other flags that can be combined with the parameter are and . (The enumeration includes a composite number style, , that includes both white-space flags.) If is the string representation of a hexadecimal number, it cannot be preceded by any decoration (such as 0x or &h) that differentiates it as a hexadecimal number. This causes the conversion to fail. If is a hexadecimal string, the method interprets as a negative number stored by using two's complement representation if its first two hexadecimal digits are greater than or equal to 0x80. In other words, the method interprets the highest-order bit of the first byte in as the sign bit. To make sure that a hexadecimal string is correctly interpreted as a positive number, the first digit in must have a value of zero. For example, the method interprets 0x80 as a negative value, but it interprets either 0x080 or 0x0080 as a positive value. The parameter is an implementation. Its method returns a object that provides culture-specific information about the format of value. Typically, can be any one of the following: A object that represents the culture that provides numeric formatting information. Its method returns the object that provides numeric formatting information. A object that provides formatting information. (Its implementation of just returns itself.) A custom object that implements and uses the method to instantiate and return the object that provides formatting information. If is , the object for the current culture is used. Converts the string representation of a number in a specified culture-specific format to its equivalent. Uses style. A string that contains a number to convert. An object that provides culture-specific formatting information about . A value that is equivalent to the number specified in the value parameter. is null. The parameter represents a number less than or greater than . See important remarks in Converts the string representation of a number in a specified style to its equivalent. Uses as the format provider. A string that contains a number to convert. A bitwise combination of the enumeration values that specify the permitted format of value. A value that is equivalent to the number specified in the value parameter. is not a value or includes the or flag along with another value. is null. does not comply with the input pattern specified by . The parameter represents a number less than or greater than . See important remarks in Converts the string representation of a number in a specified style to its equivalent. Uses style. Uses as the format provider. A string that contains a number to convert. A value that is equivalent to the number specified in the value parameter. is null. The parameter represents a number less than or greater than . See important remarks in Tries to convert the string representation of a number in a specified style and culture-specific format to its equivalent, and returns a value that indicates whether the conversion succeeded. The string representation of a number. The string is interpreted using the style specified by . A bitwise combination of enumeration values that indicates the style elements that can be present in . A typical value to specify is . An object that supplies culture-specific formatting information about . When this method returns, contains the equivalent to the number that is contained in value, or if the conversion failed. The conversion fails if the value parameter is , is not in a format that is compliant with or represents a number that is less than or greater than . This parameter is passed uninitialized. true if the parameter was converted successfully; otherwise, false. The method is like the method, except that it does not throw an exception if the conversion fails. This method eliminates the need to use exception handling to test for a if is invalid and cannot be parsed successfully. For more information see Tries to convert the string representation of a number to its equivalent, and returns a value that indicates whether the conversion succeeded. The string representation of a number. When this method returns, contains the equivalent to the number that is contained in value, or if the conversion failed. The conversion fails if the value parameter is or represents a number that is less than or greater than . This parameter is passed uninitialized. true if the parameter was converted successfully; otherwise, false. The method is like the method, except that it does not throw an exception if the conversion fails. This method eliminates the need to use exception handling to test for a if is invalid and cannot be parsed successfully. For more information see Returns true iff the two values represent the same value. The value to compare to. True iff the two values represent the same value. Indicates whether this instance and a specified object are equal. true if and this instance are the same type and represent the same value; otherwise, false. Another object to compare to. 2 Compares the current object with another object of the same type. A value that indicates the relative order of the objects being compared. The return value has the following meanings: Less than zero - This object is less than the . parameter.Zero - This object is equal to . Greater than zero - This object is greater than . An object to compare with this object. Returns true iff the two values represent the same value. The first value to compare. The second value to compare. True iff the two values represent the same value. Returns true iff the two values represent different values. The first value to compare. The second value to compare. True iff the two values represent different values. Returns true iff the first value is smaller than the second value. The first value to compare. The second value to compare. True iff the first value is smaller than the second value. Returns true iff the first value is greater than the second value. The first value to compare. The second value to compare. True iff the first value is greater than the second value. Returns true iff the first value is smaller than or equal to the second value. The first value to compare. The second value to compare. True iff the first value is smaller than or equal to the second value. Returns true iff the first value is greater than or equal to the second value. The first value to compare. The second value to compare. True iff the first value is greater than or equal to the second value. Shifts its first operand right by the number of bits specified by its second operand. The value to shift. The number of bits to shift. The value after it was shifted by the given number of bits. Shifts its first operand left by the number of bits specified by its second operand. The value to shift. The number of bits to shift. The value after it was shifted by the given number of bits. Shifts its first operand right by the number of bits specified by its second operand. The value to shift. The number of bits to shift. The value after it was shifted by the given number of bits. Shifts its first operand left by the number of bits specified by its second operand. The value to shift. The number of bits to shift. The value after it was shifted by the given number of bits. Bitwise ands between two values. The first value to do bitwise and. The second value to do bitwise and. The two values after they were bitwise anded. Bitwise ands between two values. The first value to do bitwise and. The second value to do bitwise and. The two values after they were bitwise anded. Bitwise ors between two values. The first value to do bitwise or. The second value to do bitwise or. The two values after they were bitwise ored. Bitwise ors between two values. The first value to do bitwise or. The second value to do bitwise or. The two values after they were bitwise ored. Sums the given values and returns the sum. The first value to sum. The second value to sum. The sum of the given values. Sums the given values and returns the sum. The first value to sum. The second value to sum. The sum of the given values. Substract the second value from the first value and returns the result of the substraction. The first value to sum. The second value to sum. The result of substracting the second value from the first value. Substract the second value from the first value and returns the result of the substraction. The first value to sum. The second value to sum. The result of substracting the second value from the first value. Returns the hash code for this instance. A 32-bit signed integer that is the hash code for this instance. 2 Converts the numeric value of the current object to its equivalent string representation by using the specified format and culture-specific format information. A standard or custom numeric format string. An object that supplies culture-specific formatting information. The string representation of the current value as specified by the and parameters. is not a valid format string. The parameter can be any valid standard numeric format specifier, or any combination of custom numeric format specifiers. If is equal to or is , the return value of the current object is formatted with the general format specifier ("G"). If is any other value, the method throws a . The parameter is an implementation. Its method returns a object that provides culture-specific information about the format of the string returned by this method. When the method is invoked, it calls the parameter's method and passes it a object that represents the type. The method then returns the object that provides information for formatting the object, such as the negative sign symbol, the group separator symbol, or the decimal point symbol. There are three ways to use the parameter to supply formatting information to the method: You can pass a object that represents the culture that provides numeric formatting information. Its method returns the object that provides numeric formatting information. You can pass the actual object that provides formatting information. (Its implementation of just returns itself.) You can pas a custom object that implements and uses the method to instantiate and return the object that provides formatting information. If is , the formatting of the returned string is based on the object of the current culture. Converts the numeric value of the current object to its equivalent string representation by using the specified format. Uses as the format provider. A standard or custom numeric format string. The string representation of the current value as specified by the parameter. is not a valid format string. See for remarks. Converts the numeric value of the current object to its equivalent string representation by using the specified culture-specific format information. Uses "G" format. An object that supplies culture-specific formatting information. The string representation of the current value as specified by the parameter. See for remarks. Converts the numeric value of the current object to its equivalent string representation. Uses "G" format. Uses as the format provider. The string representation of the current value. See for remarks. A 32 bit serial number as defined in RFC 1982. The number of bytes this type takes. Number of bits of the serial number. The maximum value that can be added to the serial number. Constructs a serial number from an unsigned value. The value to set the serial number. Adds a value to the serial number and returns the result. should not be bigger than . The value to add. A new serial number that represents the sum of the original serial number and . Two serial numbers are equal if their value is equal. The object to compare to. True iff the two serial numbers are equal. Two serial numbers are equal if their value is equal. The object to compare to. True iff the two serial numbers are equal. Returns the hash code for this instance. A 32-bit signed integer that is the hash code for this instance. Compares the current object with another object of the same type. A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the . parameter.Zero This object is equal to . Greater than zero This object is greater than . An object to compare with this object. The string representation of this serial number. A string representing this serial number. The string representation of this serial number using the given format provider. The format of the output string. A string representing this serial number using the given format provider. Implicitly cast a uint to a serial number. The value to cast. The casted value. Returns true iff the two serial numbers are equal. First serial number to compare. Second serial number to compare. True iff the two serial numbers are equal. Returns true iff the two serial numbers are not equal. First serial number to compare. Second serial number to compare. True iff the two serial numbers are not equal. Returns true iff the first serial number is smaller than the second serial number. First serial number to compare. Second serial number to compare. True iff the first serial number is smaller than the second serial number.. Returns true iff the first serial number is greater than the second serial number. First serial number to compare. Second serial number to compare. True iff the first serial number is greater than the second serial number.. The value of the serial number. Extension methods for MemberInfo. When overridden in a derived class, returns a sequence of custom attributes identified by System.Type. TThe type of attribute to search for. Only attributes that are assignable to this type are returned. The memberInfo to look the attributes on. Specifies whether to search this member's inheritance chain to find the attributes. A sequence of custom attributes applied to this member, or a sequence with zero (0) elements if no attributes have been applied. Extension methods for IEnumerable of type T. Returns true if the given enumerable is null or empty. Concatenates a sequence with more values. The type of an element in the sequence. The sequence to concatenate. The values that will be concatenated with the sequence. A sequence containing all the original sequence elements cocatenated with values elements. Returns the bitwise xor of all the elements in the sequence. The elements to xor. The bitwise xor of all the elements in the sequence. Returns the bitwise xor of all the elements in the sequence. The elements to xor. The bitwise xor of all the elements in the sequence. Returns the bitwise xor of all the selected values of the elements in the sequence. The elements to select values to xor. The selector used to select the values. The bitwise xor of all the selected values of the elements in the sequence. Returns the bitwise xor of all the selected values of the elements in the sequence. The elements to select values to xor. The selector used to select the values. The bitwise xor of all the selected values of the elements in the sequence. Converts a sequence to a string by converting each element to a string. The type of an element in the sequence. The sequence with the elements to translate to string. A separator between the elements. Prefix to the entire string. Suffix to the entire string. A string of all the elements. Converts a sequence to a string by converting each element to a string. The type of an element in the sequence. The sequence with the elements to translate to string. A separator between the elements. Prefix to the entire string. A string of all the elements. Converts a sequence to a string by converting each element to a string. The type of an element in the sequence. The sequence with the elements to translate to string. A separator between the elements. A string of all the elements. Converts a sequence to a string by converting each element to a string. The type of an element in the sequence. The sequence with the elements to translate to string. A separator between the elements. A string of all the elements. Converts a sequence to a string by converting each element to a string. The type of an element in the sequence. The sequence with the elements to translate to string. A string of all the elements. Returns a string by converting all the bytes to a hexadecimal string. The bytes to convert to a string. The string to put between every two bytes. The string resulted by converting all the bytes to hexadecimal strings and putting the separator between them. Returns a string by converting all the bytes to a hexadecimal string. The bytes to convert to a string. The string resulted by converting all the bytes to hexadecimal strings. Creates a hash code by xoring the hash codes of the elements in the sequence. The type of the elements in the sequence. The sequence with the elements to create the hash code for. The hash code created by xoring all the hash codes of the elements in the sequence. Returns a hash code by xoring all the bytes. Each byte is xored with the next 8 bits of the integer. The bytes to xor. The hash code resulted by xoring all the bytes. Returns a hash code by xoring all the ushorts. Each ushort is xored with the next 16 bits of the integer. The ushorts to xor. The hash code resulted by xoring all the ushorts. Counts the number of types the given value is contained in the given sequence. The type of the elements in the sequence. The sequence to look for the value in. The value to look for in the sequence. The number of types the given value is contained in the given sequence. Returns true iff the given sequence is strictly ordered using the elements as keys and a default comparer. The type of the objects in the sequence that will be used as keys for comparison using a default comparer. The sequence of elements to check for strict order. True iff the sequence is strictly ordered. Returns true iff the given sequence is strictly ordered using the by keys computed using a given function and a default comparer. The type of the objects in the sequence that will that will be operated with the given key selector function to get the keys to compare using a default comparer. The type of the keys to compare using a default comparer. The sequence of elements to check for strict order. The function to operate on the sequence elements to get the keys to compare. True iff the sequence is strictly ordered. Returns true iff the given sequence is strictly ordered using the by keys computed using a given function and a given comparer. The type of the objects in the sequence that will that will be operated with the given key selector function to get the keys to compare using a given comparer. The type of the keys to compare using a given comparer. The sequence of elements to check for strict order. The function to operate on the sequence elements to get the keys to compare. The comparer to use to compare the computed keys. True iff the sequence is strictly ordered. Useful functions for sequences of bits. Casts a bit to a byte. True becomes 1 and false becomes 0. Bit 7 of the byte. 1 for true, 0 for false. Merges 2 bits to a byte. Bits should be arranged from the most significant to the least. Bit 6 of the byte. Bit 7 of the byte. A byte with the 2 least significant bits determined by the input. Merges 3 bits to a byte. Bits should be arranged from the most significant to the least. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte with the 3 least significant bits determined by the input. Merges 4 bits to a byte. Bits should be arranged from the most significant to the least. Bit 4 of the byte. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte with the 4 least significant bits determined by the input. Merges 5 bits to a byte. Bits should be arranged from the most significant to the least. Bit 3 of the byte. Bit 4 of the byte. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte with the 5 least significant bits determined by the input. Merges 6 bits to a byte. Bits should be arranged from the most significant to the least. Bit 2 of the byte. Bit 3 of the byte. Bit 4 of the byte. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte with the 6 least significant bits determined by the input. Merges 7 bits to a byte. Bits should be arranged from the most significant to the least. Bit 1 of the byte. Bit 2 of the byte. Bit 3 of the byte. Bit 4 of the byte. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte with the 7 least significant bits determined by the input. Merges 8 bits to a byte. Bits should be arranged from the most significant to the least. Bit 0 of the byte. Bit 1 of the byte. Bit 2 of the byte. Bit 3 of the byte. Bit 4 of the byte. Bit 5 of the byte. Bit 6 of the byte. Bit 7 of the byte. A byte whose bits are determined by the input. Merges 2 bytes to a ushort. Bytes should be arranged from the most significant to the least. Bits 0-7 of the ushort. Bits 8-15 of the ushort. A ushort whose bits are determined by the input. Merges 3 bytes to a UInt24. Bytes should be arranged from the most significant to the least. Bits 0-7 of the UInt24. Bits 8-15 of the UInt24. Bits 16-23 of the UInt24. A UInt24 whose bits are determined by the input. Merges 4 bytes to a uint. Bytes should be arranged from the most significant to the least. Bits 0-7 of the uint. Bits 8-15 of the uint. Bits 16-23 of the uint. Bits 24-31 of the uint. A uint whose bits are determined by the input. Merges 6 bytes to a UInt48. Bytes should be arranged from the most significant to the least. Bits 0-7 of the UInt48. Bits 8-15 of the UInt48. Bits 16-23 of the UInt48. Bits 24-31 of the UInt48. Bits 32-39 of the UInt48. Bits 40-47 of the UInt48. A UInt48 whose bits are determined by the input. Merges 8 bytes to a ulong. Bytes should be arranged from the most significant to the least. Bits 0-7 of the ulong. Bits 8-15 of the ulong. Bits 16-23 of the ulong. Bits 24-31 of the ulong. Bits 32-39 of the ulong. Bits 40-47 of the ulong. Bits 48-55 of the ulong. Bits 56-63 of the ulong. A ulong whose bits are determined by the input. Merges 16 bytes to a UInt128. Bytes should be arranged from the most significant to the least. Bits 0-7 of the UInt128. Bits 8-15 of the UInt128. Bits 16-23 of the UInt128. Bits 24-31 of the UInt128. Bits 32-39 of the UInt128. Bits 40-47 of the UInt128. Bits 48-55 of the UInt128. Bits 56-63 of the UInt128. Bits 64-71 of the UInt128. Bits 72-79 of the UInt128. Bits 80-87 of the UInt128. Bits 88-95 of the UInt128. Bits 96-103 of the UInt128. Bits 104-111 of the UInt128. Bits 112-119 of the UInt128. Bits 120-127 of the UInt128. A UInt128 whose bits are determined by the input. Merges 2 ushort to a uint. ushorts should be arranged from the most significant to the least. Bits 0-15 of the uint. Bits 16-31 of the uint. A uint whose bits are determined by the input. Merges a byte and a ushort to a UInt24. Values should be arranged from the most significant to the least. Bits 0-7 of the UInt24. Bits 8-23 of the UInt24. A UInt24 whose bits are determined by the input. Merges a ushort and 2 bytes to a uint. Values should be arranged from the most significant to the least. Bits 0-15 of the uint. Bits 16-23 of the uint. Bits 24-31 of the uint. A uint whose bits are determined by the input. Merges a ushort and 2 bytes to a uint. Values should be arranged from the most significant to the least. Bits 0-7 of the uint. Bits 8-23 of the uint. Bits 24-31 of the uint. A uint whose bits are determined by the input. Merges a ushort and 2 bytes to a uint. Values should be arranged from the most significant to the least. Bits 0-7 of the uint. Bits 8-15 of the uint. Bits 16-31 of the uint. A uint whose bits are determined by the input. Merges a uint and 2 ushorts to a ulong. values should be arranged from the most significant to the least. Bits 0-31 of the ulong. Bits 32-47 of the ulong. Bits 48-63 of the ulong. A ulong whose bits are determined by the input. Merges 2 uints to a ulong. uints should be arranged from the most significant to the least. Bits 0-31 of the ulong. Bits 32-63 of the ulong. A ulong whose bits are determined by the input. Merges 2 ulongs to a UInt128. ulongs should be arranged from the most significant to the least. Bits 0-63 of the UInt128. Bits 64-127 of the UInt128. A UInt128 whose bits are determined by the input. Extension methods for Type. Returns all the possible values for the given enum type. Extension methods for TimeSpan. Represents the number of ticks in 1 microsecond. This field is constant. Divides the TimeSpan by a given value. The TimeSpan to divide. The value to divide the TimeSpan by. A TimeSpan value equals to the given TimeSpan divided by the given value. Multiplies the TimeSpan by a given value. The TimeSpan to multiply. The value to multiply the TimeSpan by. A TimeSpan value equals to the given TimeSpan multiplied by the given value. Extension methods for DateTime. Returns a new DateTime that adds the specified number of microseconds to the value of this instance. The DateTime to add microseconds to. A number of whole and fractional microseconds. The value parameter can be negative or positive. Note that this value is rounded to the nearest integer. An object whose value is the sum of the date and time represented by this instance and the number of microseconds represented by value. An equality comparer that is implemented using the given equals and getHashCode functions. The type of objects to compare. Constructs the comparer using the given equals and getHashCode functions. The function to use to implement Equals(). The function to use to implement GetHashCode(). Determines whether the specified objects are equal using the equals function that was given in the constructor. true if the specified objects are equal; otherwise, false. The first object of type to compare.The second object of type to compare. Returns a hash code for the specified object using the getHashCode function that was given in the constructor. A hash code for the specified object. The for which a hash code is to be returned.The type of is a reference type and is null. Extension method for Short structure. Reverses the endianity of the given value. Extension methods for IList of type T. Wraps a list with a ReadOnlyCollection. The type of an element in the collection. The list to wrap in a ReadOnlyCollection. Returns an enumerable of all the elements in the given list starting in a specific offset and taking no more than a specific count. The type of an element in the collection. The list to take the elements from. The offset of the first element to take. The maximum number of elements to take. An enumerable of all the elements in the given list starting in a specific offset and taking no more than a specific count.