SpeckleGrasshopper/ObjectCreation/ConvertSpeckleObject.cs
/// <summary>
/// Serialises the current state of the component, making sure we save:
/// - the current type.
/// </summary>
/// <param name="writer"></param>
/// <returns></returns>
Serialises the current state of the component, making sure we save:
the current type.
Serialises the current state of the component making sure we save : the current type .
public override bool Write(GH_IWriter writer)
    {
      if (SelectedType != null)
      {
        writer.SetBoolean("init", true);
        writer.SetString("type", SelectedType.Name);
        writer.SetString("assembly", SelectedType.AssemblyQualifiedName);
      }
      else
        writer.SetBoolean("init", false);
      return base.Write(writer);
    }
public override bool Write ( GH_IWriter writer ) { if ( SelectedType != null ) { writer . SetBoolean ( " " , true ) ; writer . SetString ( " " , SelectedType . Name ) ; writer . SetString ( " " , SelectedType . AssemblyQualifiedName ) ; } else writer . SetBoolean ( " " , false ) ; return base . Write ( writer ) ; }
Serialises the current state of the component, making sure we save:
 the current type.
Serialises the current state of the component making sure we save : the current type .
None
writer
GH_IWriter
None