コード例 #1
0
        public static void Compare(DictionaryMessage a, DictionaryMessage b)
        {
            if (a.m_intMap == null)
            {
                A(a.m_intMap == b.m_intMap);
            }
            else
            {
                A(a.m_intMap.Count == b.m_intMap.Count);
                foreach (var kvp in a.m_intMap)
                {
                    A(kvp.Value == b.m_intMap[kvp.Key]);
                }
            }

            if (a.m_obMap == null)
            {
                A(a.m_obMap == b.m_obMap);
            }
            else
            {
                A(a.m_obMap.Count == b.m_obMap.Count);
                foreach (var kvp in a.m_obMap)
                {
                    kvp.Value.Compare(b.m_obMap[kvp.Key]);
                }
            }
        }
コード例 #2
0
ファイル: Messages.cs プロジェクト: kowalot/netserializer
		public static void Compare(DictionaryMessage a, DictionaryMessage b)
		{
			if (a.m_intMap == null)
				A(a.m_intMap == b.m_intMap);
			else
			{
				A(a.m_intMap.Count == b.m_intMap.Count);
				foreach (var kvp in a.m_intMap)
					A(kvp.Value == b.m_intMap[kvp.Key]);
			}

			if (a.m_obMap == null)
				A(a.m_obMap == b.m_obMap);
			else
			{
				A(a.m_obMap.Count == b.m_obMap.Count);
				foreach (var kvp in a.m_obMap)
					kvp.Value.Compare(b.m_obMap[kvp.Key]);
			}
		}