Example #1
0
 /// <summary>
 /// Adds a suffix to the name and if inherited adds to the inheritied name
 /// </summary>
 /// <param name="suffix">String to add as suffix</param>
 /// <param name="duplicate">If it is already prefixed, do you want to duplicate it?</param>
 public void AddSuffixToName(string suffix, bool duplicate = false)
 {
     GDTUtil.AddSuffixToName(this, suffix, duplicate);
 }
Example #2
0
 /// <summary>
 /// Get the body of an asset, or all the kvps
 /// </summary>
 /// <returns>All kvps in a nice string format</returns>
 ///
 public string GetAllKVPs()
 {
     return(string.Join("\n", this.Kvps.Select(x => GDTUtil.KVP(x.Key, x.Value)).ToArray()));
 }
Example #3
0
 /// <summary>
 /// Adds a prefix to the name and if inherited adds to the inheritied name
 /// </summary>
 /// <param name="prefix">String to add as prefix</param>
 /// <param name="duplicate">If it is already prefixed, do you want to duplicate it?</param>
 public void AddPrefixToName(string prefix, bool duplicate = false)
 {
     GDTUtil.AddPrefixToName(this, prefix, duplicate);
 }
Example #4
0
 /// <summary>
 /// Get the name of a asset
 /// </summary>
 /// <returns>A formatted asset name</returns>
 public string GetNameAndType()
 {
     return(GDTUtil.AssetNameAndType(this.Name, this.Type, this.inherited));
 }