Microsoft.Protocols.TestSuites.MS_OXORULE.AdapterHelper.PropertyValueConvertToInt C# (CSharp) Method

PropertyValueConvertToInt() public static method

This method helps to convert the property value, which is of 4 bytes, to int value.
public static PropertyValueConvertToInt ( byte byteArray ) : int
byteArray byte The byte array to be converted.
return int
        public static int PropertyValueConvertToInt(byte[] byteArray)
        {
            int value = (byteArray[3] << 24) +
                        (byteArray[2] << 16) +
                        (byteArray[1] << 8) +
                        byteArray[0];
            return value;
        }