public static string ToStringOrDefault(this Vector3 self, string toDefaultString = null, Vector3 defaultValue = default) { return(ObjectUtil.Equals(self, defaultValue) ? toDefaultString : self.ToString()); }
public override int GetHashCode() { return(ObjectUtil.GetHashCode(classType, bindingFlags)); }
public override int GetHashCode() { return(_list == null?ObjectUtil.GetHashCode(_list) : ObjectUtil.GetHashCode(_list.ToArray())); }
public static Color ToColorOrDefault(this string self, string toDefaultString = null, Color defaultValue = default) { return(ObjectUtil.Equals(self, toDefaultString) ? defaultValue : self.ToColor()); }
public static Matrix4x4 ToMatrix4x4OrDefault(this string self, string toDefaultString = null, Matrix4x4 defaultValue = default(Matrix4x4)) { return(ObjectUtil.Equals(self, toDefaultString) ? defaultValue : self.ToMatrix4x4()); }
public static Vector3 ToVector4OrDefault(this string self, string toDefaultString = null, Vector4 defaultValue = default) { return(ObjectUtil.Equals(self, toDefaultString) ? defaultValue : self.ToVector4()); }