Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MarshalUnicastIpAddressInformationCollection()

static UnicastIPAddressInformationCollection System.Net.NetworkInformation.SystemUnicastIPAddressInformation.MarshalUnicastIpAddressInformationCollection ( IntPtr ptr)
inlinestaticpackage

Definition at line 75 of file SystemUnicastIPAddressInformation.cs.

76 {
77 UnicastIPAddressInformationCollection unicastIPAddressInformationCollection = new UnicastIPAddressInformationCollection();
78 while (ptr != IntPtr.Zero)
79 {
80 global::Interop.IpHlpApi.IpAdapterUnicastAddress adapterAddress = Marshal.PtrToStructure<global::Interop.IpHlpApi.IpAdapterUnicastAddress>(ptr);
81 unicastIPAddressInformationCollection.InternalAdd(new SystemUnicastIPAddressInformation(adapterAddress));
82 ptr = adapterAddress.next;
83 }
84 return unicastIPAddressInformationCollection;
85 }
SystemUnicastIPAddressInformation(global::Interop.IpHlpApi.IpAdapterUnicastAddress adapterAddress)
static ? object PtrToStructure(IntPtr ptr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type structureType)
Definition Marshal.cs:1164

References System.Net.NetworkInformation.SystemUnicastIPAddressInformation.SystemUnicastIPAddressInformation(), System.Net.NetworkInformation.UnicastIPAddressInformationCollection.InternalAdd(), System.Runtime.InteropServices.Marshal.PtrToStructure(), and System.IntPtr.Zero.

Referenced by System.Net.NetworkInformation.SystemIPInterfaceProperties.SystemIPInterfaceProperties().