Esempio n. 1
0
        private bool ArePropertiesTheSame(UProperty a, UProperty b, bool checkPropertiesNames)
        {
            if (a == b)
            {
                return(true);
            }

            if (a == null || b == null)// one of properties is null
            {
                return(false);
            }

            if (checkPropertiesNames && (a.GetFName() != b.GetFName()))
            {
                return(false);
            }

            if (a.GetSize() != b.GetSize())
            {
                return(false);
            }

            if (a.GetOffset_ForGC() != b.GetOffset_ForGC())
            {
                return(false);
            }

            if (!Native_UProperty.SameType(a.Address, b.Address))
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
 /// <summary>
 /// returns true, if Other is property of exactly the same type
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool SameType(UProperty other)
 {
     return(Native_UProperty.SameType(Address, other == null ? IntPtr.Zero : other.Address));
 }