-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FileProvider] Removes BindAs, add manual code for it and reviews
- Loading branch information
Showing
4 changed files
with
84 additions
and
20 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
src/FileProvider/NSFileProviderItemIdentifierExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// NSFileProviderItemIdentifierExtensions.cs | ||
// | ||
// Authors: | ||
// Alex Soto <alexsoto@microsoft.com> | ||
// | ||
// Copyright 2017 Xamarin Inc. All rights reserved. | ||
// | ||
|
||
#if XAMCORE_2_0 | ||
using System; | ||
using XamCore.Foundation; | ||
|
||
namespace XamCore.FileProvider { | ||
public partial class NSFileProviderItemIdentifierExtensions { | ||
|
||
public static NSString[] GetConstants (this NSFileProviderItemIdentifier[] self) | ||
{ | ||
if (self == null) | ||
throw new ArgumentNullException (nameof (self)); | ||
|
||
var array = new NSString [self.Length]; | ||
for (int n = 0; n < self.Length; n++) | ||
array [n] = self [n].GetConstant (); | ||
return array; | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters