Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ComActivationContext.cs
Go to the documentation of this file.
1using System;
4
6
8{
9 public Guid ClassId;
10
12
13 public string AssemblyPath;
14
15 public string AssemblyName;
16
17 public string TypeName;
18
19 [RequiresUnreferencedCode("Built-in COM support is not trim compatible", Url = "https://aka.ms/dotnet-illink/com")]
20 [CLSCompliant(false)]
22 {
24 {
26 }
28 result.ClassId = cxtInt.ClassId;
29 result.InterfaceId = cxtInt.InterfaceId;
30 result.AssemblyPath = Marshal.PtrToStringUni(new IntPtr(cxtInt.AssemblyPathBuffer));
31 result.AssemblyName = Marshal.PtrToStringUni(new IntPtr(cxtInt.AssemblyNameBuffer));
32 result.TypeName = Marshal.PtrToStringUni(new IntPtr(cxtInt.TypeNameBuffer));
33 return result;
34 }
35}
static unsafe? string PtrToStringUni(IntPtr ptr)
Definition Marshal.cs:652
static string NotSupported_COM
Definition SR.cs:2190
Definition SR.cs:7
static unsafe ComActivationContext Create(ref ComActivationContextInternal cxtInt)