def __getattr__(self,name):
if name[0:2] != "EO" and name[0:2] != "VM":
raise AttributeError, "%s instance has no attribute '%s'" %(type(self).__name__, name)
else:
obj = None
wrapped = System.Collections.Generic.IDictionary[System.String, System.Object](self)
ret = wrapped.TryGetValue(name, obj)
if ret[0]:
return ret[1]
else:
raise AttributeError, "%s instance's ExpandoObject has no attribute '%s'" % (type(self).__name__, name)
评论列表
文章目录