public IDebuggerProperty[] GetProperties(string name, bool checkBaseClasses) => debugger.Dispatcher.UI(() => { var props = CorClass.FindProperties(name, checkBaseClasses).ToList(); var res = new IDebuggerProperty[props.Count]; for (int i = 0; i < res.Length; i++) { res[i] = new DebuggerProperty(debugger, props[i]); } return(res); });
public bool PropertySignatureEquals(IDebuggerProperty a, PropertyInfo b) { var ag = a.Getter; var bg = b.GetMethod; if ((ag == null) != (bg == null)) return false; if (ag != null) { if (!MethodSigEquals(ag.MethodSig, bg)) return false; } // Should be enough, even if there's no getter return true; }
public IDebuggerProperty[] GetProperties(bool checkBaseClasses) { if (!checkBaseClasses) { return(Properties); } return(debugger.Dispatcher.UI(() => { var props = cls.FindProperties(checkBaseClasses).ToList(); var res = new IDebuggerProperty[props.Count]; for (int i = 0; i < res.Length; i++) { res[i] = new DebuggerProperty(debugger, props[i]); } return res; })); }
public bool PropertySignatureEquals(IDebuggerProperty a, PropertyInfo b) { var ag = a.Getter; var bg = b.GetMethod; if ((ag == null) != (bg == null)) { return(false); } if (ag != null) { if (!MethodSigEquals(ag.MethodSig, bg)) { return(false); } } // Should be enough, even if there's no getter return(true); }
public IDebuggerProperty[] GetProperties(string name, bool checkBaseClasses) { return debugger.Dispatcher.UI(() => { var props = type.FindProperties(name, checkBaseClasses).ToList(); var res = new IDebuggerProperty[props.Count]; for (int i = 0; i < res.Length; i++) res[i] = new DebuggerProperty(debugger, props[i]); return res; }); }
public IDebuggerProperty[] GetProperties(bool checkBaseClasses) { if (!checkBaseClasses) return Properties; return debugger.Dispatcher.UI(() => { var props = cls.FindProperties(checkBaseClasses).ToList(); var res = new IDebuggerProperty[props.Count]; for (int i = 0; i < res.Length; i++) res[i] = new DebuggerProperty(debugger, props[i]); return res; }); }