8 references to EscapeIdentifier
Microsoft.Extensions.Options.SourceGeneration (8)
Emitter.cs (8)
661sb.AppendLine($"{padding} result = Equals(value, (({type})validationContext.ObjectInstance).{EscapeIdentifier(property)});");
1052OutLn($"if (!await global::System.ComponentModel.DataAnnotations.Validator.TryValidateValueAsync(options.{EscapeIdentifier(vm.Name)}{_TryGetValueNullableAnnotation}, {contextVar}, {resultsVar}, {attributesVar}, cancellationToken).ConfigureAwait(false))");
1056OutLn($"if (!global::System.ComponentModel.DataAnnotations.Validator.TryValidateValue(options.{EscapeIdentifier(vm.Name)}{_TryGetValueNullableAnnotation}, {contextVar}, {resultsVar}, {attributesVar}))");
1081var memberAccess = $"options.{EscapeIdentifier(vm.Name)}";
1123var memberAccess = $"options.{EscapeIdentifier(vm.Name)}";
1216OutLn($"if (!global::System.ComponentModel.DataAnnotations.Validator.TryValidateValue(options.{EscapeIdentifier(vm.Name)}{_TryGetValueNullableAnnotation}, context, validationResults, validationAttributes))");
1299var memberAccess = $"options.{EscapeIdentifier(vm.Name)}";
1330var memberAccess = $"options.{EscapeIdentifier(vm.Name)}";