141 references to GetResourceString
Microsoft.Interop.LibraryImportGenerator (141)
Analyzers\ConvertToLibraryImportAnalyzer.cs (3)
26
GetResourceString
(nameof(SR.ConvertToLibraryImportTitle)),
27
GetResourceString
(nameof(SR.ConvertToLibraryImportMessage)),
31
description:
GetResourceString
(nameof(SR.ConvertToLibraryImportDescription)));
Analyzers\CustomMarshallerAttributeAnalyzer.cs (129)
46
GetResourceString
(nameof(SR.InvalidCustomMarshallerAttributeUsageTitle)),
47
GetResourceString
(nameof(SR.MarshallerTypeMustSpecifyManagedTypeMessage)),
51
description:
GetResourceString
(nameof(SR.MarshallerTypeMustSpecifyManagedTypeDescription)));
57
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
58
GetResourceString
(nameof(SR.MarshallerTypeMustBeStaticClassOrStructMessage)),
62
description:
GetResourceString
(nameof(SR.MarshallerTypeMustBeStaticClassOrStructDescription)));
68
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
69
GetResourceString
(nameof(SR.ElementMarshallerCannotBeStatefulMessage)),
73
description:
GetResourceString
(nameof(SR.ElementMarshallerCannotBeStatefulDescription)));
79
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
80
GetResourceString
(nameof(SR.TypeMustBeUnmanagedMessage)),
84
description:
GetResourceString
(nameof(SR.TypeMustBeUnmanagedDescription)));
90
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
91
GetResourceString
(nameof(SR.GetPinnableReferenceReturnTypeBlittableMessage)),
95
description:
GetResourceString
(nameof(SR.GetPinnableReferenceReturnTypeBlittableDescription)));
101
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
102
GetResourceString
(nameof(SR.TypeMustHaveExplicitCastFromVoidPointerMessage)),
106
description:
GetResourceString
(nameof(SR.TypeMustHaveExplicitCastFromVoidPointerDescription)));
112
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
113
GetResourceString
(nameof(SR.StatelessValueInRequiresConvertToUnmanagedMessage)),
117
description:
GetResourceString
(nameof(SR.StatelessValueInRequiresConvertToUnmanagedDescription)));
123
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
124
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage)),
128
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsDescription)));
134
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
135
GetResourceString
(nameof(SR.OutRequiresToManagedMessage)),
139
description:
GetResourceString
(nameof(SR.OutRequiresToManagedDescription)));
145
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
146
GetResourceString
(nameof(SR.StatelessRequiresConvertToManagedMessage)),
150
description:
GetResourceString
(nameof(SR.StatelessRequiresConvertToManagedDescription)));
156
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
157
GetResourceString
(nameof(SR.LinearCollectionInRequiresCollectionMethodsMessage)),
161
description:
GetResourceString
(nameof(SR.LinearCollectionInRequiresCollectionMethodsDescription)));
167
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
168
GetResourceString
(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsMessage)),
172
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsDescription)));
178
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
179
GetResourceString
(nameof(SR.LinearCollectionOutRequiresCollectionMethodsMessage)),
183
description:
GetResourceString
(nameof(SR.LinearCollectionOutRequiresCollectionMethodsDescription)));
189
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
190
GetResourceString
(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsMessage)),
194
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsDescription)));
200
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
201
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage)),
205
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsDescription)));
211
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
212
GetResourceString
(nameof(SR.CallerAllocFromManagedMustHaveBufferSizeMessage)),
216
description:
GetResourceString
(nameof(SR.CallerAllocFromManagedMustHaveBufferSizeDescription)));
222
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
223
GetResourceString
(nameof(SR.StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeMessage)),
227
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionCallerAllocFromManagedMustHaveBufferSizeDescription)));
233
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
234
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromManagedMessage)),
238
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromManagedDescription)));
244
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
245
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToUnmanagedMessage)),
249
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToUnmanagedDescription)));
255
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
256
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToManagedMessage)),
260
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToManagedDescription)));
266
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
267
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromUnmanagedMessage)),
271
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromUnmanagedDescription)));
277
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
278
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFreeMessage)),
282
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFreeDescription)));
288
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
289
GetResourceString
(nameof(SR.FromUnmanagedOverloadsNotSupportedMessage)),
293
description:
GetResourceString
(nameof(SR.FromUnmanagedOverloadsNotSupportedDescription)));
299
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
300
GetResourceString
(nameof(SR.MarshallerTypeMustBeClosedOrMatchArityMessage)),
304
description:
GetResourceString
(nameof(SR.MarshallerTypeMustBeClosedOrMatchArityDescription)));
310
GetResourceString
(nameof(SR.InvalidMarshallerTypeTitle)),
311
GetResourceString
(nameof(SR.MarshallerTypeMustBeNonNullMessage)),
315
description:
GetResourceString
(nameof(SR.MarshallerTypeMustBeNonNullDescription)));
321
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
322
GetResourceString
(nameof(SR.FirstParameterMustMatchReturnTypeMessage)),
326
description:
GetResourceString
(nameof(SR.FirstParameterMustMatchReturnTypeDescription)));
332
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
333
GetResourceString
(nameof(SR.ReturnTypesMustMatchMessage)),
337
description:
GetResourceString
(nameof(SR.ReturnTypesMustMatchDescription)));
343
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
344
GetResourceString
(nameof(SR.FirstParametersMustMatchMessage)),
348
description:
GetResourceString
(nameof(SR.FirstParametersMustMatchDescription)));
354
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
355
GetResourceString
(nameof(SR.ElementTypesOfReturnTypesMustMatchMessage)),
359
description:
GetResourceString
(nameof(SR.ElementTypesOfReturnTypesMustMatchDescription)));
365
GetResourceString
(nameof(SR.InvalidSignaturesInMarshallerShapeTitle)),
366
GetResourceString
(nameof(SR.ReturnTypeMustBeExpectedTypeMessage)),
370
description:
GetResourceString
(nameof(SR.ReturnTypeMustBeExpectedTypeDescription)));
376
GetResourceString
(nameof(SR.InvalidManagedTypeTitle)),
377
GetResourceString
(nameof(SR.ManagedTypeMustBeClosedOrMatchArityMessage)),
381
description:
GetResourceString
(nameof(SR.ManagedTypeMustBeClosedOrMatchArityDescription)));
387
GetResourceString
(nameof(SR.InvalidManagedTypeTitle)),
388
GetResourceString
(nameof(SR.ManagedTypeMustBeNonNullMessage)),
392
description:
GetResourceString
(nameof(SR.ManagedTypeMustBeNonNullDescription)));
398
GetResourceString
(nameof(SR.InvalidMarshalModeTitle)),
399
GetResourceString
(nameof(SR.MarshalModeMustBeValidEnumValue)),
403
description:
GetResourceString
(nameof(SR.MarshalModeMustBeValidEnumValue)));
416
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
417
GetResourceString
(nameof(SR.StatelessValueInRequiresConvertToUnmanagedMessage)),
421
description:
GetResourceString
(nameof(SR.StatelessValueInRequiresConvertToUnmanagedDescription)));
427
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
428
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsMessage)),
432
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForUnmanagedElementsDescription)));
438
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
439
GetResourceString
(nameof(SR.StatelessRequiresConvertToManagedMessage)),
443
description:
GetResourceString
(nameof(SR.StatelessRequiresConvertToManagedDescription)));
449
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
450
GetResourceString
(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsMessage)),
454
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionInRequiresCollectionMethodsDescription)));
460
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
461
GetResourceString
(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsMessage)),
465
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionOutRequiresCollectionMethodsDescription)));
471
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
472
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsMessage)),
476
description:
GetResourceString
(nameof(SR.StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsDescription)));
482
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
483
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromManagedMessage)),
487
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromManagedDescription)));
493
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
494
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToUnmanagedMessage)),
498
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToUnmanagedDescription)));
504
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
505
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToManagedMessage)),
509
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresToManagedDescription)));
515
GetResourceString
(nameof(SR.CustomMarshallerTypeMustHaveRequiredShapeTitle)),
516
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromUnmanagedMessage)),
520
description:
GetResourceString
(nameof(SR.StatefulMarshallerRequiresFromUnmanagedDescription)));
Analyzers\NativeMarshallingAttributeAnalyzer.cs (9)
27
GetResourceString
(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)),
28
GetResourceString
(nameof(SR.EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeMessage)),
32
description:
GetResourceString
(nameof(SR.EntryPointTypeMustHaveCustomMarshallerAttributeWithMatchingManagedTypeDescription)));
37
GetResourceString
(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)),
38
GetResourceString
(nameof(SR.EntryPointTypeMustBeNonNullMessage)),
42
description:
GetResourceString
(nameof(SR.EntryPointTypeMustBeNonNullDescription)));
47
GetResourceString
(nameof(SR.InvalidNativeMarshallingAttributeUsageTitle)),
48
GetResourceString
(nameof(SR.GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityMessage)),
52
description:
GetResourceString
(nameof(SR.GenericEntryPointMarshallerTypeMustBeClosedOrMatchArityDescription)));