public String ConvertFrom(ComponentState value) { return(value.ToString()); }
public String?ConvertNullableFrom(ComponentState?value) { return(value?.ToString()); }
/// <summary> /// Event which is raised whenever the state of a storage system changes. /// </summary> /// <param name="sender">Object instance which raised the event.</param> /// <param name="state">New state of the storage system.</param> static void StorageSystem_StateChanged(IStorageSystem sender, ComponentState state) { Console.WriteLine("Storage system changed state to '{0}'.", state.ToString()); }