Esempio n. 1
0
 public PersonWithHobbies(
     global::MyHobbyPal.Client.IPersonDetail person,
     global::System.Collections.Generic.IReadOnlyList <global::MyHobbyPal.Client.IHobbyDetail> hobbies)
 {
     Person  = person;
     Hobbies = hobbies;
 }
Esempio n. 2
0
        private static uint GetManyHelper <T>(global::System.Collections.Generic.IReadOnlyList <T> _this,
                                              uint startIndex,
                                              T[] items)
        {
            int count = _this.Count;

            // REX spec says "calling GetMany with startIndex equal to the length of the vector
            // (last valid index + 1) and any specified capacity will succeed and return zero actual
            // elements".
            if (startIndex == count)
            {
                return(0);
            }

            if (startIndex > (uint)count)
            {
                throw global::McgInterop.Helpers.NewException_ArgumentOutOfRangeException_index_BOUNDS();
            }

            EnsureIndexInt32(startIndex);

            if (items == null)
            {
                return(0);
            }

            uint itemCount = global::System.Math.Min((uint)items.Length, (uint)count - startIndex);

            for (uint i = 0; i < itemCount; ++i)
            {
                items[i] = _this[(int)(i + startIndex)];
            }

            return(itemCount);
        }
Esempio n. 3
0
 public ModelPhotoConnection2(
     global::System.Collections.Generic.IReadOnlyList <global::ImageRecognition.Web.IPhoto2>?items,
     string?nextToken)
 {
     Items     = items;
     NextToken = nextToken;
 }
Esempio n. 4
0
 public GetHero_Hero_Human(
     global::System.String name,
     global::System.Collections.Generic.IReadOnlyList <Episode?>?appearsIn)
 {
     Name      = name;
     AppearsIn = appearsIn;
 }
Esempio n. 5
0
 public OffsetPagingOfCatalogProductDto(
     global::System.Collections.Generic.IReadOnlyList <global::CoolStore.WebUI.Host.ICatalogProductDto> edges,
     int totalCount)
 {
     Edges      = edges;
     TotalCount = totalCount;
 }
Esempio n. 6
0
 public PersonConnection(
     global::System.Collections.Generic.IReadOnlyList <global::MyHobbyPal.Client.IPersonDetail> nodes,
     global::MyHobbyPal.Client.IPageInfo pageInfo)
 {
     Nodes    = nodes;
     PageInfo = pageInfo;
 }
Esempio n. 7
0
 public PersonConnectionData(
     global::System.String typename,
     global::System.Collections.Generic.IReadOnlyList <global::StrawberryShake.EntityId?>?nodes = null)
 {
     __typename = typename
                  ?? throw new global::System.ArgumentNullException(nameof(typename));
     Nodes = nodes;
 }
Esempio n. 8
0
 public DocUnionBookConnection(
     global::System.Collections.Generic.IReadOnlyList <global::Library.Client.Generated.IDocUnionBookEdge> edges,
     global::Library.Client.Generated.IPageInfo pageInfo,
     int totalCount)
 {
     Edges      = edges;
     PageInfo   = pageInfo;
     TotalCount = totalCount;
 }
Esempio n. 9
0
 public ReadBlogsResultInfo(
     global::System.Collections.Generic.IReadOnlyList <global::StrawberryShakeTesting.Tests.State.BlogPostData?>?posts,
     global::System.Collections.Generic.IReadOnlyCollection <global::StrawberryShake.EntityId> entityIds,
     global::System.UInt64 version)
 {
     Posts      = posts;
     _entityIds = entityIds
                  ?? throw new global::System.ArgumentNullException(nameof(entityIds));
     _version = version;
 }
Esempio n. 10
0
 private void Update_files(global::System.Collections.Generic.IReadOnlyList <global::Windows.Storage.StorageFile> obj, int phase)
 {
     if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
     {
         // Views\fileview.xaml line 12
         if (!isobj2ItemsSourceDisabled)
         {
             XamlBindingSetters.Set_Windows_UI_Xaml_Controls_ItemsControl_ItemsSource(this.obj2, obj, null);
         }
     }
 }
Esempio n. 11
0
 public DocUnionBook(
     int docid,
     string title,
     long isbn,
     System.DateTimeOffset pDate,
     string pName,
     global::System.Collections.Generic.IReadOnlyList <global::Library.Client.Generated.ICopy> copy)
 {
     Docid = docid;
     Title = title;
     Isbn  = isbn;
     PDate = pDate;
     PName = pName;
     Copy  = copy;
 }
Esempio n. 12
0
        // IVectorView<T> GetView()
        public static global::System.Collections.Generic.IReadOnlyList <T> GetView <T>(
            global::System.Collections.Generic.IList <T> _this
            )
        {
            //Contract.Assert(_this != null);

            // Note: This list is not really read-only - you could QI for a modifiable
            // list.  We gain some perf by doing this.  We believe this is acceptable.
            global::System.Collections.Generic.IReadOnlyList <T> roList = _this as global::System.Collections.Generic.IReadOnlyList <T>;
            if (roList == null)
            {
                roList = new global::System.Collections.ObjectModel.ReadOnlyCollection <T>(_this);
            }
            return(roList);
        }
Esempio n. 13
0
        // T GetAt(uint index)
        public static T GetAt <T>(
            global::System.Collections.Generic.IReadOnlyList <T> _this,
            uint index)
        {
            EnsureIndexInt32(index);

            try
            {
                return(_this[(int)index]);
            }
            catch (System.ArgumentOutOfRangeException ex)
            {
                McgMarshal.SetExceptionErrorCode(ex, global::McgInterop.McgHelpers.__HResults.E_BOUNDS);
                throw;
            }
        }
Esempio n. 14
0
            private static unsafe int Do_Abi_GetView_2(IntPtr thisPtr, out IntPtr __return_value__)
            {
                global::System.Collections.Generic.IReadOnlyList <T> ____return_value__ = default;
                __return_value__ = default;

                try
                {
                    ____return_value__ = FindAdapter(thisPtr).GetView();
                    __return_value__   = MarshalInterface <global::System.Collections.Generic.IReadOnlyList <T> > .FromManaged(____return_value__);
                }
                catch (Exception __exception__)
                {
                    global::WinRT.ExceptionHelpers.SetErrorInfo(__exception__);
                    return(global::WinRT.ExceptionHelpers.GetHRForException(__exception__));
                }
                return(0);
            }
Esempio n. 15
0
        // bool IndexOf(T value, out uint index)
        public static bool IndexOf <T>(
            global::System.Collections.Generic.IReadOnlyList <T> _this,
            T value,
            out uint index)
        {
            int max = _this.Count;

            for (int i = 0; i < max; i++)
            {
                if (global::System.Runtime.InteropServices.McgMarshal.ComparerEquals <T>(value, _this[i]))
                {
                    index = (uint)i;
                    return(true);
                }
            }

            index = 0;
            return(false);
        }
Esempio n. 16
0
        private global::System.Collections.Generic.IReadOnlyList <global::StrawberryShakeTesting.Tests.IReadBlogs_Posts?>?MapIReadBlogs_PostsArray(
            global::System.Collections.Generic.IReadOnlyList <global::StrawberryShakeTesting.Tests.State.BlogPostData?>?list,
            global::StrawberryShake.IEntityStoreSnapshot snapshot)
        {
            if (list is null)
            {
                return(null);
            }

            var blogPosts = new global::System.Collections.Generic.List <global::StrawberryShakeTesting.Tests.IReadBlogs_Posts?>();

            foreach (global::StrawberryShakeTesting.Tests.State.BlogPostData?child in list)
            {
                blogPosts.Add(MapIReadBlogs_Posts(
                                  child,
                                  snapshot));
            }

            return(blogPosts);
        }
Esempio n. 17
0
 public static void EnableEmailNotificationFolderFilter(string emailAccount, global::System.Collections.Generic.IReadOnlyList <string> folders)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Phone.Notification.Management.AccessoryManager", "void AccessoryManager.EnableEmailNotificationFolderFilter(string emailAccount, IReadOnlyList<string> folders)");
 }
 public static global::Windows.Foundation.IAsyncAction ImportMmsToSystemAsync(bool incoming, bool read, string subject, string sender, global::System.Collections.Generic.IReadOnlyList <string> recipients, global::System.DateTimeOffset deliveryTime, global::System.Collections.Generic.IReadOnlyList <global::System.Collections.Generic.IReadOnlyDictionary <string, object> > attachments)
 {
     throw new global::System.NotImplementedException("The member IAsyncAction MessagePartnerProvisioningManager.ImportMmsToSystemAsync(bool incoming, bool read, string subject, string sender, IReadOnlyList<string> recipients, DateTimeOffset deliveryTime, IReadOnlyList<IReadOnlyDictionary<string, object>> attachments) is not implemented in Uno.");
 }
Esempio n. 19
0
 public void UpdateRecognitionResults(global::System.Collections.Generic.IReadOnlyList <global::Windows.UI.Input.Inking.InkRecognitionResult> recognitionResults)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Input.Inking.InkManager", "void InkManager.UpdateRecognitionResults(IReadOnlyList<InkRecognitionResult> recognitionResults)");
 }
Esempio n. 20
0
 public void Start(global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIPv4list, global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIPv6list, global::Windows.Networking.Vpn.VpnInterfaceId vpnInterfaceId, global::Windows.Networking.Vpn.VpnRouteAssignment routeScope, global::Windows.Networking.Vpn.VpnNamespaceAssignment namespaceScope, uint mtuSize, uint maxFrameSize, bool optimizeForLowCostNetwork, object mainOuterTunnelTransport, object optionalOuterTunnelTransport)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Networking.Vpn.VpnChannel", "void VpnChannel.Start(IReadOnlyList<HostName> assignedClientIPv4list, IReadOnlyList<HostName> assignedClientIPv6list, VpnInterfaceId vpnInterfaceId, VpnRouteAssignment routeScope, VpnNamespaceAssignment namespaceScope, uint mtuSize, uint maxFrameSize, bool optimizeForLowCostNetwork, object mainOuterTunnelTransport, object optionalOuterTunnelTransport)");
 }
Esempio n. 21
0
 internal ToAbiHelper(global::System.Collections.Generic.IReadOnlyList <T> list) => _list = list;
Esempio n. 22
0
 // @TODO - Weird shared CCW support that I don't really understand. Get rid of this.
 public static uint GetMany_string(global::System.Collections.Generic.IReadOnlyList <string> _this,
                                   uint startIndex,
                                   string[] items)
 {
     return(GetManyHelper <string>(_this, startIndex, items));
 }
Esempio n. 23
0
 public void StartExistingTransports(global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIPv4list, global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIPv6list, global::Windows.Networking.Vpn.VpnInterfaceId vpnInterfaceId, global::Windows.Networking.Vpn.VpnRouteAssignment assignedRoutes, global::Windows.Networking.Vpn.VpnDomainNameAssignment assignedDomainName, uint mtuSize, uint maxFrameSize, bool Reserved)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Networking.Vpn.VpnChannel", "void VpnChannel.StartExistingTransports(IReadOnlyList<HostName> assignedClientIPv4list, IReadOnlyList<HostName> assignedClientIPv6list, VpnInterfaceId vpnInterfaceId, VpnRouteAssignment assignedRoutes, VpnDomainNameAssignment assignedDomainName, uint mtuSize, uint maxFrameSize, bool Reserved)");
 }
Esempio n. 24
0
 public void RequestCustomPrompt(global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.Vpn.IVpnCustomPrompt> customPrompt)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Networking.Vpn.VpnChannel", "void VpnChannel.RequestCustomPrompt(IReadOnlyList<IVpnCustomPrompt> customPrompt)");
 }
Esempio n. 25
0
 public static IntPtr FromManaged(global::System.Collections.Generic.IReadOnlyList <T> value) =>
 (value is null) ? IntPtr.Zero : CreateMarshaler(value).GetRef();
Esempio n. 26
0
 public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IReadOnlyList <T> obj) =>
 obj is null ? null : ComWrappersSupport.CreateCCWForObject(obj).As <Vftbl>(GuidGenerator.GetIID(typeof(IReadOnlyList <T>)));
Esempio n. 27
0
 public global::Windows.Foundation.IAsyncAction RequestCustomPromptAsync(global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.Vpn.IVpnCustomPromptElement> customPromptElement)
 {
     throw new global::System.NotImplementedException("The member IAsyncAction VpnChannel.RequestCustomPromptAsync(IReadOnlyList<IVpnCustomPromptElement> customPromptElement) is not implemented in Uno.");
 }
Esempio n. 28
0
 public void StartWithTrafficFilter(global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIpv4List, global::System.Collections.Generic.IReadOnlyList <global::Windows.Networking.HostName> assignedClientIpv6List, global::Windows.Networking.Vpn.VpnInterfaceId vpnInterfaceId, global::Windows.Networking.Vpn.VpnRouteAssignment assignedRoutes, global::Windows.Networking.Vpn.VpnDomainNameAssignment assignedNamespace, uint mtuSize, uint maxFrameSize, bool reserved, object mainOuterTunnelTransport, object optionalOuterTunnelTransport, global::Windows.Networking.Vpn.VpnTrafficFilterAssignment assignedTrafficFilters)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Networking.Vpn.VpnChannel", "void VpnChannel.StartWithTrafficFilter(IReadOnlyList<HostName> assignedClientIpv4List, IReadOnlyList<HostName> assignedClientIpv6List, VpnInterfaceId vpnInterfaceId, VpnRouteAssignment assignedRoutes, VpnDomainNameAssignment assignedNamespace, uint mtuSize, uint maxFrameSize, bool reserved, object mainOuterTunnelTransport, object optionalOuterTunnelTransport, VpnTrafficFilterAssignment assignedTrafficFilters)");
 }
Esempio n. 29
0
 public void RaiseTextEditTextChangedEvent(global::Windows.UI.Xaml.Automation.AutomationTextEditChangeType automationTextEditChangeType, global::System.Collections.Generic.IReadOnlyList <string> changedData)
 {
     global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.UI.Xaml.Automation.Peers.AutomationPeer", "void AutomationPeer.RaiseTextEditTextChangedEvent(AutomationTextEditChangeType automationTextEditChangeType, IReadOnlyList<string> changedData)");
 }
 public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList <IGetPeople_People_Nodes?>?nodes)
 {
     Nodes = nodes;
 }