public void SetObj(ObjId val) { Trace.Assert(_type == VarType.Obj, ""); if (!val.Equals(_val.Obj())) { _val.SetObj(val); } }
public static bool CheckInequals(this ObjId obj, ObjId obj2) { if (obj.Equals(obj2)) { return(false); } return(true); }
public static bool CheckValid(this ObjId obj) { if (obj.Equals(ObjId.Empty)) { //string s = string.Format("OBJ id:\"{0}\" EMPTY\r\n{1}\r\n{2}", obj, new StackTrace(1, true).ToText(4), StrHelper.Splitter); //Csl.Wl(ConsoleColor.Red, s); //Log.Error(s); return(false); } return(true); }