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

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