Download CLab# and CaSPer: User Manual
Transcript
160 CHAPTER 6. CLAB# 1.0 API REFERENCE ∗ obj - • Finalize protected void Finalize( ) Allows an to attempt to free resources and perform other cleanup operations before the is reclaimed by garbage collection. • GetBaseException public System.Exception GetBaseException( ) When overridden in a derived class, returns the that is the root cause of one or more subsequent exceptions. • GetHashCode public int GetHashCode( ) Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table. • GetObjectData public void GetObjectData( ) When overridden in a derived class, sets the with information about the exception. – Parameters ∗ info ∗ context • GetType public System.Type GetType( ) Gets the runtime type of the current instance. • MemberwiseClone protected object MemberwiseClone( )