XPRMObjectBase Class
All of the other classes that are backed by Mosel must inherit the XPRMObjectBase class - this defines a reference to the XPRMObject that the object was spawned by. This is done to prevent the XPRM object from being garbage-collected, which could lead to a Mosel model being unloaded or Mosel itself being exited while we're still trying to access data.

Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 5.0.2.0

C#
public abstract class XPRMObjectBase : XPRMObject
The XPRMObjectBase type exposes the following members.

Name | Description | |
---|---|---|
![]() |
Model |
Used to fetch the XPRM model to which this object belongs, or else 'null' if there is no model anywhere among this Object's ancestors.
|
![]() |
Owner |
Used to fetch the XPRM object to which this object belongs
|

Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType |
Gets the type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object.
(Inherited from Object.) |
![]() |
ToString |
Returns a string that represents the current object.
(Inherited from Object.) |

Reference
