public virtual Dictionary <string, string> GetParameterDescriptions() { string methodDesc; string returnDesc; Dictionary <string, string> ps = PMEXmlParser.GetMethodDescription(VPLUtil.GetObjectType(Owner.ObjectType), MethodDef, out methodDesc, out returnDesc); IDynamicMethodParameters d = Owner.ObjectInstance as IDynamicMethodParameters; if (d != null) { Dictionary <string, string> pc = d.GetParameterDescriptions(this.MemberName); if (pc != null) { foreach (KeyValuePair <string, string> kv in pc) { if (ps.ContainsKey(kv.Key)) { ps[kv.Key] = kv.Value; } else { ps.Add(kv.Key, kv.Value); } } } } return(ps); }
private ComponentDataDisplay getComponentDisplay(IComponent obj, UInt32 id) { if (obj != null) { Type t = VPLUtil.GetObjectType(obj); if (obj.Site != null && !string.IsNullOrEmpty(obj.Site.Name)) { return(new ComponentDataDisplay(obj, string.Format(CultureInfo.InvariantCulture, "{0}({1})", obj.Site.Name, t.FullName), id, obj.Site.Name)); } } return(null); }