/// <summary> /// 复制数据 /// </summary> /// <param name="data">数据</param> public void copy(SecurityLatestDataLV2 data) { if (data == null) { return; } m_allBuyVol = data.m_allBuyVol; m_allSellVol = data.m_allSellVol; m_avgBuyPrice = data.m_avgBuyPrice; m_avgSellPrice = data.m_avgSellPrice; m_buyVolume6 = data.m_buyVolume6; m_buyVolume7 = data.m_buyVolume7; m_buyVolume8 = data.m_buyVolume8; m_buyVolume9 = data.m_buyVolume9; m_buyVolume10 = data.m_buyVolume10; m_buyPrice6 = data.m_buyPrice6; m_buyPrice7 = data.m_buyPrice7; m_buyPrice8 = data.m_buyPrice8; m_buyPrice9 = data.m_buyPrice9; m_buyPrice10 = data.m_buyPrice10; m_securityCode = data.m_securityCode; m_sellVolume6 = data.m_sellVolume6; m_sellVolume7 = data.m_sellVolume7; m_sellVolume8 = data.m_sellVolume8; m_sellVolume9 = data.m_sellVolume9; m_sellVolume10 = data.m_sellVolume10; m_sellPrice6 = data.m_sellPrice6; m_sellPrice7 = data.m_sellPrice7; m_sellPrice8 = data.m_sellPrice8; m_sellPrice9 = data.m_sellPrice9; m_sellPrice10 = data.m_sellPrice10; }
/// <summary> /// 比较是否相同 /// </summary> /// <param name="data">数据</param> /// <returns>是否相同</returns> public bool Equal(SecurityLatestDataLV2 data) { if (data == null) { return(false); } if (m_allBuyVol == data.m_allBuyVol && m_allSellVol == data.m_allSellVol && m_avgBuyPrice == data.m_avgBuyPrice && m_avgSellPrice == data.m_avgSellPrice && m_buyVolume6 == data.m_buyVolume6 && m_buyVolume7 == data.m_buyVolume7 && m_buyVolume8 == data.m_buyVolume8 && m_buyVolume9 == data.m_buyVolume9 && m_buyVolume10 == data.m_buyVolume10 && m_buyPrice6 == data.m_buyPrice6 && m_buyPrice7 == data.m_buyPrice7 && m_buyPrice8 == data.m_buyPrice8 && m_buyPrice9 == data.m_buyPrice9 && m_buyPrice10 == data.m_buyPrice10 && m_securityCode == data.m_securityCode && m_sellVolume6 == data.m_sellVolume6 && m_sellVolume7 == data.m_sellVolume7 && m_sellVolume8 == data.m_sellVolume8 && m_sellVolume9 == data.m_sellVolume9 && m_sellVolume10 == data.m_sellVolume10 && m_sellPrice6 == data.m_sellPrice6 && m_sellPrice7 == data.m_sellPrice7 && m_sellPrice8 == data.m_sellPrice8 && m_sellPrice9 == data.m_sellPrice9 && m_sellPrice10 == data.m_sellPrice10) { return(true); } else { return(false); } }