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