Example #1
0
 private RdfFormat(RdfFormat copyOf, Encoding withEncoding)
 {
     DefaultExtension = copyOf.DefaultExtension;
     TripleFormatterType = copyOf.TripleFormatterType;
     Encoding = withEncoding;
     MediaTypes = copyOf.MediaTypes;
     SerializedModel = copyOf.SerializedModel;
 }
Example #2
0
 private RdfFormat(RdfFormat copyOf, Encoding withEncoding)
 {
     DefaultExtension    = copyOf.DefaultExtension;
     TripleFormatterType = copyOf.TripleFormatterType;
     Encoding            = withEncoding;
     MediaTypes          = copyOf.MediaTypes;
     SerializedModel     = copyOf.SerializedModel;
 }
Example #3
0
 /// <summary>
 /// Returns true, if this instance has at least one media type string that matches
 /// one of the media type strings of <paramref name="other"/>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool MatchesMediaType(RdfFormat other)
 {
     return MediaTypes.Any(x => other.MediaTypes.Contains(x));
 }
Example #4
0
 /// <summary>
 /// Returns true, if this instance has at least one media type string that matches
 /// one of the media type strings of <paramref name="other"/>
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool MatchesMediaType(RdfFormat other)
 {
     return(this.MediaTypes.Any(x => other.MediaTypes.Contains(x)));
 }