7 overrides of CanRead
PresentationFramework (1)
MS\Internal\Data\IndexerPropertyInfo.cs (1)
34public override bool CanRead
System.Private.CoreLib (2)
src\System\Reflection\Emit\RuntimePropertyBuilder.cs (1)
165public override bool CanRead
src\System\Reflection\RuntimePropertyInfo.cs (1)
318public override bool CanRead => m_getterMethod != null;
System.Reflection.Context (2)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
24public override bool CanRead
System\Reflection\Context\Virtual\VirtualPropertyBase.cs (1)
57public sealed override bool CanRead
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Properties\RoProperty.cs (1)
106public sealed override bool CanRead => GetMethod != null;
System.Xaml.Tests (1)
System\Xaml\XamlMemberTests.cs (1)
2377public override bool CanRead => DelegatingProperty.CanRead;
49 references to CanRead
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
232if (!propertyInfo.CanRead) return false;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1366if (!defaultProp.CanRead) continue;
Microsoft.AspNetCore.App.Analyzers.Test (1)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
165.Where(p => p.CanWrite && p.CanRead && p.PropertyType == typeof(StringValues) && p.GetIndexParameters().Length == 0)
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
367if (propertyHelper.Property.CanRead && propertyHelper.Property.GetMethod?.IsPublic == true)
Microsoft.CodeAnalysis.Test.Utilities (2)
Platform\Custom\MetadataSignatureHelper.cs (2)
543if (property.CanRead && property.CanWrite) 547else if (property.CanRead)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
282if (property is not null && property.CanRead)
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
Microsoft.Maui (1)
Converters\KeyboardTypeConverter.cs (1)
35 PropertyInfo? property = kbType.GetProperties()?.FirstOrDefault(pi => pi != null && pi.Name == keyboard && pi.CanRead && (pi.GetMethod?.IsStatic ?? false));
Microsoft.Maui.Controls (6)
BindingExpression.cs (4)
276 if (pi.CanRead && pi.GetMethod.GetParameters()[0].ParameterType == typeof(int)) 289 if (pi.CanRead && pi.GetMethod.GetParameters()[0].ParameterType == typeof(string)) 300 if (pi.CanRead && pi.GetMethod.GetParameters()[0].ParameterType == typeof(object)) 394 if (property is { CanRead: true, GetMethod: { IsPublic: true, IsStatic: false } propertyGetMethod })
LegacyLayouts\ConstraintExpression.cs (2)
43 minfo = typeof(View).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod; 52 minfo = typeof(View).GetProperties().First(pi => pi.Name == Property && pi.CanRead && pi.GetMethod.IsPublic).GetMethod;
Microsoft.Maui.Controls.Xaml (1)
ApplyPropertiesVisitor.cs (1)
709 if (propertyInfo == null || !propertyInfo.CanRead || (getter = propertyInfo.GetMethod) == null)
Microsoft.ML.Data (4)
Data\SchemaDefinition.cs (2)
166.Where(x => x.CanRead && x.CanWrite && x.GetGetMethod() != null && x.GetSetMethod() != null && x.GetIndexParameters().Length == 0) 341.Where(x => (((direction & Direction.Read) == Direction.Read && (x.CanRead && x.GetGetMethod() != null)) ||
DataLoadSave\Database\DatabaseLoader.cs (1)
111.Where(x => x.CanRead && x.GetGetMethod() != null && x.GetIndexParameters().Length == 0);
DataLoadSave\Text\TextLoader.cs (1)
1579.Where(x => x.CanRead && x.GetGetMethod() != null && x.GetIndexParameters().Length == 0);
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
195.Where(p => p.CanRead && p.CanWrite);
Microsoft.ML.Tests (1)
CollectionsDataViewTest.cs (1)
74if (!property.CanRead || !property.CanWrite || property.GetGetMethod() == null || property.GetSetMethod() == null)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Utils.vb (1)
353If ([property] IsNot Nothing AndAlso [property].CanRead) Then
ReachFramework (1)
Serialization\Manager\ReachSerializationCacheItems.cs (1)
208if (propertyInfo.CanRead &&
Shared (1)
Data.Validation\LengthAttribute.cs (1)
134if (property != null && property.CanRead && property.PropertyType == typeof(int))
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
128if (property != null && property.CanRead && property.PropertyType == typeof(int))
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
313if (propertyInfo.CanRead)
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (1)
77if (!pi.CanRead)
System.Composition.TypedParts (3)
System\Composition\TypedParts\ContractHelpers.cs (1)
73.Where(p => p.GetMethod.IsPublic && p.DeclaringType == attrType && p.CanRead))
System\Composition\TypedParts\Discovery\TypeInspector.cs (2)
79.Where(pi => pi.CanRead && pi.GetMethod.IsPublic && !pi.GetMethod.IsStatic)) 158.Where(p => p.DeclaringType == attrType && p.CanRead))
System.Linq.Expressions (5)
System\Dynamic\Utils\ExpressionUtils.cs (2)
200if (index.Indexer != null && !index.Indexer.CanRead) 209if (!prop.CanRead)
System\Linq\Expressions\MemberExpression.cs (1)
318if (pi.CanRead && CheckMethod(mi, pi.GetGetMethod(nonPublic: true)!))
System\Linq\Expressions\MemberMemberBinding.cs (1)
136if (!pi.CanRead)
System\Linq\Expressions\NewExpression.cs (1)
327if (!pi.CanRead)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TypeAnalysis.cs (1)
37if (!propertyInfo.CanRead ||
System.Private.Xml (2)
System\Xml\Serialization\Models.cs (1)
249if (!propertyInfo.CanRead) return false;
System\Xml\Serialization\Types.cs (1)
1356if (!defaultProp.CanRead) continue;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingPropertyInfo.cs (1)
26get { return UnderlyingProperty.CanRead; }
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
2605if (propInfo is not null && !propInfo.CanRead)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\InheritanceService.cs (1)
130if (!fieldProp.CanRead)
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
324FDEX_PROP_FLAGS flags = IDispatch.GetPropertyFlags(info.CanRead, info.CanWrite);
System.Xaml.Tests (1)
System\Xaml\XamlMemberTests.cs (1)
2377public override bool CanRead => DelegatingProperty.CanRead;
xunit.assert (1)
Sdk\AssertHelper.cs (1)
152 p.CanRead