コード例 #1
0
 /// <summary>
 /// Indicates the specified pin is disabled on connection.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <returns>The pin configuration.</returns>
 public static SwitchInputPinConfiguration Disable(this SwitchInputPinConfiguration configuration)
 {
     configuration.Enabled = false;
     return(configuration);
 }
コード例 #2
0
 /// <summary>
 /// Indicates the specified pin is enabled on connection.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <returns>The pin configuration.</returns>
 public static SwitchInputPinConfiguration Enable(this SwitchInputPinConfiguration configuration)
 {
     configuration.Enabled = true;
     return(configuration);
 }