1 instantiation of MarshalString
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
55var m = new MarshalString();
107 references to MarshalString
PresentationFramework (107)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (33)
337MarshalString __language = default; 341__language = MarshalString.CreateMarshaler(language); 342global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr, MarshalString.GetAbi(__language), out __retval)); 347MarshalString.DisposeMarshaler(__language); 480value = MarshalString.FromManaged(__value); 551return MarshalString.FromAbi(__retval); 555MarshalString.DisposeAbi(__retval); 1202value = MarshalString.FromManaged(__value); 1262return MarshalString.FromAbi(__retval); 1266MarshalString.DisposeAbi(__retval); 1315__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokenAt(MarshalString.FromAbi(text), startIndex); 1334__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokens(MarshalString.FromAbi(text)); 1351global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).Tokenize(MarshalString.FromAbi(text), startIndex, global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.WordSegmentsTokenizingHandler.FromAbi(handler)); 1370value = MarshalString.FromManaged(__value); 1397MarshalString __text = default; 1401__text = MarshalString.CreateMarshaler(text); 1402global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokenAt_1(ThisPtr, MarshalString.GetAbi(__text), startIndex, out __retval)); 1407MarshalString.DisposeMarshaler(__text); 1414MarshalString __text = default; 1418__text = MarshalString.CreateMarshaler(text); 1419global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetTokens_2(ThisPtr, MarshalString.GetAbi(__text), out __retval)); 1424MarshalString.DisposeMarshaler(__text); 1431MarshalString __text = default; 1435__text = MarshalString.CreateMarshaler(text); 1437global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.Tokenize_3(ThisPtr, MarshalString.GetAbi(__text), startIndex, WordSegmentsTokenizingHandler.GetAbi(__handler))); 1441MarshalString.DisposeMarshaler(__text); 1454return MarshalString.FromAbi(__retval); 1458MarshalString.DisposeAbi(__retval); 1503__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenterFactory>(thisPtr).CreateWithLanguage(MarshalString.FromAbi(language)); 1531MarshalString __language = default; 1535__language = MarshalString.CreateMarshaler(language); 1536global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateWithLanguage_0(ThisPtr, MarshalString.GetAbi(__language), out __retval)); 1541MarshalString.DisposeMarshaler(__language);
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (39)
89MarshalString __languageTag = default; 93__languageTag = MarshalString.CreateMarshaler(languageTag); 94global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 99MarshalString.DisposeMarshaler(__languageTag); 255value = MarshalString.FromManaged(__value); 274value = MarshalString.FromManaged(__value); 293value = MarshalString.FromManaged(__value); 312value = MarshalString.FromManaged(__value); 345return MarshalString.FromAbi(__retval); 349MarshalString.DisposeAbi(__retval); 362return MarshalString.FromAbi(__retval); 366MarshalString.DisposeAbi(__retval); 379return MarshalString.FromAbi(__retval); 383MarshalString.DisposeAbi(__retval); 396return MarshalString.FromAbi(__retval); 400MarshalString.DisposeAbi(__retval); 512__value = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageExtensionSubtags>(thisPtr).GetExtensionSubtags(MarshalString.FromAbi(singleton)); 540MarshalString __singleton = default; 544__singleton = MarshalString.CreateMarshaler(singleton); 545global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.GetExtensionSubtags_0(ThisPtr, MarshalString.GetAbi(__singleton), out __retval)); 550MarshalString.DisposeMarshaler(__singleton); 593__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageFactory>(thisPtr).CreateLanguage(MarshalString.FromAbi(languageTag)); 621MarshalString __languageTag = default; 625__languageTag = MarshalString.CreateMarshaler(languageTag); 626global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.CreateLanguage_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 631MarshalString.DisposeMarshaler(__languageTag); 676__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics>(thisPtr).IsWellFormed(MarshalString.FromAbi(languageTag)); 696value = MarshalString.FromManaged(__value); 723MarshalString __languageTag = default; 727__languageTag = MarshalString.CreateMarshaler(languageTag); 728global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.IsWellFormed_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 733MarshalString.DisposeMarshaler(__languageTag); 745return MarshalString.FromAbi(__retval); 749MarshalString.DisposeAbi(__retval); 792__result = global::WinRT.ComWrappersSupport.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics2>(thisPtr).TrySetInputMethodLanguageTag(MarshalString.FromAbi(languageTag)); 820MarshalString __languageTag = default; 824__languageTag = MarshalString.CreateMarshaler(languageTag); 825global::WinRT.ExceptionHelpers.ThrowExceptionForHR(_obj.Vftbl.TrySetInputMethodLanguageTag_0(ThisPtr, MarshalString.GetAbi(__languageTag), out __retval)); 830MarshalString.DisposeMarshaler(__languageTag);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (6)
167var hstrRuntimeClassId = MarshalString.CreateMarshaler(runtimeClassId); 168int hr = _GetActivationFactory(MarshalString.GetAbi(hstrRuntimeClassId), out instancePtr); 225var hstrRuntimeClassId = MarshalString.CreateMarshaler(runtimeClassId); 226int hr = Platform.RoGetActivationFactory(MarshalString.GetAbi(hstrRuntimeClassId), ref iid, &instancePtr);
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (1)
74className = MarshalString.FromManaged(runtimeClassName);
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (28)
51public static unsafe MarshalString CreateMarshaler(string value) 55var m = new MarshalString(); 74public static IntPtr GetAbi(MarshalString m) => m is null ? IntPtr.Zero : m._handle; 76public static IntPtr GetAbi(object box) => box is null ? IntPtr.Zero : ((MarshalString)box)._handle; 78public static void DisposeMarshaler(MarshalString m) => m?.Dispose(); 83DisposeMarshaler(((MarshalString)box)); 125foreach (var marshaler in _marshalers) 137public MarshalString[] _marshalers; 152m._marshalers = new MarshalString[length]; 156m._marshalers[i] = MarshalString.CreateMarshaler(array[i]); 157elements[i] = MarshalString.GetAbi(m._marshalers[i]); 185array[i] = MarshalString.FromAbi(data[i]); 196array[i] = MarshalString.FromAbi(data[i]); 222elements[i] = MarshalString.FromManaged(array[i]); 248elements[i] = MarshalString.FromManaged(array[i]); 1003CreateMarshaler = (T value) => MarshalString.CreateMarshaler((string)(object)value); 1004GetAbi = (object box) => MarshalString.GetAbi(box); 1005FromAbi = (object value) => (T)(object)MarshalString.FromAbi((IntPtr)value); 1006FromManaged = (T value) => MarshalString.FromManaged((string)(object)value); 1007DisposeMarshaler = (object box) => MarshalString.DisposeMarshaler(box); 1008DisposeAbi = (object box) => MarshalString.DisposeAbi(box); 1009CreateMarshalerArray = (T[] array) => MarshalString.CreateMarshalerArray((string[])(object)array); 1010GetAbiArray = (object box) => MarshalString.GetAbiArray(box); 1011FromAbiArray = (object box) => (T[])(object)MarshalString.FromAbiArray(box); 1012FromManagedArray = (T[] array) => MarshalString.FromManagedArray((string[])(object)array); 1013CopyManagedArray = (T[] array, IntPtr data) => MarshalString.CopyManagedArray((string[])(object)array, data); 1014DisposeMarshalerArray = (object box) => MarshalString.DisposeMarshalerArray(box); 1015DisposeAbiArray = (object box) => MarshalString.DisposeAbiArray(box);