Space Engineers
Public Member Functions | List of all members
ProtoBuf.IExtensible Interface Reference

Indicates that the implementing type has support for protocol-buffer extensions. More...

Inheritance diagram for ProtoBuf.IExtensible:
ProtoBuf.Extensible

Public Member Functions

IExtension GetExtensionObject (bool createIfMissing)
 Retrieves the extension object for the current instance, optionally creating it if it does not already exist. More...
 

Detailed Description

Indicates that the implementing type has support for protocol-buffer extensions.

Can be implemented by deriving from Extensible.

Definition at line 11 of file IExtensible.cs.

Member Function Documentation

IExtension ProtoBuf.IExtensible.GetExtensionObject ( bool  createIfMissing)

Retrieves the extension object for the current instance, optionally creating it if it does not already exist.

Parameters
createIfMissingShould a new extension object be created if it does not already exist?
Returns
The extension object if it exists (or was created), or null if the extension object does not exist or is not available.

The createIfMissing argument is false during serialization, and true during deserialization upon encountering unexpected fields.

Implemented in ProtoBuf.Extensible.


The documentation for this interface was generated from the following file: