Exemplo n.º 1
0
        public override string ToString()
        {
            if (Introduced.ToMacArch() == Platform.Mac_Arch64)
            {
                return("[Mavericks (onlyOn64: true)]");
            }

            return("[Mavericks]");
        }
Exemplo n.º 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]");
        }
Exemplo n.º 3
0
 public Platform GetIntroducedPlatformFor(Platform platform) => Introduced?.GetPlatform(platform.Name);
Exemplo n.º 4
0
 public string GetIntroduced()
 {
     return(Introduced.GetAttribute("value"));
 }
Exemplo n.º 5
0
 public bool IsApplicableAtVersion(Version version)
 {
     return((Introduced.IsUnspecified() || version >= Introduced) && (!IsDeprecated || version < Deprecated));
 }