コード例 #1
0
ファイル: NSURL.cs プロジェクト: artemy0/Quiz
        /// <summary>
        /// Files the URL with path relative to UR.
        /// </summary>
        /// <returns>The URL with path relative to UR.</returns>
        /// <param name="path">Path.</param>
        /// <param name="isDirectory">If set to <c>true</c> is directory.</param>
        /// <param name="baseURL">Base UR.</param>
        public static NSURL FileURLWithPathRelativeToURL(NSString path, bool isDirectory, NSURL baseURL)
        {
            if (path == null || baseURL == null)
            {
                return(null);
            }

            return(FromPointer(C.NSURL_fileURLWithPathIsDirectoryRelativeToURL(path.ToPointer(), isDirectory, baseURL.ToPointer()), true));
        }
コード例 #2
0
ファイル: NSData.cs プロジェクト: artemy0/Quiz
 /// <summary>
 /// Creates a data object containing the data from the location specified by a given URL.
 /// </summary>
 /// <returns>The with contents of UR.</returns>
 /// <param name="url">URL.</param>
 public static NSData DataWithContentsOfURL(NSURL url)
 {
     return(url == null ? null : FromPointer(C.NSData_dataWithContentsOfURL(url.ToPointer())));
 }