コード例 #1
0
        private bool UpdateUnitCollectionFromMessage(FahClientMessage message)
        {
            var existingUnitCollection = UnitCollection;

            UnitCollection = UnitCollection.Load(message.MessageText);
            return(existingUnitCollection is null || !UnitCollectionEqualityComparer.Instance.Equals(existingUnitCollection, UnitCollection));
        }