public ReadOnlyDictionaryValueCollection(global::System.Collections.Generic.IReadOnlyDictionary <K, V> dictionary) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } this.dictionary = dictionary; }
public ReadOnlyDictionaryValueCollection(System.Collections.Generic.IReadOnlyDictionary <TKey, TValue> dictionary) { if (dictionary == null) { throw global::McgInterop.Helpers.NewException_ArgumentNullException_dictionary(); } this.dictionary = dictionary; }
public ReadOnlyDictionaryKeyEnumerator(global::System.Collections.Generic.IReadOnlyDictionary <K, V> dictionary) { if (dictionary == null) { throw new ArgumentNullException(nameof(dictionary)); } this.dictionary = dictionary; enumeration = dictionary.GetEnumerator(); }
// V Lookup(K key) public static V Lookup <K, V>(global::System.Collections.Generic.IReadOnlyDictionary <K, V> _this, K key) { try { return(_this[key]); } catch (KeyNotFoundException ex) { // Change error code to match what WinRT expects McgMarshal.SetExceptionErrorCode(ex, global::McgInterop.McgHelpers.__HResults.E_BOUNDS); throw; } }
public void Split(out global::System.Collections.Generic.IReadOnlyDictionary <TKey, TValue> firstPartition, out global::System.Collections.Generic.IReadOnlyDictionary <TKey, TValue> secondPartition) { if (Count < 2) { firstPartition = null; secondPartition = null; return; } int pivot = (int)(((long)firstItemIndex + (long)lastItemIndex) / (long)2); firstPartition = new ConstantSplittableMap <TKey, TValue>(items, firstItemIndex, pivot); secondPartition = new ConstantSplittableMap <TKey, TValue>(items, pivot + 1, lastItemIndex); }
// IMapView<K, V> GetView() public static global::System.Collections.Generic.IReadOnlyDictionary <K, V> GetView <K, V>( global::System.Collections.Generic.IDictionary <K, V> _this ) { //Contract.Assert(_this != null); // Note: This dictionary is not really read-only - you could QI for a modifiable // dictionary. We gain some perf by doing this. We believe this is acceptable. global::System.Collections.Generic.IReadOnlyDictionary <K, V> roDictionary = _this as global::System.Collections.Generic.IReadOnlyDictionary <K, V>; if (roDictionary == null) { roDictionary = new global::System.Collections.ObjectModel.ReadOnlyDictionary <K, V>(_this); } return(roDictionary); }
// void Split(out IReadOnlyDictionary<K, V> first, out IReadOnlyDictionary<K, V> second) public static void Split <K, V>(global::System.Collections.Generic.IReadOnlyDictionary <K, V> _this, out global::System.Collections.Generic.IReadOnlyDictionary <K, V> first, out global::System.Collections.Generic.IReadOnlyDictionary <K, V> second) { if (_this.Count < 2) { first = null; second = null; return; } ConstantSplittableMap <K, V> splittableMap = _this as ConstantSplittableMap <K, V>; if (splittableMap == null) { splittableMap = new ConstantSplittableMap <K, V>(_this); } splittableMap.Split(out first, out second); }
internal ConstantSplittableMap(global::System.Collections.Generic.IReadOnlyDictionary <TKey, TValue> data) { if (data == null) { throw global::McgInterop.Helpers.NewException_ArgumentNullException_data(); } int count = data.Count; this.lastItemIndex = count - 1; items = new global::System.Collections.Generic.KeyValuePair <TKey, TValue> [count]; int i = 0; foreach (global::System.Collections.Generic.KeyValuePair <TKey, TValue> kv in data) { items[i++] = kv; } global::System.Array.Sort(items, 0, items.Length, this); }
public static global::Windows.Foundation.IAsyncOperation <global::Windows.Security.Credentials.WebAccount> AddWebAccountAsync(string webAccountId, string webAccountUserName, global::System.Collections.Generic.IReadOnlyDictionary <string, string> props, global::Windows.Security.Authentication.Web.Provider.WebAccountScope scope) { throw new global::System.NotImplementedException("The member IAsyncOperation<WebAccount> WebAccountManager.AddWebAccountAsync(string webAccountId, string webAccountUserName, IReadOnlyDictionary<string, string> props, WebAccountScope scope) is not implemented in Uno."); }
public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IReadOnlyDictionary <K, V> obj) => obj is null ? null : ComWrappersSupport.CreateCCWForObject(obj).As <Vftbl>(GuidGenerator.GetIID(typeof(IReadOnlyDictionary <K, V>)));
// bool HasKey(K key) public static bool HasKey <K, V>( global::System.Collections.Generic.IReadOnlyDictionary <K, V> _this, K key) { return(_this.ContainsKey(key)); }
public global::Windows.Foundation.IAsyncAction SaveExtendedPropertiesAsync(global::System.Collections.Generic.IReadOnlyDictionary <string, object> data) { throw new global::System.NotImplementedException("The member IAsyncAction ContactStore.SaveExtendedPropertiesAsync(IReadOnlyDictionary<string, object> data) is not implemented in Uno."); }
private global::StrawberryShake.OperationRequest CreateRequest(global::System.Collections.Generic.IReadOnlyDictionary <global::System.String, global::System.Object?>?variables) { return(new global::StrawberryShake.OperationRequest(id: FindPlayersQueryDocument.Instance.Hash.Value, name: "FindPlayers", document: FindPlayersQueryDocument.Instance, strategy: global::StrawberryShake.RequestStrategy.Default, variables: variables)); }
// uint Size { get } public static uint get_Size <K, V>(global::System.Collections.Generic.IReadOnlyDictionary <K, V> _this) { return((uint)_this.Count); }
public static bool TryEscalateScenario(global::System.Guid scenarioId, global::Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticEscalationType escalationType, string outputDirectory, bool timestampOutputDirectory, bool forceEscalationUpload, global::System.Collections.Generic.IReadOnlyDictionary <string, string> triggers) { throw new global::System.NotImplementedException("The member bool PlatformDiagnosticActions.TryEscalateScenario(Guid scenarioId, PlatformDiagnosticEscalationType escalationType, string outputDirectory, bool timestampOutputDirectory, bool forceEscalationUpload, IReadOnlyDictionary<string, string> triggers) is not implemented in Uno."); }
private global::StrawberryShake.OperationRequest CreateRequest(global::System.Collections.Generic.IReadOnlyDictionary <global::System.String, global::System.Object?>?variables) { return(new global::StrawberryShake.OperationRequest(id: GetCustomValueQueryDocument.Instance.Hash.Value, name: "GetCustomValue", document: GetCustomValueQueryDocument.Instance, strategy: global::StrawberryShake.RequestStrategy.PersistedQuery)); }
public static global::Windows.Foundation.IAsyncOperation <global::Windows.Security.Credentials.WebAccount> AddWebAccountForUserAsync(global::Windows.System.User user, string webAccountId, string webAccountUserName, global::System.Collections.Generic.IReadOnlyDictionary <string, string> props) { throw new global::System.NotImplementedException("The member IAsyncOperation<WebAccount> WebAccountManager.AddWebAccountForUserAsync(User user, string webAccountId, string webAccountUserName, IReadOnlyDictionary<string, string> props) is not implemented in Uno."); }
global::StrawberryShake.OperationRequest global::StrawberryShake.IOperationRequestFactory.Create(global::System.Collections.Generic.IReadOnlyDictionary <global::System.String, global::System.Object?>?variables) { return(CreateRequest()); }
internal ToAbiHelper(global::System.Collections.Generic.IReadOnlyDictionary <K, V> dictionary) => _dictionary = dictionary;
public static IntPtr FromManaged(global::System.Collections.Generic.IReadOnlyDictionary <K, V> value) => (value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef();
public static global::Windows.Foundation.IAsyncAction UpdateWebAccountPropertiesAsync(global::Windows.Security.Credentials.WebAccount webAccount, string webAccountUserName, global::System.Collections.Generic.IReadOnlyDictionary <string, string> additionalProperties) { throw new global::System.NotImplementedException("The member IAsyncAction WebAccountManager.UpdateWebAccountPropertiesAsync(WebAccount webAccount, string webAccountUserName, IReadOnlyDictionary<string, string> additionalProperties) is not implemented in Uno."); }