Exemple #1
0
            public bool Equals(PSO2Stringx30 c)
            {
                var cArr = c.GetBytes();

                // Optimization for a common success case.
                if (Object.ReferenceEquals(this, c))
                {
                    return(true);
                }

                // If run-time types are not exactly the same, return false.
                if (this.GetType() != c.GetType())
                {
                    return(false);
                }

                for (int i = 0; i < 0x30; i++)
                {
                    if (stringArray[i] != cArr[i])
                    {
                        return(false);
                    }
                }

                return(true);
            }
Exemple #2
0
            public static PSO2Stringx30 GeneratePSO2String(string newString)
            {
                var str = new PSO2Stringx30();

                str.SetString(newString);

                return(str);
            }
Exemple #3
0
            public static PSO2Stringx30 GeneratePSO2String(byte[] bytes)
            {
                var str = new PSO2Stringx30();

                str.SetBytes(bytes);

                return(str);
            }