Пример #1
0
        public override string ToString()
        {
            if (Introduced.ToMacArch() == Platform.Mac_Arch64)
            {
                return("[Mavericks (onlyOn64: true)]");
            }

            return("[Mavericks]");
        }
Пример #2
0
        // we want generated code to use the new attribute for unified
        public override string ToString()
        {
            if (Introduced.ToMacArch() == Platform.Mac_Arch64)
            {
                return("[MountainLion (onlyOn64: true)]");
            }

            return("[MountainLion]");
        }
Пример #3
0
 public Platform GetIntroducedPlatformFor(Platform platform) => Introduced?.GetPlatform(platform.Name);
Пример #4
0
 public string GetIntroduced()
 {
     return(Introduced.GetAttribute("value"));
 }
Пример #5
0
 public bool IsApplicableAtVersion(Version version)
 {
     return((Introduced.IsUnspecified() || version >= Introduced) && (!IsDeprecated || version < Deprecated));
 }