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