Exemplo n.º 1
0
 public static string Serialize(this IMetadataElement element, string[] properties, Type[] ignoredFeatures = null)
 {
     return(element.ToJson(false, new HashSet <string>(properties), ignoredFeatures).Replace("\"", "'"));
 }
Exemplo n.º 2
0
 public static void Dump(this IMetadataElement element, string[] properties, Type[] ignoredFeatures = null)
 {
     Debug.WriteLine(element.ToJson(true, new HashSet <string>(properties), ignoredFeatures));
 }
Exemplo n.º 3
0
 public static string Serialize(this IMetadataElement element, MetadataKind metadata, Type[] ignoredFeatures = null)
 {
     return(element.ToJson(false, ResolvePropertyNames(metadata), ignoredFeatures).Replace("\"", "'"));
 }
Exemplo n.º 4
0
 public static void Dump(this IMetadataElement element, MetadataKind metadata, Type[] ignoredFeatures = null)
 {
     Debug.WriteLine(element.ToJson(true, ResolvePropertyNames(metadata), ignoredFeatures));
 }