| MaterialCreateInstanceCore Method |
When implemented in a derived class, creates a new instance of the
Material
derived class.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax protected virtual Material CreateInstanceCore()
Protected Overridable Function CreateInstanceCore As Material
protected:
virtual Material^ CreateInstanceCore()
abstract CreateInstanceCore : unit -> Material
override CreateInstanceCore : unit -> Material
Return Value
Type:
MaterialThe new instance.
Remarks
Do not call this method directly (except when calling base in an implementation). This
method is called internally by the Clone method whenever a new instance of the
Material is created.
Notes to Inheritors: Every Material derived class must
implement this method. A typical implementation is to simply call the default constructor
and return the result.
See Also