39 references to SR
Microsoft.Interop.SourceGeneration (39)
BoundGenerators.cs (1)
217NotSupportedDetails = SR.MarshallerInNativeReturnPositionMustMatchNativeReturnType
CustomMarshallingInfoHelper.cs (6)
32diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerTypeMustBeStaticClassOrStruct), entryPointType.ToDisplayString(), type.ToDisplayString()); 50diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()); 64(type, entryPointType) => diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()), 74diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()); 96(type, entryPointType) => diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()), 148diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.MarshallerTypeMustBeStaticClassOrStruct), entryPointType.ToDisplayString(), type.ToDisplayString());
ISymbolExtensions.cs (2)
20details = string.Format(SR.TypeAccessibilityDetails, symbol.ToDisplayString(), symbol.DeclaredAccessibility.ToString().ToLowerInvariant()); 28details = string.Format(SR.ContainingTypeAccessibilityDetails, current.ToDisplayString(), current.DeclaredAccessibility.ToString().ToLowerInvariant());
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (10)
76NotSupportedDetails = SR.ArraySizeMustBeSpecified 98NotSupportedDetails = SR.CollectionSizeParamTypeMustBeIntegral 107NotSupportedDetails = SR.CollectionSizeParamTypeMustBeIntegral 156NotSupportedDetails = SR.RuntimeMarshallingMustBeDisabled, 426NotSupportedDetails = SR.Format(SR.UnmanagedToManagedMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName) 436NotSupportedDetails = SR.Format(SR.BidirectionalMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName) 446NotSupportedDetails = SR.Format(SR.ManagedToUnmanagedMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName)
Marshalling\BlittableMarshallerResolver.cs (1)
36NotSupportedDetails = SR.RuntimeMarshallingMustBeDisabled,
Marshalling\BreakingChangeDetector.cs (1)
34Details = SR.InVariantShouldBeRef
Marshalling\ByValueMarshalKindSupportDescriptor.cs (6)
27UnnecessaryDataName = SR.InOutAttributes, 55InSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InAttributeNotSupportedOnByValueParameters), 56OutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.OutAttributeNotSupportedOnByValueParameters), 57InOutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InOutAttributeNotSupportedOnByValueParameters)); 63DefaultSupport: new(ByValueMarshalKindSupport.NotRecommended, SR.PreferExplicitInOutAttributesOnArrays), 80NotSupportedDetails = SR.InOutAttributeByRefNotSupported
Marshalling\CharMarshallingGeneratorResolver.cs (4)
42NotSupportedDetails = string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, _stringMarshallingAttribute) 65NotSupportedDetails = SR.Format(SR.MarshallingCharAsSpecifiedStringMarshallingNotSupported, nameof(CharEncoding.Utf8)) 70NotSupportedDetails = SR.MarshallingCharAsStringMarshallingCustomNotSupported
Marshalling\MarshallerHelpers.cs (1)
192throw new InvalidOperationException(SR.GraphHasCycles);
Marshalling\NoMarshallingInfoErrorResolver.cs (2)
43{ SpecialTypeInfo.String, string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, stringMarshallingAttribute) }, 44{ SpecialTypeInfo.Boolean, SR.MarshallingBoolAsUndefinedNotSupported },
MarshallingInfoParser.cs (2)
314_diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.CyclicalCountInfo), elementName); 343_diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(SR.CyclicalCountInfo), paramName);
MarshalUsingAttributeParser.cs (1)
95_diagnostics.ReportInvalidMarshallingAttributeInfo(attributeData, nameof(SR.ConstantAndElementCountInfoDisallowed));
UseSiteAttributeProvider.cs (2)
46diagnostics.ReportInvalidMarshallingAttributeInfo(attribute, nameof(SR.DuplicateMarshallingInfo), indirectionDepth.ToString()); 95nameof(SR.ExtraneousMarshallingInfo),