void Set( string name, T value )

book_4_sparkGenerated
code_blocksInput

Description

The Set method in the Editor.MetaData class is used to assign a value to a metadata entry identified by a specified name. This method is generic, allowing you to set values of any type T.

Usage

To use the Set method, you need to provide a string name which acts as the key for the metadata entry, and a value of type T that you want to store. This method does not return any value.

Example

// Example of using the Set method
Editor.MetaData metaData = new Editor.MetaData();

// Set a string value
metaData.Set("Author", "John Doe");

// Set an integer value
metaData.Set("Version", 1);

// Set a boolean value
metaData.Set("IsPublished", true);