System.Yaml.YamlNode.ExpandTag C# (CSharp) Méthode

ExpandTag() public static méthode

Convert shorthand tag starting with "!!" to the formal style that starts with "tag:yaml.org,2002:".
When tag starts with "!!", it is converted into formal style. Otherwise, tag is returned as is.
public static ExpandTag ( string tag ) : string
tag string Tag in the shorthand style.
Résultat string
        public static string ExpandTag(string tag)
        {
            if ( tag.StartsWith("!!") )
                return DefaultTagPrefix + tag.Substring(2);
            return tag;
        }