Results 1 to 3 of 3

Thread: undocumented method

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    1

    undocumented method

    does anybody know anything about undocumented method GetMethodTablePtrAsInt.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

  3. #3
    New Member
    Join Date
    Dec 2002
    Posts
    11
    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
  •  



Click Here to Expand Forum to Full Width