Ejemplo n.º 1
0
        public int CompareTo(ManifestVersionUpdate?other)
        {
            if (other == null)
            {
                return(1);
            }
            int ret = ManifestId.CompareTo(other.ManifestId);

            if (ret != 0)
            {
                return(ret);
            }

            if (ExistingVersion == null && other.ExistingVersion != null)
            {
                return(-1);
            }
            if (ExistingVersion != null && other.ExistingVersion == null)
            {
                return(1);
            }
            if (ExistingVersion != null)
            {
                ret = ExistingVersion.CompareTo(other.ExistingVersion);
                if (ret != 0)
                {
                    return(ret);
                }
            }

            ret = string.Compare(ExistingFeatureBand, other.ExistingFeatureBand, StringComparison.Ordinal);
            if (ret != 0)
            {
                return(ret);
            }

            if (NewVersion == null && other.NewVersion != null)
            {
                return(-1);
            }
            if (NewVersion != null && other.NewVersion == null)
            {
                return(1);
            }
            if (NewVersion != null)
            {
                ret = NewVersion.CompareTo(other.NewVersion);
                if (ret != 0)
                {
                    return(ret);
                }
            }

            ret = string.Compare(NewFeatureBand, other.NewFeatureBand, StringComparison.Ordinal);
            return(ret);
        }
Ejemplo n.º 2
0
 public EventDescriptor(TEvent @event, ExistingVersion currentVersion, EventType eventType)
 {
     Event          = @event;
     CurrentVersion = currentVersion;
     EventType      = eventType;
 }