|
-
Dec 30th, 2002, 01:23 PM
#1
Thread Starter
New Member
undocumented method
does anybody know anything about undocumented method GetMethodTablePtrAsInt.
-
Dec 30th, 2002, 01:33 PM
#2
Sleep mode
-
Dec 30th, 2002, 02:13 PM
#3
New Member
this method is usually used to implement overridable GetHashCode and returns Int32 not a function pointer. when you define your Equals method for a type, you should also override GetHashCodeMethod because in order to exploit of the purpose of these methods. GetMethodTablePtrAsInt gets an object as its parameter (usually me) and returns that me as an Int32 to build the hashcoded object according to your implemented algorithm. but i advice you never use undocumented features of .net. there are so many other ways to accomplish this or the other related tasks without use of undocumented feature of the language.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|