Example #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);
        }
Example #2
0
 static public void Sync(this IUpdateVersioned inVersioned, ref int ioSerial)
 {
     HasChanged(inVersioned, ref ioSerial);
 }