Exemple #1
0
 public static Uri GetURI(this Document document)
 {
     return(ProtocolConversions.GetUriFromFilePath(document.FilePath));
 }
Exemple #2
0
 public static Uri GetURI(this TextDocument document)
 => ProtocolConversions.GetUriFromFilePath(document.FilePath);
Exemple #3
0
 public static Uri?TryGetURI(this TextDocument document, RequestContext?context = null)
 => ProtocolConversions.TryGetUriFromFilePath(document.FilePath, context);
Exemple #4
0
 public static Uri GetURI(this TextDocument document)
 {
     Contract.ThrowIfNull(document.FilePath);
     return(ProtocolConversions.GetUriFromFilePath(document.FilePath));
 }