Exemplo n.º 1
0
        /// <summary>
        /// Determines if the version numbers have changed.
        /// </summary>
        static public bool HasChanged(this IUpdateVersioned inVersioned, ref int ioSerial)
        {
            int currentSerial = inVersioned.GetUpdateVersion();

            if (ioSerial != currentSerial)
            {
                ioSerial = currentSerial;
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
 static public void Sync(this IUpdateVersioned inVersioned, ref int ioSerial)
 {
     HasChanged(inVersioned, ref ioSerial);
 }