예제 #1
0
        public override string GenerateMemberFullName(NameGeneratorContext context, XElement node)
        {
            string memberDefName           = YamlUtility.RegularizeName(YamlUtility.ParseMemberName(node.NullableElement("definition").NullableValue(), node.NullableElement("argsstring").NullableValue()), Constants.Dot);
            string regularizedCompoundName = YamlUtility.RegularizeName(context.CurrentChange.Name, Constants.Dot);
            int    indexOfMemberFullName   = memberDefName.IndexOf(regularizedCompoundName);

            return(String.IsNullOrEmpty(regularizedCompoundName) || String.IsNullOrEmpty(memberDefName) || indexOfMemberFullName == -1 ? memberDefName : memberDefName.Substring(indexOfMemberFullName));
        }
예제 #2
0
 public override string GenerateMemberName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.ParseMemberName(node.NullableElement("name").NullableValue(), node.NullableElement("argsstring").NullableValue()));
 }
예제 #3
0
 public override string GenerateMemberFullName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.RegularizeName(YamlUtility.ParseMemberName(node.NullableElement("definition").NullableValue(), node.NullableElement("argsstring").NullableValue()), Constants.Dot));
 }