示例#1
0
        private platformVersion GetLastVersion(int platformType)
        {
            platformVersion lastVersion = null;

            platformInfo platform = GetPlatform(platformType);

            if (platform != null)
            {
                int maxVersion = 0;

                foreach (platformVersion version in platform.versions)
                {
                    if (version.version > maxVersion)
                    {
                        maxVersion  = version.version;
                        lastVersion = version;
                    }
                }
            }

            return(lastVersion);
        }
示例#2
0
 public void Remove(platformVersion version)
 {
     List.Remove(version);
 }
示例#3
0
 public void Add(platformVersion version)
 {
     List.Add(version);
 }