コード例 #1
0
ファイル: MicrowaveTuning.cs プロジェクト: ewin66/media
 /// <summary>
 /// Clones another MicrowaveTuning structure
 /// </summary>
 /// <param name="clone">clone</param>
 public MicrowaveTuning(MicrowaveTuning clone)
 {
     this.ChannelBandwidth = clone.ChannelBandwidth;
     if (clone.Encryption != null)
     {
         this.Encryption = new EncryptionInfo(clone.Encryption);
     }
     else
     {
         this.Encryption = null;
     }
     if (clone.ForwardErrorCorrection == null)
     {
         this.ForwardErrorCorrection = null;
     }
     else
     {
         this.ForwardErrorCorrection = new Interval(clone.ForwardErrorCorrection);
     }
     this.Frequency = clone.Frequency;
     if (clone.GuardInterval == null)
     {
         this.GuardInterval = null;
     }
     else
     {
         this.GuardInterval = new Interval(clone.GuardInterval);
     }
     this.Interleaver            = clone.Interleaver;
     this.Modulation             = clone.Modulation;
     this.PacketDiversityControl = clone.PacketDiversityControl;
     this.SpectralInversion      = clone.SpectralInversion;
     this.TransportMode          = clone.TransportMode;
 }
コード例 #2
0
ファイル: MicrowaveExtensions.cs プロジェクト: ewin66/media
 /// <summary>
 /// Checks if a parameter is set on a MicrowaveTuning object
 /// </summary>
 /// <param name="tuning">tuning to check</param>
 /// <param name="parameter">parameter to check for</param>
 /// <returns>true if the parameter is set, false otherwise</returns>
 public static bool IsSet(this MicrowaveTuning tuning, MicrowaveTuning.Parameters parameter)
 {
     return(MicrowaveTuning.IsParameterValid(tuning.ValidParameterData, parameter));
 }
コード例 #3
0
ファイル: MicrowaveExtensions.cs プロジェクト: ewin66/media
 /// <summary>
 /// Checks if a MicrowaveTuning parameter is set on MicrowaveCapabilities.SupportedTuningParameters property
 /// </summary>
 /// <param name="caps">capabilities to check</param>
 /// <param name="tuningParameter">tuning parameter to check for</param>
 /// <returns>true if set in MicrowaveCapabilities.SupportedTuningParameters, false otherwise</returns>
 public static bool IsSet(this MicrowaveCapabilities caps, MicrowaveTuning.Parameters tuningParameter)
 {
     return(MicrowaveTuning.IsParameterValid(caps.SupportedTuningParameters, tuningParameter));
 }