public void Parse(WaveformConfigFileType file, RFmxInstrMX instr) { using (LogContext.PushProperty("Plugin", nameof(WlanPlugin))) { if (wlan == null) { bool result = CanParse(file); if (!result) { throw new InvalidOperationException($"{file.FileName} is not a valid file for this plugin."); } } WlanSignalGroup signal = wlan.Deserialize <WlanSignalGroup>(); instr.CreateWlanSignalConfigurationFromObject(signal); } }
/// <summary> /// Creates a WLAN signal configuration by serializing the data in <paramref name="objectToSerialize"/>. /// </summary> /// <returns></returns> public static RFmxWlanMX CreateWlanSignalConfigurationFromObject(this RFmxInstrMX instr, object objectToSerialize, string baseSelectorString = "") { return(instr.CreateWlanSignalConfigurationFromObject(objectToSerialize, string.Empty, baseSelectorString)); }