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

ShorthandTag() public static méthode

Convert a formal style tag that starts with "tag:yaml.org,2002:" to the shorthand style that starts with "!!".
When tag contains YAML standard types, it is converted into !!xxx style. Otherwise, tag is returned as is.
public static ShorthandTag ( string tag ) : string
tag string Tag in formal style.
Résultat string
        public static string ShorthandTag(string tag)
        {
            if ( tag != null && tag.StartsWith(DefaultTagPrefix) )
                return "!!" + tag.Substring(DefaultTagPrefix.Length);
            return tag;
        }

Same methods

YamlNode::ShorthandTag ( ) : string