??????У?????????????
????????? ???????[ 2010/5/11 17:47:35 ] ????????
??????????????????Windbg??????????????????????????顣???????????????????????????????????????ж???????????????ε?????????.NET??á????????????LINQ to SQL?????????????????ORM????Щ?????????????????????????????????е?????????????Property??????????Ρ??????????????????????б??????????????????????д??get/set??????????????????????????????????????????????????ЩORM???????????????
?????????????????????????????棬????????????Щ????????????????????ó???????????????????????Windbg????????????????????IronPython Console?????load?????????????assembly?????????ORM???????????????????2????????????Щ??????????????????????????????????????????????????????????????????????????????????????????????????д?????????е?IronPython???????????????Щ????????????????????????£?
1: def access_attribute(namespace):
2: for name in dir(namespace):
3: try:
4: type_ = getattr(namespace?? name)
5: if type(type_) == type(System):
6: access_attribute(type_)
7: continue
8:
9: bj = type_()
10: for attr in dir(obj):
11: try: setattr(obj?? attr?? type(getattr(obj?? attr))())
12: except: pass
13: try: setattr(obj?? attr?? None)
14: except: ass
15: try: setattr(obj?? attr?? ????)
16: except: pass
17: except:
18: pass
?????ú???????????????????????????????????????????????????????
????* ??2?У????namespace?е??????????????????
????* ??4?У????namespace?е????????????type_?С???.NET?????type_????????????????
????* ??5~7?У????????????????System???????????????????????????????????????????????
????* ??9?У???????????????????????type_????????????obj?С?
????* ??10~16?У?????obj?????????????????丳???
????* ?????г??????????try???飬????????????????????????????ж??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11