コード例 #1
0
 public String ConvertFrom(ComponentState value)
 {
     return(value.ToString());
 }
コード例 #2
0
 public String?ConvertNullableFrom(ComponentState?value)
 {
     return(value?.ToString());
 }
コード例 #3
0
 /// <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());
 }