563 types derived from Attribute
mscorlib (179)
system\appdomainattributes.cs (1)
39public sealed class LoaderOptimizationAttribute : Attribute
system\attributeusageattribute.cs (1)
22public sealed class AttributeUsageAttribute : Attribute
system\clscompliantattribute.cs (1)
20public sealed class CLSCompliantAttribute : Attribute
system\contextstaticattribute.cs (1)
28public class ContextStaticAttribute : Attribute
system\diagnostics\codeanalysis\suppressmessageattribute.cs (1)
29public sealed class SuppressMessageAttribute : Attribute
system\diagnostics\conditionalattribute.cs (1)
12public sealed class ConditionalAttribute : Attribute
system\diagnostics\contracts\contracts.cs (11)
58public sealed class PureAttribute : Attribute 68public sealed class ContractClassAttribute : Attribute 87public sealed class ContractClassForAttribute : Attribute 111public sealed class ContractInvariantMethodAttribute : Attribute 119public sealed class ContractReferenceAssemblyAttribute : Attribute 128public sealed class ContractRuntimeIgnoredAttribute : Attribute 178public sealed class ContractVerificationAttribute : Attribute 196public sealed class ContractPublicPropertyNameAttribute : Attribute 216public sealed class ContractArgumentValidatorAttribute : Attribute 225public sealed class ContractAbbreviatorAttribute : Attribute 234public sealed class ContractOptionAttribute : Attribute
system\diagnostics\debuggerattributes.cs (9)
25public sealed class DebuggerStepThroughAttribute : Attribute 33public sealed class DebuggerStepperBoundaryAttribute : Attribute 41public sealed class DebuggerHiddenAttribute : Attribute 49public sealed class DebuggerNonUserCodeAttribute : Attribute 64public sealed class DebuggableAttribute : Attribute 141public sealed class DebuggerBrowsableAttribute: Attribute 162public sealed class DebuggerTypeProxyAttribute: Attribute 221public sealed class DebuggerDisplayAttribute : Attribute 287public sealed class DebuggerVisualizerAttribute: Attribute
system\diagnostics\eventing\eventsource.cs (4)
4990public sealed class EventSourceAttribute : Attribute 5035public sealed class EventAttribute : Attribute 5107public sealed class NonEventAttribute : Attribute 5135class EventChannelAttribute : Attribute
System\Diagnostics\Eventing\TraceLogging\EventDataAttribute.cs (1)
21: Attribute
System\Diagnostics\Eventing\TraceLogging\EventFieldAttribute.cs (1)
39: Attribute
System\Diagnostics\Eventing\TraceLogging\EventIgnoreAttribute.cs (1)
18: Attribute
system\flagsattribute.cs (1)
18public class FlagsAttribute : Attribute
system\nonserializedattribute.cs (1)
21public sealed class NonSerializedAttribute : Attribute
system\obsoleteattribute.cs (1)
30public sealed class ObsoleteAttribute : Attribute
system\paramarrayattribute.cs (1)
20public sealed class ParamArrayAttribute : Attribute
system\reflection\assemblyattributes.cs (19)
26public sealed class AssemblyCopyrightAttribute : Attribute 44public sealed class AssemblyTrademarkAttribute : Attribute 62public sealed class AssemblyProductAttribute : Attribute 80public sealed class AssemblyCompanyAttribute : Attribute 98public sealed class AssemblyDescriptionAttribute : Attribute 116public sealed class AssemblyTitleAttribute : Attribute 134public sealed class AssemblyConfigurationAttribute : Attribute 152public sealed class AssemblyDefaultAliasAttribute : Attribute 170public sealed class AssemblyInformationalVersionAttribute : Attribute 188public sealed class AssemblyFileVersionAttribute : Attribute 208public unsafe sealed class AssemblyCultureAttribute : Attribute 226public unsafe sealed class AssemblyVersionAttribute : Attribute 244public sealed class AssemblyKeyFileAttribute : Attribute 262public sealed class AssemblyDelaySignAttribute : Attribute 280public unsafe sealed class AssemblyAlgorithmIdAttribute : Attribute 305public unsafe sealed class AssemblyFlagsAttribute : Attribute 343public sealed class AssemblyMetadataAttribute : Attribute 367public sealed class AssemblySignatureKeyAttribute : Attribute 392public sealed class AssemblyKeyNameAttribute : Attribute
system\reflection\defaultmemberattribute.cs (1)
25public sealed class DefaultMemberAttribute : Attribute
system\reflection\obfuscateassemblyattribute.cs (1)
17public sealed class ObfuscateAssemblyAttribute : Attribute
system\reflection\obfuscationattribute.cs (1)
17public sealed class ObfuscationAttribute: Attribute
system\resources\neutralresourceslanguageattribute.cs (1)
32public sealed class NeutralResourcesLanguageAttribute : Attribute
system\resources\satellitecontractversionattribute.cs (1)
25public sealed class SatelliteContractVersionAttribute : Attribute
system\runtime\compilerservices\accessedthroughpropertyattribute.cs (1)
14public sealed class AccessedThroughPropertyAttribute : Attribute
system\runtime\compilerservices\assemblysettingattributes.cs (2)
41public sealed class DefaultDependencyAttribute : Attribute 64public sealed class DependencyAttribute : Attribute
system\runtime\compilerservices\CallerFilePathAttribute.cs (1)
12public sealed class CallerFilePathAttribute : Attribute
system\runtime\compilerservices\CallerLineNumberAttribute.cs (1)
12public sealed class CallerLineNumberAttribute : Attribute
system\runtime\compilerservices\CallerMemberNameAttribute.cs (1)
12public sealed class CallerMemberNameAttribute : Attribute
system\runtime\compilerservices\compilationrelaxations.cs (1)
28public class CompilationRelaxationsAttribute : Attribute
system\runtime\compilerservices\compilergeneratedattribute.cs (1)
12public sealed class CompilerGeneratedAttribute : Attribute
system\runtime\compilerservices\compilerglobalscopeattribute.cs (1)
24public class CompilerGlobalScopeAttribute : Attribute
system\runtime\compilerservices\customconstantattribute.cs (1)
14public abstract class CustomConstantAttribute : Attribute
system\runtime\compilerservices\decimalconstantattribute.cs (1)
18public sealed class DecimalConstantAttribute : Attribute
system\runtime\compilerservices\decoratednameattribute.cs (1)
13internal sealed class DecoratedNameAttribute : Attribute
system\runtime\compilerservices\disableprivatereflectionattribute.cs (1)
14public sealed class DisablePrivateReflectionAttribute : Attribute
system\runtime\compilerservices\discardableattribute.cs (1)
14public class DiscardableAttribute : Attribute
system\runtime\compilerservices\extensionattribute.cs (1)
9public sealed class ExtensionAttribute : Attribute { }
system\runtime\compilerservices\fixedaddressvaluetypeattribute.cs (1)
12sealed public class FixedAddressValueTypeAttribute : Attribute
system\runtime\compilerservices\fixedbufferattribute.cs (1)
22public sealed class FixedBufferAttribute : Attribute
system\runtime\compilerservices\hascopysemanticsattribute.cs (1)
10public sealed class HasCopySemanticsAttribute : Attribute
system\runtime\compilerservices\indexernameattribute.cs (1)
13public sealed class IndexerNameAttribute: Attribute
system\runtime\compilerservices\internalsvisibletoattribute.cs (2)
15public sealed class InternalsVisibleToAttribute : Attribute 56internal sealed class FriendAccessAllowedAttribute : Attribute {
system\runtime\compilerservices\methodimplattribute.cs (1)
47sealed public class MethodImplAttribute : Attribute
system\runtime\compilerservices\nativecppclassattribute.cs (1)
13public sealed class NativeCppClassAttribute : Attribute
system\runtime\compilerservices\ReferenceAssemblyAttribute.cs (1)
22public sealed class ReferenceAssemblyAttribute : Attribute
system\runtime\compilerservices\requiredattributeattribute.cs (1)
14public sealed class RequiredAttributeAttribute : Attribute
system\runtime\compilerservices\RuntimeCompatibilityAttribute.cs (1)
25public sealed class RuntimeCompatibilityAttribute : Attribute
system\runtime\compilerservices\scopelessenumattribute.cs (1)
10public sealed class ScopelessEnumAttribute : Attribute
system\runtime\compilerservices\specialnameattribute.cs (1)
21public sealed class SpecialNameAttribute : Attribute
system\runtime\compilerservices\StateMachineAttribute.cs (1)
12public class StateMachineAttribute : Attribute
system\runtime\compilerservices\suppressildasmattribute.cs (1)
13public sealed class SuppressIldasmAttribute : Attribute
system\runtime\compilerservices\suppressmergecheckattribute.cs (1)
18internal sealed class SuppressMergeCheckAttribute : Attribute
system\runtime\compilerservices\typedependencyattribute.cs (1)
14internal sealed class TypeDependencyAttribute: Attribute
system\runtime\compilerservices\TypeForwardedFromAttribute.cs (1)
10public sealed class TypeForwardedFromAttribute : Attribute
system\runtime\compilerservices\TypeForwardedToAttribute.cs (1)
14public sealed class TypeForwardedToAttribute : Attribute
system\runtime\compilerservices\unsafevaluetypeattribute.cs (1)
12sealed public class UnsafeValueTypeAttribute : Attribute
system\runtime\exceptionservices\corruptingexceptioncommon.cs (1)
26public sealed class HandleProcessCorruptedStateExceptionsAttribute : Attribute
system\runtime\interopservices\attributes.cs (42)
16public sealed class UnmanagedFunctionPointerAttribute : Attribute 37public sealed class TypeIdentifierAttribute : Attribute 52public sealed class AllowReversePInvokeCallsAttribute : Attribute 61public sealed class DispIdAttribute : Attribute 85public sealed class InterfaceTypeAttribute : Attribute 101public sealed class ComDefaultInterfaceAttribute : Attribute 124public sealed class ClassInterfaceAttribute : Attribute 141public sealed class ComVisibleAttribute : Attribute 153public sealed class TypeLibImportClassAttribute : Attribute 165public sealed class LCIDConversionAttribute : Attribute 177public sealed class ComRegisterFunctionAttribute : Attribute 186public sealed class ComUnregisterFunctionAttribute : Attribute 195public sealed class ProgIdAttribute : Attribute 207public sealed class ImportedFromTypeLibAttribute : Attribute 230public sealed class IDispatchImplAttribute : Attribute 246public sealed class ComSourceInterfacesAttribute : Attribute 274public sealed class ComConversionLossAttribute : Attribute 344public sealed class TypeLibTypeAttribute : Attribute 360public sealed class TypeLibFuncAttribute : Attribute 376public sealed class TypeLibVarAttribute : Attribute 527public unsafe sealed class MarshalAsAttribute : Attribute 639public sealed class ComImportAttribute : Attribute 661public sealed class GuidAttribute : Attribute 673public sealed class PreserveSigAttribute : Attribute 695public sealed class InAttribute : Attribute 713public sealed class OutAttribute : Attribute 731public sealed class OptionalAttribute : Attribute 761public sealed class DefaultDllImportSearchPathsAttribute : Attribute 774public unsafe sealed class DllImportAttribute : Attribute 869public unsafe sealed class StructLayoutAttribute : Attribute 942public unsafe sealed class FieldOffsetAttribute : Attribute 972public sealed class ComAliasNameAttribute : Attribute 984public sealed class AutomationProxyAttribute : Attribute 996public sealed class PrimaryInteropAssemblyAttribute : Attribute 1013public sealed class CoClassAttribute : Attribute 1027public sealed class ComEventInterfaceAttribute : Attribute 1044public sealed class TypeLibVersionAttribute : Attribute 1061public sealed class ComCompatibleVersionAttribute : Attribute 1084public sealed class BestFitMappingAttribute : Attribute 1099public sealed class DefaultCharSetAttribute : Attribute 1114public sealed class SetWin32ContextInIDispatchAttribute : Attribute 1123public sealed class ManagedToNativeComInteropStubAttribute : Attribute
system\runtime\interopservices\windowsruntime\attributes.cs (6)
17public sealed class DefaultInterfaceAttribute : Attribute 40internal sealed class WindowsRuntimeImportAttribute : Attribute 50public sealed class InterfaceImplementedInVersionAttribute : Attribute 95public sealed class ReadOnlyArrayAttribute : Attribute 102public sealed class WriteOnlyArrayAttribute : Attribute 113public sealed class ReturnValueNameAttribute : Attribute
system\runtime\NgenServicingAttributes.cs (2)
6public sealed class AssemblyTargetedPatchBandAttribute : Attribute 28public sealed class TargetedPatchingOptOutAttribute : Attribute
system\runtime\reliability\prepreparemethodattribute.cs (1)
30public sealed class PrePrepareMethodAttribute : Attribute
system\runtime\reliability\reliabilitycontractattribute.cs (1)
51public sealed class ReliabilityContractAttribute : Attribute
system\runtime\remoting\contextproperty.cs (1)
138: Attribute, IContextAttribute, IContextProperty
system\runtime\remoting\onewayattribute.cs (1)
22public class OneWayAttribute : Attribute
system\runtime\remoting\proxyattribute.cs (1)
28public class ProxyAttribute : Attribute , IContextAttribute
system\runtime\remoting\remotingattributes.cs (1)
879public class SoapAttribute : Attribute
system\runtime\serialization\serializationattributes.cs (5)
23public sealed class OptionalFieldAttribute : Attribute 44public sealed class OnSerializingAttribute : Attribute 50public sealed class OnSerializedAttribute : Attribute 56public sealed class OnDeserializingAttribute : Attribute 62public sealed class OnDeserializedAttribute : Attribute
system\runtime\versioning\componentguaranteesattribute.cs (1)
34public sealed class ComponentGuaranteesAttribute : Attribute {
system\runtime\versioning\NonVersionableAttribute.cs (1)
28sealed class NonVersionableAttribute : Attribute {
system\runtime\versioning\resourceattributes.cs (2)
23public sealed class ResourceConsumptionAttribute : Attribute 51public sealed class ResourceExposureAttribute : Attribute
system\runtime\versioning\targetframeworkattribute.cs (1)
23public sealed class TargetFrameworkAttribute : Attribute {
system\security\attributes.cs (9)
16sealed internal class DynamicSecurityMethodAttribute : System.Attribute 25sealed public class SuppressUnmanagedCodeSecurityAttribute : System.Attribute 33sealed public class UnverifiableCodeAttribute : System.Attribute 44sealed public class AllowPartiallyTrustedCallersAttribute : System.Attribute 85sealed public class SecurityCriticalAttribute : System.Attribute 131sealed public class SecurityTreatAsSafeAttribute : System.Attribute 155sealed public class SecuritySafeCriticalAttribute : System.Attribute 167sealed public class SecurityTransparentAttribute : System.Attribute 188public sealed class SecurityRulesAttribute : Attribute
system\security\permissions\permissionattributes.cs (1)
76public abstract class SecurityAttribute : System.Attribute
system\serializableattribute.cs (1)
22public sealed class SerializableAttribute : Attribute
system\stringfreezingattribute.cs (1)
21public sealed class StringFreezingAttribute : Attribute
system\threadattributes.cs (2)
22public sealed class STAThreadAttribute : Attribute 31public sealed class MTAThreadAttribute : Attribute
system\threadstaticattribute.cs (1)
24public class ThreadStaticAttribute : Attribute
system\xmlignorememberattribute.cs (1)
20internal sealed class XmlIgnoreMemberAttribute : Attribute
PresentationCore (4)
Core\CSharp\System\Windows\LocalizabilityAttribute.cs (1)
34public sealed class LocalizabilityAttribute : Attribute
Core\CSharp\System\Windows\Resources\AssemblyAssociatedContentFileAttribute.cs (1)
25public sealed class AssemblyAssociatedContentFileAttribute : Attribute
Shared\MS\Internal\CommonDependencyPropertyAttribute.cs (1)
25internal sealed class CommonDependencyPropertyAttribute : Attribute
Shared\MS\Internal\FriendAccessAllowedAttribute.cs (1)
50internal sealed class FriendAccessAllowedAttribute : Attribute
PresentationFramework (6)
src\Framework\System\Windows\Data\ValueConversionAttribute.cs (1)
42public sealed class ValueConversionAttribute : Attribute
src\Framework\System\Windows\Documents\TextElementEditingBehaviorAttribute.cs (1)
9public sealed class TextElementEditingBehaviorAttribute : System.Attribute
src\Framework\System\Windows\StyleTypedPropertyAttribute.cs (1)
16public sealed class StyleTypedPropertyAttribute : Attribute
src\Framework\System\Windows\TemplatePartAttribute.cs (1)
16public sealed class TemplatePartAttribute : Attribute
src\Framework\System\Windows\TemplateVisualStateAttribute.cs (1)
14public sealed class TemplateVisualStateAttribute : Attribute
src\Framework\System\Windows\ThemeInfoAttribute.cs (1)
17public sealed class ThemeInfoAttribute : Attribute
System (67)
compmod\system\codedom\compiler\GeneratedCodeAttribute.cs (1)
11public sealed class GeneratedCodeAttribute : Attribute {
compmod\system\componentmodel\AmbientValueAttribute.cs (1)
25public sealed class AmbientValueAttribute : Attribute {
compmod\system\componentmodel\AttributeProviderAttribute.cs (1)
18public class AttributeProviderAttribute : Attribute
compmod\system\componentmodel\BindableAttribute.cs (1)
20public sealed class BindableAttribute : Attribute {
compmod\system\componentmodel\BrowsableAttribute.cs (1)
20public sealed class BrowsableAttribute : Attribute {
compmod\system\componentmodel\CategoryAttribute.cs (1)
20public class CategoryAttribute : Attribute {
compmod\system\componentmodel\ComplexBindingPropertiesAttribute.cs (1)
19public sealed class ComplexBindingPropertiesAttribute : Attribute {
compmod\system\componentmodel\DataObjectAttribute.cs (1)
15public sealed class DataObjectAttribute : Attribute {
compmod\system\componentmodel\DataObjectFieldAttribute.cs (1)
17public sealed class DataObjectFieldAttribute : Attribute {
compmod\system\componentmodel\DataObjectMethodAttribute.cs (1)
15public sealed class DataObjectMethodAttribute : Attribute {
compmod\system\componentmodel\DefaultBindingPropertyAttribute.cs (1)
18public sealed class DefaultBindingPropertyAttribute : Attribute {
compmod\system\componentmodel\DefaultEventAttribute.cs (1)
19public sealed class DefaultEventAttribute : Attribute {
compmod\system\componentmodel\DefaultPropertyAttribute.cs (1)
18public sealed class DefaultPropertyAttribute : Attribute {
compmod\system\componentmodel\DefaultValueAttribute.cs (1)
27public class DefaultValueAttribute : Attribute {
compmod\system\componentmodel\DescriptionAttribute.cs (1)
19public class DescriptionAttribute : Attribute {
compmod\system\componentmodel\design\HelpKeywordAttribute.cs (1)
52public sealed class HelpKeywordAttribute : Attribute {
compmod\system\componentmodel\design\InheritanceAttribute.cs (1)
18public sealed class InheritanceAttribute : Attribute {
compmod\system\componentmodel\design\NotifyParentPropertyAttribute.cs (1)
22public sealed class NotifyParentPropertyAttribute : Attribute {
compmod\system\componentmodel\design\ParenthesizePropertyNameAttribute.cs (1)
17public sealed class ParenthesizePropertyNameAttribute : Attribute {
compmod\system\componentmodel\design\PropertyTabAttribute.cs (1)
22public class PropertyTabAttribute : Attribute {
compmod\system\componentmodel\design\RefreshPropertiesAttribute.cs (1)
16public sealed class RefreshPropertiesAttribute : Attribute {
compmod\system\componentmodel\design\serialization\DefaultSerializationProviderAttribute.cs (1)
18public sealed class DefaultSerializationProviderAttribute : Attribute {
compmod\system\componentmodel\design\serialization\DesignerSerializerAttribute.cs (1)
15public sealed class DesignerSerializerAttribute : Attribute {
compmod\system\componentmodel\design\serialization\RootDesignerSerializerAttribute.cs (1)
16public sealed class RootDesignerSerializerAttribute : Attribute {
compmod\system\componentmodel\design\ToolboxItemAttribute.cs (1)
23public class ToolboxItemAttribute : Attribute {
compmod\system\componentmodel\DesignerAttribute.cs (1)
21public sealed class DesignerAttribute : Attribute {
compmod\system\componentmodel\DesignerCategoryAttribute.cs (1)
20public sealed class DesignerCategoryAttribute : Attribute {
compmod\system\componentmodel\DesignerSerializationVisibilityAttribute.cs (1)
20public sealed class DesignerSerializationVisibilityAttribute : Attribute {
compmod\system\componentmodel\DesignOnlyAttribute.cs (1)
19public sealed class DesignOnlyAttribute : Attribute {
compmod\system\componentmodel\DesignTimeVisibleAttribute.cs (1)
22public sealed class DesignTimeVisibleAttribute : Attribute {
compmod\system\componentmodel\DisplayNameAttribute.cs (1)
19public class DisplayNameAttribute : Attribute {
compmod\system\componentmodel\EditorAttribute.cs (1)
19public sealed class EditorAttribute : Attribute {
compmod\system\componentmodel\EditorBrowsableAttribute.cs (1)
15public sealed class EditorBrowsableAttribute :Attribute
compmod\system\componentmodel\ExtenderProvidedPropertyAttribute.cs (1)
23public sealed class ExtenderProvidedPropertyAttribute : Attribute {
compmod\system\componentmodel\ImmutableObjectAttribute.cs (1)
11public sealed class ImmutableObjectAttribute : Attribute {
compmod\system\componentmodel\InitializationEventAttribute.cs (1)
18public sealed class InitializationEventAttribute : Attribute {
compmod\system\componentmodel\InstallerTypeAttribute.cs (1)
22public class InstallerTypeAttribute : Attribute {
compmod\system\componentmodel\LicenseProviderAttribute.cs (1)
17public sealed class LicenseProviderAttribute : Attribute {
compmod\system\componentmodel\ListBindableAttribute.cs (1)
19public sealed class ListBindableAttribute : Attribute {
compmod\system\componentmodel\LocalizableAttribute.cs (1)
19public sealed class LocalizableAttribute : Attribute {
compmod\system\componentmodel\LookupBindingPropertiesAttribute.cs (1)
19public sealed class LookupBindingPropertiesAttribute : Attribute {
compmod\system\componentmodel\MergablePropertyAttribute.cs (1)
21public sealed class MergablePropertyAttribute : Attribute {
compmod\system\componentmodel\PasswordPropertyTextAttribute.cs (1)
18public sealed class PasswordPropertyTextAttribute : Attribute {
compmod\system\componentmodel\ProvidePropertyAttribute.cs (1)
20public sealed class ProvidePropertyAttribute : Attribute {
compmod\system\componentmodel\ReadOnlyAttribute.cs (1)
20public sealed class ReadOnlyAttribute : Attribute {
compmod\system\componentmodel\RecommendedAsConfigurableAttribute.cs (1)
21public class RecommendedAsConfigurableAttribute : Attribute {
compmod\system\componentmodel\RunInstallerAttribute.cs (1)
20public class RunInstallerAttribute : Attribute {
compmod\system\componentmodel\SettingsBindableAttribute.cs (1)
19public sealed class SettingsBindableAttribute : Attribute {
compmod\system\componentmodel\ToolboxItemFilterAttribute.cs (1)
53public sealed class ToolboxItemFilterAttribute : Attribute {
compmod\system\componentmodel\TypeConverterAttribute.cs (1)
23public sealed class TypeConverterAttribute : Attribute {
compmod\system\componentmodel\TypeDescriptionProviderAttribute.cs (1)
16public sealed class TypeDescriptionProviderAttribute : Attribute
compmod\system\diagnostics\SwitchAttribute.cs (1)
15public sealed class SwitchAttribute : Attribute {
compmod\system\diagnostics\SwitchLevelAttribute.cs (1)
14public sealed class SwitchLevelAttribute : Attribute {
misc\BitmapSuffixInSatelliteAssemblyAttribute.cs (1)
15internal class BitmapSuffixInSatelliteAssemblyAttribute : Attribute {
sys\system\configuration\SettingsAttributes.cs (10)
25public sealed class DefaultSettingValueAttribute : Attribute { 50public sealed class NoSettingsVersionUpgradeAttribute : Attribute { 60public class SettingAttribute : Attribute { 67public sealed class SettingsDescriptionAttribute : Attribute { 91public sealed class SettingsGroupDescriptionAttribute : Attribute { 115public sealed class SettingsGroupNameAttribute : Attribute { 139public sealed class SettingsManageabilityAttribute : Attribute { 163public sealed class SettingsProviderAttribute : Attribute { 196public sealed class SettingsSerializeAsAttribute : Attribute { 220public sealed class SpecialSettingAttribute : Attribute {
sys\System\Diagnostics\CodeAnalysis\ExcludeFromCodeCoverageAttribute.cs (1)
15public sealed class ExcludeFromCodeCoverageAttribute : Attribute
sys\system\runtime\interopservices\DefaultParameterValueAttribute.cs (1)
18public sealed class DefaultParameterValueAttribute : System.Attribute
sys\system\windows\markup\ValueSerializerAttribute.cs (1)
30public sealed class ValueSerializerAttribute : Attribute
System.Activities (2)
System\Activities\OverloadGroupAttribute.cs (1)
14public sealed class OverloadGroupAttribute : Attribute
System\Activities\RequiredArgumentAttribute.cs (1)
11public sealed class RequiredArgumentAttribute : Attribute
System.Activities.Presentation (16)
System.Activities.Presentation\System\Activities\Presentation\ActivityDesignerOptionsAttribute.cs (1)
14public sealed class ActivityDesignerOptionsAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EditorReuseAttribute.cs (1)
10public sealed class EditorReuseAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (1)
18sealed class NewItemTypesAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyOrderAttribute.cs (1)
12sealed class PropertyOrderAttribute : Attribute {
System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (1)
16sealed class ViewManagerAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Converters\SearchableStringConverterAttribute.cs (1)
9internal sealed class SearchableStringConverterAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
16internal sealed class AllowBreakpointAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\DefaultTypeArgumentAttribute.cs (1)
12public sealed class DefaultTypeArgumentAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\EditorOptionAttribute.cs (1)
12public sealed class EditorOptionAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (1)
13public sealed class ExpressionMorphHelperAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\FeatureAttribute.cs (1)
12sealed class FeatureAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\TypeResolvingOptionsAttribute.cs (1)
19public sealed class TypeResolvingOptionsAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\HidePropertyInOutlineViewAttribute.cs (1)
15public sealed class HidePropertyInOutlineViewAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowInOutlineViewAttribute.cs (1)
15public sealed class ShowInOutlineViewAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowPropertyInOutlineViewAsSiblingAttribute.cs (1)
15public sealed class ShowPropertyInOutlineViewAsSiblingAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowPropertyInOutlineViewAttribute.cs (1)
15public sealed class ShowPropertyInOutlineViewAttribute : Attribute
System.AddIn (4)
System\Addin\AddInAttribute.cs (1)
20public sealed class AddInAttribute : Attribute
System\Addin\Pipeline\AddInPipelineAttributes.cs (3)
16public sealed class HostAdapterAttribute : Attribute 22public sealed class AddInAdapterAttribute : Attribute 28public sealed class AddInBaseAttribute : Attribute
System.AddIn.Contract (2)
System\Addin\Contract\AddInContractAttribute.cs (1)
17public sealed class AddInContractAttribute : Attribute
System\Addin\Contract\QualificationDataAttribute.cs (1)
17public sealed class QualificationDataAttribute : Attribute
System.ComponentModel.DataAnnotations (22)
DataAnnotations\AssociationAttribute.cs (1)
8public sealed class AssociationAttribute : Attribute {
DataAnnotations\BindableTypeAttribute.cs (1)
6public sealed class BindableTypeAttribute : Attribute {
DataAnnotations\ConcurrencyCheckAttribute.cs (1)
8public sealed class ConcurrencyCheckAttribute : Attribute {
DataAnnotations\DisplayAttribute.cs (1)
12public sealed class DisplayAttribute : Attribute {
DataAnnotations\DisplayColumnAttribute.cs (1)
9public class DisplayColumnAttribute : Attribute {
DataAnnotations\DisplayFormatAttribute.cs (1)
9public class DisplayFormatAttribute : Attribute {
DataAnnotations\EditableAttribute.cs (1)
14public sealed class EditableAttribute : Attribute {
DataAnnotations\FilterUIHintAttribute.cs (1)
10public sealed class FilterUIHintAttribute : Attribute {
DataAnnotations\KeyAttribute.cs (1)
7public sealed class KeyAttribute : Attribute {
DataAnnotations\MetadataTypeAttribute.cs (1)
10public sealed class MetadataTypeAttribute : Attribute {
DataAnnotations\ScaffoldAttribute.cs (2)
7public class ScaffoldColumnAttribute : Attribute { 17public class ScaffoldTableAttribute : Attribute {
DataAnnotations\Schema\ColumnAttribute.cs (1)
11public class ColumnAttribute : Attribute {
DataAnnotations\Schema\ComplexTypeAttribute.cs (1)
11public class ComplexTypeAttribute : Attribute {
DataAnnotations\Schema\DatabaseGeneratedAttribute.cs (1)
9public class DatabaseGeneratedAttribute : Attribute {
DataAnnotations\Schema\ForeignKeyAttribute.cs (1)
13public class ForeignKeyAttribute : Attribute {
DataAnnotations\Schema\InversePropertyAttribute.cs (1)
11public class InversePropertyAttribute : Attribute {
DataAnnotations\Schema\NotMappedAttribute.cs (1)
9public class NotMappedAttribute : Attribute {
DataAnnotations\Schema\TableAttribute.cs (1)
11public class TableAttribute : Attribute {
DataAnnotations\TimestampAttribute.cs (1)
7public sealed class TimestampAttribute : Attribute {
DataAnnotations\UIHintAttribute.cs (1)
15public class UIHintAttribute : Attribute {
DataAnnotations\ValidationAttribute.cs (1)
17public abstract class ValidationAttribute : Attribute {
System.Configuration (3)
System\Configuration\ConfigurationCollectionAttribute.cs (1)
27public sealed class ConfigurationCollectionAttribute : Attribute {
System\Configuration\ConfigurationPropertyAttribute.cs (1)
24public sealed class ConfigurationPropertyAttribute : Attribute {
System\Configuration\ConfigurationValidatorAttribute.cs (1)
25public class ConfigurationValidatorAttribute : Attribute {
System.Core (6)
System\Management\Automation\UMPAttributes.cs (5)
25sealed public class ManagementEntityAttribute : Attribute 101sealed public class WmiConfigurationAttribute : Attribute 189public abstract class ManagementMemberAttribute : Attribute 395sealed public class ManagementReferenceAttribute : Attribute 461sealed public class ManagementNameAttribute : Attribute
System\Runtime\CompilerServices\DynamicAttribute.cs (1)
15public sealed class DynamicAttribute : Attribute
System.Data (27)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesignerOptionsAttribute.cs (1)
14public sealed class ActivityDesignerOptionsAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\EditorReuseAttribute.cs (1)
10public sealed class EditorReuseAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (1)
18sealed class NewItemTypesAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyOrderAttribute.cs (1)
12sealed class PropertyOrderAttribute : Attribute {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManagerAttribute.cs (1)
16sealed class ViewManagerAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Converters\SearchableStringConverterAttribute.cs (1)
9internal sealed class SearchableStringConverterAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Debugger\AllowBreakpointAttribute.cs (1)
16internal sealed class AllowBreakpointAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultTypeArgumentAttribute.cs (1)
12public sealed class DefaultTypeArgumentAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\EditorOptionAttribute.cs (1)
12public sealed class EditorOptionAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Expressions\ExpressionMorphHelperAttribute.cs (1)
13public sealed class ExpressionMorphHelperAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FeatureAttribute.cs (1)
12sealed class FeatureAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\TypeResolvingOptionsAttribute.cs (1)
19public sealed class TypeResolvingOptionsAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\HidePropertyInOutlineViewAttribute.cs (1)
15public sealed class HidePropertyInOutlineViewAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowInOutlineViewAttribute.cs (1)
15public sealed class ShowInOutlineViewAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowPropertyInOutlineViewAsSiblingAttribute.cs (1)
15public sealed class ShowPropertyInOutlineViewAsSiblingAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\OutlineView\ShowPropertyInOutlineViewAttribute.cs (1)
15public sealed class ShowPropertyInOutlineViewAttribute : Attribute
fx\src\bid\inc\cs\bidPrivateBase.cs (4)
1134internal sealed class BidIdentityAttribute : Attribute 1151internal sealed class BidMetaTextAttribute : Attribute 1172internal sealed class BidMethodAttribute : Attribute 1212internal sealed class BidArgumentTypeAttribute : Attribute
fx\src\data\System\Data\Common\DbProviderSpecificTypePropertyAttribute.cs (1)
14public sealed class DbProviderSpecificTypePropertyAttribute : System.Attribute {
fx\src\data\System\Data\Sql\SqlFacetAttribute.cs (1)
23public class SqlFacetAttribute: Attribute {
fx\src\data\System\Data\Sql\SqlFunctionAttribute.cs (1)
33public class SqlFunctionAttribute : System.Attribute {
fx\src\data\System\Data\Sql\SqlProcedureAttribute.cs (1)
20public sealed class SqlProcedureAttribute : System.Attribute {
fx\src\data\System\Data\Sql\SqlTriggerAttribute.cs (1)
20public sealed class SqlTriggerAttribute : System.Attribute {
fx\src\data\System\Data\Sql\SqlUserDefinedAggregateAttribute.cs (1)
24public sealed class SqlUserDefinedAggregateAttribute: Attribute {
fx\src\data\System\Data\Sql\SqlUserDefinedTypeAttribute.cs (1)
33public sealed class SqlUserDefinedTypeAttribute: Attribute {
System.Data.Entity (7)
System\Data\Mapping\EntityViewGenerationAttribute.cs (1)
17public sealed class EntityViewGenerationAttribute : System.Attribute
System\Data\Metadata\Edm\MetadataPropertyAttribute.cs (1)
21internal sealed class MetadataPropertyAttribute : Attribute
System\Data\Objects\DataClasses\EdmFunctionAttribute.cs (1)
16public sealed class EdmFunctionAttribute : Attribute
System\Data\Objects\DataClasses\EdmPropertyAttribute.cs (1)
23public abstract class EdmPropertyAttribute: System.Attribute
System\Data\Objects\DataClasses\EdmRelationshipRoleAttribute.cs (1)
17public sealed class EdmRelationshipAttribute : System.Attribute
System\Data\Objects\DataClasses\EdmSchemaAttribute.cs (1)
18public sealed class EdmSchemaAttribute : System.Attribute
System\Data\Objects\DataClasses\EdmTypeAttribute.cs (1)
21public abstract class EdmTypeAttribute: System.Attribute
System.Data.Linq (8)
Mapping\Attributes.cs (8)
12public sealed class FunctionAttribute : Attribute { 35public sealed class ResultTypeAttribute : Attribute { 47public sealed class ParameterAttribute : Attribute { 64public sealed class DatabaseAttribute : Attribute { 75public sealed class TableAttribute : Attribute { 97public sealed class InheritanceMappingAttribute : Attribute { 128public abstract class DataAttribute : Attribute { 259public sealed class ProviderAttribute : Attribute {
System.Data.Services (6)
System\Data\Services\ChangeInterceptorAttribute.cs (1)
22public sealed class ChangeInterceptorAttribute : Attribute
System\Data\Services\ETagAttribute.cs (1)
22public sealed class ETagAttribute : System.Attribute
System\Data\Services\IgnorePropertiesAttribute.cs (1)
24public sealed class IgnorePropertiesAttribute : System.Attribute
System\Data\Services\MimeTypeAttribute.cs (1)
26public sealed class MimeTypeAttribute : Attribute
System\Data\Services\QueryInterceptorAttribute.cs (1)
21public sealed class QueryInterceptorAttribute : Attribute
System\Data\Services\SingleResultAttribute.cs (1)
24public sealed class SingleResultAttribute : Attribute
System.Data.Services.Client (7)
System\Data\Services\Client\Binding\DataServiceEntityAttribute.cs (1)
21public sealed class EntitySetAttribute : System.Attribute
System\Data\Services\Client\DataServiceEntityAttribute.cs (1)
22public sealed class DataServiceEntityAttribute : System.Attribute
System\Data\Services\Client\DataServiceKeyAttribute.cs (1)
23public sealed class DataServiceKeyAttribute : System.Attribute
System\Data\Services\Client\EntityPropertyMappingAttribute.cs (1)
130public sealed class EntityPropertyMappingAttribute : Attribute
System\Data\Services\Client\HasStreamAttribute.cs (1)
20public sealed class HasStreamAttribute : Attribute
System\Data\Services\Client\MediaEntryAttribute.cs (1)
20public sealed class MediaEntryAttribute : Attribute
System\Data\Services\Client\MimeTypePropertyAttribute.cs (1)
20public sealed class MimeTypePropertyAttribute : Attribute
System.Drawing (3)
commonui\System\Drawing\BitmapSuffixInSameAssemblyAttribute.cs (1)
15public class BitmapSuffixInSameAssemblyAttribute : Attribute {
commonui\System\Drawing\BitmapSuffixInSatelliteAssemblyAttribute.cs (1)
15public class BitmapSuffixInSatelliteAssemblyAttribute : Attribute {
commonui\System\Drawing\ToolboxBitmapAttribute.cs (1)
30public class ToolboxBitmapAttribute : Attribute {
System.Management (4)
Instrumentation\Attributes.cs (4)
24public class InstrumentedAttribute : Attribute 295public class InstrumentationClassAttribute : Attribute 397public class ManagedNameAttribute : Attribute 474public class IgnoreMemberAttribute : Attribute
System.Numerics (1)
System\Numerics\JITIntrinsicAttribute.cs (1)
10internal class JitIntrinsicAttribute : Attribute
System.Runtime.Serialization (7)
System\Runtime\Serialization\CollectionDataContractAttribute.cs (1)
8public sealed class CollectionDataContractAttribute : Attribute
System\Runtime\Serialization\ContractNamespaceAttribute.cs (1)
10public sealed class ContractNamespaceAttribute : Attribute
System\Runtime\Serialization\DataContractAttribute.cs (1)
8public sealed class DataContractAttribute : Attribute
System\Runtime\Serialization\DataMemberAttribute.cs (1)
8public sealed class DataMemberAttribute : Attribute
System\Runtime\Serialization\EnumMemberAttribute.cs (1)
8public sealed class EnumMemberAttribute : Attribute
System\Runtime\Serialization\IgnoreDataMemberAttribute.cs (1)
9public sealed class IgnoreDataMemberAttribute : Attribute
System\Runtime\Serialization\KnownTypeAttribute.cs (1)
8public sealed class KnownTypeAttribute : Attribute
System.ServiceModel (17)
System\ServiceModel\Activation\AspNetCompatibilityRequirementsAttribute.cs (1)
14public sealed class AspNetCompatibilityRequirementsAttribute : Attribute, IServiceBehavior
System\ServiceModel\CallbackBehaviorAttribute.cs (1)
21public sealed class CallbackBehaviorAttribute : Attribute, IEndpointBehavior
System\ServiceModel\DataContractFormatAttribute.cs (1)
10public sealed class DataContractFormatAttribute : Attribute
System\ServiceModel\DeliveryRequirementsAttribute.cs (1)
14public sealed class DeliveryRequirementsAttribute : Attribute, IContractBehavior, IContractBehaviorAttribute
System\ServiceModel\FaultContractAttribute.cs (1)
13public sealed class FaultContractAttribute : Attribute
System\ServiceModel\MessageContractAttribute.cs (1)
14public sealed class MessageContractAttribute : Attribute
System\ServiceModel\MessageContractMemberAttribute.cs (1)
12public abstract class MessageContractMemberAttribute : Attribute
System\ServiceModel\MessageParameterAttribute.cs (1)
10public sealed class MessageParameterAttribute : Attribute
System\ServiceModel\MessagePropertyAttribute.cs (1)
7public sealed class MessagePropertyAttribute : Attribute
System\ServiceModel\OperationBehaviorAttribute.cs (1)
17public sealed class OperationBehaviorAttribute : Attribute, IOperationBehavior
System\ServiceModel\OperationContractAttribute.cs (1)
13public sealed class OperationContractAttribute : Attribute
System\ServiceModel\ReceiveContextEnabledAttribute.cs (1)
11public sealed class ReceiveContextEnabledAttribute : Attribute, IOperationBehavior
System\ServiceModel\ServiceBehaviorAttribute.cs (1)
22public sealed class ServiceBehaviorAttribute : Attribute, IServiceBehavior
System\ServiceModel\ServiceContractAttribute.cs (1)
16public sealed class ServiceContractAttribute : Attribute
System\ServiceModel\ServiceKnownTypeAttribute.cs (1)
8public sealed class ServiceKnownTypeAttribute : Attribute
System\ServiceModel\TransactionFlowAttribute.cs (1)
15public sealed class TransactionFlowAttribute : Attribute, IOperationBehavior
System\ServiceModel\XmlSerializerFormatAttribute.cs (1)
9public sealed class XmlSerializerFormatAttribute : Attribute
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\ServiceActivationBuildProviderAttribute.cs (1)
8public sealed class ServiceActivationBuildProviderAttribute : Attribute
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Description\WorkflowContractBehaviorAttribute.cs (1)
14public sealed class WorkflowContractBehaviorAttribute : Attribute, IContractBehavior
System.ServiceModel.Internals (16)
System\Runtime\Diagnostics\PerformanceCounterNameAttribute.cs (1)
9sealed class PerformanceCounterNameAttribute : Attribute
System\Runtime\Fx.cs (15)
645public sealed class FriendAccessAllowedAttribute : Attribute 677public sealed class CacheAttribute : Attribute 720public sealed class QueueAttribute : Attribute 753public sealed class ThrottleAttribute : Attribute 806public sealed class ExternalResourceAttribute : Attribute 838public sealed class SynchronizationObjectAttribute : Attribute 854public sealed class SynchronizationPrimitiveAttribute : Attribute 878public sealed class BlockingAttribute : Attribute 897public sealed class GuaranteeNonBlockingAttribute : Attribute 906public sealed class NonThrowingAttribute : Attribute 918public class ThrowsAttribute : Attribute 957public sealed class InheritThrowsAttribute : Attribute 969public sealed class KnownXamlExternalAttribute : Attribute 978public sealed class XamlVisibleAttribute : Attribute 1002public sealed class SecurityNoteAttribute : Attribute
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\GenericTransactionFlowAttribute.cs (1)
13sealed class GenericTransactionFlowAttribute : Attribute, IOperationBehavior
System.ServiceModel.Web (4)
System\ServiceModel\Web\AspNetCacheProfileAttribute.cs (1)
13public sealed class AspNetCacheProfileAttribute : Attribute, IOperationBehavior
System\ServiceModel\Web\JavascriptCallbackBehaviorAttribute.cs (1)
16public sealed class JavascriptCallbackBehaviorAttribute : Attribute, IContractBehavior
System\ServiceModel\Web\WebGetAttribute.cs (1)
16public sealed class WebGetAttribute : Attribute, IOperationContractAttributeProvider, IOperationBehavior, IWmiInstanceProvider
System\ServiceModel\Web\WebInvokeAttribute.cs (1)
15public sealed class WebInvokeAttribute : Attribute, IOperationContractAttributeProvider, IOperationBehavior, IWmiInstanceProvider
System.Web (49)
Compilation\BuildProviderAppliesToAttribute.cs (1)
13public sealed class BuildProviderAppliesToAttribute : Attribute {
Compilation\DesignTimeResourceProviderFactoryAttribute.cs (1)
19public sealed class DesignTimeResourceProviderFactoryAttribute : Attribute {
Compilation\ExpressionEditorAttribute.cs (1)
12public sealed class ExpressionEditorAttribute : Attribute {
Compilation\ExpressionPrefixAttribute.cs (1)
15public sealed class ExpressionPrefixAttribute : Attribute {
Compilation\FolderLevelBuildProviderAppliesToAttribute.cs (1)
13public sealed class FolderLevelBuildProviderAppliesToAttribute : Attribute {
ModelBinding\BindingBehaviorAttribute.cs (1)
7public class BindingBehaviorAttribute : Attribute {
ModelBinding\ExtensibleModelBinderAttribute.cs (1)
5public sealed class ExtensibleModelBinderAttribute : Attribute {
ModelBinding\ModelBinderProviderOptionsAttribute.cs (1)
5public sealed class ModelBinderProviderOptionsAttribute : Attribute {
ModelBinding\UserProfileAttribute.cs (1)
5public sealed class UserProfileAttribute : Attribute, IValueProviderSource {
ModelBinding\ValueProviderSourceAttribute.cs (1)
8public abstract class ValueProviderSourceAttribute : Attribute, IValueProviderSource, IModelNameProvider {
PreApplicationStartMethodAttribute.cs (1)
9public sealed class PreApplicationStartMethodAttribute : Attribute {
Profile\Attributes.cs (3)
14public sealed class ProfileProviderAttribute : Attribute { 29public sealed class SettingsAllowAnonymousAttribute : Attribute 46public sealed class CustomProviderDataAttribute : Attribute
UI\CollectionBuilder.cs (1)
21internal sealed class IgnoreUnknownContentAttribute : Attribute {
UI\ConstructorNeedsTagAttribute.cs (1)
21public sealed class ConstructorNeedsTagAttribute: Attribute {
UI\ControlBuilderAttribute.cs (1)
20public sealed class ControlBuilderAttribute : Attribute {
UI\ControlValuePropertyAttribute.cs (1)
18public sealed class ControlValuePropertyAttribute : Attribute {
UI\CssClassPropertyAttribute.cs (1)
22public sealed class CssClassPropertyAttribute : Attribute {
UI\DataBindingHandlerAttribute.cs (1)
18public sealed class DataBindingHandlerAttribute : Attribute {
UI\DataKeyPropertyAttribute.cs (1)
16public sealed class DataKeyPropertyAttribute : Attribute {
UI\FileLevelControlBuilderAttribute.cs (1)
23public sealed class FileLevelControlBuilderAttribute : Attribute
UI\FilterableAttribute.cs (1)
20public sealed class FilterableAttribute : Attribute {
UI\HtmlControlPersistable.cs (1)
12internal sealed class HtmlControlPersistableAttribute : Attribute {
UI\IDReferencePropertyAttribute.cs (1)
19public sealed class IDReferencePropertyAttribute : Attribute
UI\NonVisualControlAttribute.cs (1)
16public sealed class NonVisualControlAttribute : Attribute {
UI\ParseChildrenAsPropertiesAttribute.cs (1)
22public sealed class ParseChildrenAttribute : Attribute {
UI\PartialCachingAttribute.cs (1)
32public sealed class PartialCachingAttribute : Attribute {
UI\PersistChildrenAttribute.cs (1)
22public sealed class PersistChildrenAttribute : Attribute {
UI\PersistenceTypeAttribute.cs (1)
27public sealed class PersistenceModeAttribute : Attribute {
UI\SupportsEventValidationAttribute.cs (1)
20public sealed class SupportsEventValidationAttribute : Attribute {
UI\TagPrefixAttribute.cs (1)
14public sealed class TagPrefixAttribute : Attribute {
UI\TemplateBuilder.cs (1)
28public sealed class TemplateContainerAttribute : Attribute {
UI\TemplateInstanceAttribute.cs (1)
19public sealed class TemplateInstanceAttribute : Attribute {
UI\ThemeableAttribute.cs (1)
19public sealed class ThemeableAttribute : Attribute {
UI\ToolboxDataAttribute.cs (1)
21public sealed class ToolboxDataAttribute : Attribute {
UI\UrlPropertyAttribute.cs (1)
17public sealed class UrlPropertyAttribute : Attribute {
UI\ValidationPropertyAttribute.cs (1)
18public sealed class ValidationPropertyAttribute : Attribute {
UI\VerificationAttribute.cs (1)
13public sealed class VerificationAttribute : Attribute {
UI\ViewStateModeByIdAttribute.cs (1)
16public sealed class ViewStateModeByIdAttribute : Attribute {
UI\WebParts\ConnectionConsumerAttribute.cs (1)
14public class ConnectionConsumerAttribute : Attribute {
UI\WebParts\ConnectionProviderAttribute.cs (1)
14public class ConnectionProviderAttribute : Attribute {
UI\WebParts\PersonalizableAttribute.cs (1)
21public sealed class PersonalizableAttribute : Attribute {
UI\WebParts\WebBrowsableAttribute.cs (1)
15public sealed class WebBrowsableAttribute : Attribute {
UI\WebParts\WebDescriptionAttribute.cs (1)
11public class WebDescriptionAttribute : Attribute {
UI\WebParts\WebDisplayNameAttribute.cs (1)
11public class WebDisplayNameAttribute : Attribute {
UI\WebParts\WebPartTransformerAttribute.cs (1)
16public sealed class WebPartTransformerAttribute : Attribute {
UI\WebResourceAttribute.cs (1)
16public sealed class WebResourceAttribute : Attribute {
Util\DoNotResetAttribute.cs (1)
13internal sealed class DoNotResetAttribute : Attribute {
System.Web.ApplicationServices (1)
Hosting\CustomLoaderAttribute.cs (1)
13public sealed class CustomLoaderAttribute : Attribute {
System.Web.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
141 internal sealed class SerializationVisibilityAttribute : System.Attribute
System.Web.DynamicData (1)
DynamicData\TableNameAttribute.cs (1)
8public sealed class TableNameAttribute : Attribute {
System.Web.Extensions (7)
Script\AjaxFrameworkAssemblyAttribute.cs (1)
9public class AjaxFrameworkAssemblyAttribute : Attribute {
Script\Serialization\ScriptIgnoreAttribute.cs (1)
14public sealed class ScriptIgnoreAttribute : Attribute {
Script\Services\GenerateScriptTypeAttribute.cs (1)
15public sealed class GenerateScriptTypeAttribute : Attribute {
Script\Services\ScriptMethodAttribute.cs (1)
14public sealed class ScriptMethodAttribute : Attribute {
Script\Services\ScriptServiceAttribute.cs (1)
14public sealed class ScriptServiceAttribute : Attribute {
UI\ScriptResourceAttribute.cs (1)
28public sealed class ScriptResourceAttribute : Attribute {
UI\TargetControlTypeAttribute.cs (1)
15public sealed class TargetControlTypeAttribute : Attribute {
System.Web.Mobile (4)
UI\MobileControls\DesignerAdapterAttribute.cs (1)
26public class DesignerAdapterAttribute : Attribute
UI\MobileControls\DeviceOverridableAttribute.cs (1)
15public class DeviceOverridableAttribute : Attribute
UI\MobileControls\ObjectListTitleAttribute.cs (1)
26public class ObjectListTitleAttribute : Attribute
UI\MobileControls\PersistNameAttribute.cs (1)
21public class PersistNameAttribute : Attribute
System.Web.Services (14)
System\Web\Services\Configuration\XmlFormatExtensionAttribute.cs (1)
16public sealed class XmlFormatExtensionAttribute : Attribute {
System\Web\Services\Configuration\XmlFormatExtensionPointAttribute.cs (1)
16public sealed class XmlFormatExtensionPointAttribute : Attribute {
System\Web\Services\Configuration\XmlFormatExtensionPrefixAttribute.cs (1)
16public sealed class XmlFormatExtensionPrefixAttribute : Attribute {
System\Web\Services\Protocols\HttpMethodAttribute.cs (1)
15public sealed class HttpMethodAttribute : System.Attribute {
System\Web\Services\Protocols\MatchAttribute.cs (1)
10public sealed class MatchAttribute : System.Attribute {
System\Web\Services\Protocols\SoapDocumentMethodAttribute.cs (1)
16public sealed class SoapDocumentMethodAttribute : System.Attribute {
System\Web\Services\Protocols\SoapDocumentServiceAttribute.cs (1)
19public sealed class SoapDocumentServiceAttribute : Attribute {
System\Web\Services\Protocols\SoapExtensionAttribute.cs (1)
20public abstract class SoapExtensionAttribute : System.Attribute {
System\Web\Services\Protocols\SoapHeaderAttribute.cs (1)
22public sealed class SoapHeaderAttribute : System.Attribute {
System\Web\Services\Protocols\SoapRpcMethodAttribute.cs (1)
17public sealed class SoapRpcMethodAttribute : System.Attribute {
System\Web\Services\Protocols\SoapRpcServiceAttribute.cs (1)
20public sealed class SoapRpcServiceAttribute : Attribute {
System\Web\Services\WebMethodAttribute.cs (1)
26public sealed class WebMethodAttribute : Attribute {
System\Web\Services\WebServiceAttribute.cs (1)
19public sealed class WebServiceAttribute : Attribute {
System\Web\Services\WebServiceBindingAttribute.cs (1)
19public sealed class WebServiceBindingAttribute : Attribute {
System.Windows.Forms (7)
winforms\Managed\System\WinForms\AxHost.cs (2)
3651public sealed class ClsidAttribute : Attribute { 3669public sealed class TypeLibraryTimeStampAttribute : Attribute {
winforms\Managed\System\WinForms\DataGridViewColumnDesignTimeVisibleAttribute.cs (1)
12public sealed class DataGridViewColumnDesignTimeVisibleAttribute: Attribute {
winforms\Managed\System\WinForms\Design\ToolStripDesignerAvailabilityAttribute.cs (1)
11public sealed class ToolStripItemDesignerAvailabilityAttribute : Attribute {
winforms\Managed\System\WinForms\DockingAttribute.cs (1)
16public sealed class DockingAttribute : Attribute {
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (1)
171internal sealed class ApplicableToButtonAttribute : Attribute {
winforms\Managed\System\WinForms\RelatedImageListAttribute.cs (1)
17public sealed class RelatedImageListAttribute : Attribute {
System.Windows.Forms.DataVisualization (1)
Common\Utilities\XmlSerializer.cs (1)
141 internal sealed class SerializationVisibilityAttribute : System.Attribute
System.Workflow.Activities (6)
LocalService\CorrelationService.cs (1)
27internal sealed class CorrelationProviderAttribute : Attribute
LocalService\WorkflowMessageEventArgs.cs (4)
23public sealed class ExternalDataExchangeAttribute : Attribute 30public sealed class CorrelationInitializerAttribute : Attribute 36public sealed class CorrelationParameterAttribute : Attribute 55public sealed class CorrelationAliasAttribute : Attribute
Rules\RuleAttributes.cs (1)
23public abstract class RuleAttribute : Attribute
System.Workflow.ComponentModel (17)
AuthoringOM\ActivityInterfaces.cs (5)
56internal sealed class ActivityExecutorAttribute : Attribute 210public sealed class AlternateFlowActivityAttribute : Attribute 218internal sealed class SupportsTransactionAttribute : Attribute 226internal sealed class SupportsSynchronizationAttribute : Attribute 235public sealed class PersistOnCloseAttribute : Attribute
AuthoringOM\Compiler\CodeGeneration\CodeGeneratorAttribute.cs (1)
5public sealed class ActivityCodeGeneratorAttribute : Attribute
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (1)
17public sealed class AttributeInfoAttribute : Attribute
AuthoringOM\Compiler\Validation\ValidationVisibilityAttribute.cs (1)
15public sealed class ValidationOptionAttribute : Attribute
AuthoringOM\Compiler\Validation\ValidatorAttribute.cs (1)
8public sealed class ActivityValidatorAttribute : Attribute
AuthoringOM\Compiler\XomlCompiler.cs (1)
35public sealed class WorkflowMarkupSourceAttribute : Attribute
AuthoringOM\Design\DesignerInterfaces.cs (1)
1125public sealed class TypeFilterProviderAttribute : Attribute
AuthoringOM\Design\Themes.cs (1)
112public sealed class ActivityDesignerThemeAttribute : Attribute
AuthoringOM\Serializer\XamlInterfaces.cs (5)
15public sealed class XmlnsDefinitionAttribute : Attribute 48public sealed class XmlnsPrefixAttribute : Attribute 74public sealed class RuntimeNamePropertyAttribute : Attribute 91public sealed class ContentPropertyAttribute : Attribute 105public sealed class ConstructorArgumentAttribute : Attribute
System.Workflow.Runtime (2)
DebugEngine\WorkflowDebuggerSteppingAttribute.cs (1)
15public sealed class WorkflowDebuggerSteppingAttribute : Attribute
Tracking\PreviousTrackingServiceAttribute.cs (1)
11public sealed class PreviousTrackingServiceAttribute : Attribute
System.WorkflowServices (4)
System\ServiceModel\Description\DurableOperationAttribute.cs (1)
13public sealed class DurableOperationAttribute : Attribute, IOperationBehavior, IWmiInstanceProvider
System\ServiceModel\Description\DurableServiceAttribute.cs (1)
16public sealed class DurableServiceAttribute : Attribute, IServiceBehavior, IContextSessionProvider, IWmiInstanceProvider
System\Workflow\Activities\Design\ListItemDetailViewAttribute.cs (1)
12internal sealed class ListItemDetailViewAttribute : Attribute
System\Workflow\Activities\Design\ListItemViewAttribute.cs (1)
12internal sealed class ListItemViewAttribute : Attribute
System.Xml (23)
System\Xml\Serialization\SoapAttributeAttribute.cs (1)
16public class SoapAttributeAttribute : System.Attribute {
System\Xml\Serialization\SoapElementAttribute.cs (1)
16public class SoapElementAttribute : System.Attribute {
System\Xml\Serialization\SoapEnumAttribute.cs (1)
17public class SoapEnumAttribute : System.Attribute {
System\Xml\Serialization\SoapIgnoreAttribute.cs (1)
17public class SoapIgnoreAttribute : System.Attribute {
System\Xml\Serialization\SoapIncludeAttribute.cs (1)
17public class SoapIncludeAttribute : System.Attribute {
System\Xml\Serialization\SoapTypeAttribute.cs (1)
16public class SoapTypeAttribute : System.Attribute {
System\Xml\Serialization\XmlAnyAttributeAttribute.cs (1)
17public class XmlAnyAttributeAttribute : System.Attribute {
System\Xml\Serialization\XmlAnyElementAttribute.cs (1)
17public class XmlAnyElementAttribute : System.Attribute {
System\Xml\Serialization\XmlArrayAttribute.cs (1)
18public class XmlArrayAttribute : System.Attribute {
System\Xml\Serialization\XmlArrayItemAttribute.cs (1)
18public class XmlArrayItemAttribute : System.Attribute {
System\Xml\Serialization\XmlAttributeAttribute.cs (1)
18public class XmlAttributeAttribute : System.Attribute {
System\Xml\Serialization\XmlChoiceIdentifierAttribute.cs (1)
18public class XmlChoiceIdentifierAttribute : System.Attribute {
System\Xml\Serialization\XmlElementAttribute.cs (1)
17public class XmlElementAttribute : System.Attribute {
System\Xml\Serialization\XmlEnumAttribute.cs (1)
17public class XmlEnumAttribute : System.Attribute {
System\Xml\Serialization\XmlIgnoreAttribute.cs (1)
17public class XmlIgnoreAttribute : System.Attribute {
System\Xml\Serialization\XmlIncludeAttribute.cs (1)
17public class XmlIncludeAttribute : System.Attribute {
System\Xml\Serialization\XmlNamespaceDeclarationsAttribute.cs (1)
17public class XmlNamespaceDeclarationsAttribute : System.Attribute {
System\Xml\Serialization\XmlRootAttribute.cs (1)
18public class XmlRootAttribute : System.Attribute {
System\Xml\Serialization\XmlSchemaProviderAttribute.cs (1)
18public sealed class XmlSchemaProviderAttribute : System.Attribute {
System\Xml\Serialization\XmlSerializerAssemblyAttribute.cs (1)
17public sealed class XmlSerializerAssemblyAttribute : System.Attribute {
System\Xml\Serialization\XmlSerializerVersionAttribute.cs (1)
18public sealed class XmlSerializerVersionAttribute : System.Attribute {
System\Xml\Serialization\XmlTextAttribute.cs (1)
17public class XmlTextAttribute : System.Attribute {
System\Xml\Serialization\XmlTypeAttribute.cs (1)
17public class XmlTypeAttribute : System.Attribute {
WindowsBase (5)
Base\MS\Internal\ComponentModel\DependencyPropertyAttribute.cs (1)
12internal sealed class DependencyPropertyAttribute : Attribute
Base\System\ComponentModel\PropertyFilterAttribute.cs (1)
16public sealed class PropertyFilterAttribute : Attribute
Base\System\Windows\AttachedPropertyBrowsableAttribute.cs (1)
16public abstract class AttachedPropertyBrowsableAttribute : Attribute
Base\System\Windows\DesignerSerializationOptionsAttribute.cs (1)
22public sealed class DesignerSerializationOptionsAttribute : Attribute
Base\System\Windows\Media\DisableDpiAwarenessAttribute.cs (1)
28public sealed class DisableDpiAwarenessAttribute: Attribute
1158 references to Attribute
mscorlib (230)
system\attribute.cs (92)
28private static Attribute[] InternalGetCustomAttributes(PropertyInfo element, Type type, bool inherit) 32Contract.Requires(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 35Attribute[] attributes = (Attribute[])element.GetCustomAttributes(type, inherit); 44List<Attribute> attributeList = new List<Attribute>(); 60return (Attribute[])array; 136private static Attribute[] InternalGetCustomAttributes(EventInfo element, Type type, bool inherit) 140Contract.Requires(type.IsSubclassOf(typeof(Attribute)) || type == typeof(Attribute)); 143Attribute[] attributes = (Attribute[])element.GetCustomAttributes(type, inherit); 149List<Attribute> attributeList = new List<Attribute>(); 161return (Attribute[])array; 237private static Attribute[] InternalParamGetCustomAttributes(ParameterInfo param, Type type, bool inherit) 252type = typeof(Attribute); 265Attribute [] ret = null; 269ret = (Attribute[])objAttr; 300Attribute [] attributes = CreateAttributeArrayHelper(type,count); 307attributes[count] = (Attribute)objAttr[i]; 312Attribute [] temp = ret; 355if ((objAttr[i] is Attribute) && (attribUsage.Inherited)) 368private static void CopyToArrayList(List<Attribute> attributeList,Attribute[] attributes,Dictionary<Type, AttributeUsageAttribute> types) 398private static void AddAttributesToList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types) 439private static Attribute[] CreateAttributeArrayHelper(Type elementType, int elementCount) 441return (Attribute[])Array.UnsafeCreateInstance(elementType, elementCount); 450public static Attribute[] GetCustomAttributes(MemberInfo element, Type type) 455public static Attribute[] GetCustomAttributes(MemberInfo element, Type type, bool inherit) 463if (!type.IsSubclassOf(typeof(Attribute)) && type != typeof(Attribute)) 476return element.GetCustomAttributes(type, inherit) as Attribute[]; 480public static Attribute[] GetCustomAttributes(MemberInfo element) 485public static Attribute[] GetCustomAttributes(MemberInfo element, bool inherit) 494return InternalGetCustomAttributes((PropertyInfo)element, typeof(Attribute), inherit); 497return InternalGetCustomAttributes((EventInfo)element, typeof(Attribute), inherit); 500return element.GetCustomAttributes(typeof(Attribute), inherit) as Attribute[]; 518if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 536public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType) 541public static Attribute GetCustomAttribute(MemberInfo element, Type attributeType, bool inherit) 543Attribute[] attrib = GetCustomAttributes(element, attributeType, inherit); 557public static Attribute[] GetCustomAttributes(ParameterInfo element) 562public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType) 564return (Attribute[])GetCustomAttributes(element, attributeType, true); 567public static Attribute[] GetCustomAttributes(ParameterInfo element, Type attributeType, bool inherit) 575if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 585return InternalParamGetCustomAttributes(element, attributeType, inherit) as Attribute[]; 587return element.GetCustomAttributes(attributeType, inherit) as Attribute[]; 590public static Attribute[] GetCustomAttributes(ParameterInfo element, bool inherit) 602return InternalParamGetCustomAttributes(element, null, inherit) as Attribute[]; 604return element.GetCustomAttributes(typeof(Attribute), inherit) as Attribute[]; 621if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 644public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType) 649public static Attribute GetCustomAttribute(ParameterInfo element, Type attributeType, bool inherit) 653Attribute[] attrib = GetCustomAttributes(element, attributeType, inherit); 670public static Attribute[] GetCustomAttributes(Module element, Type attributeType) 675public static Attribute[] GetCustomAttributes(Module element) 680public static Attribute[] GetCustomAttributes(Module element, bool inherit) 686return (Attribute[])element.GetCustomAttributes(typeof(Attribute), inherit); 689public static Attribute[] GetCustomAttributes(Module element, Type attributeType, bool inherit) 697if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 701return (Attribute[])element.GetCustomAttributes(attributeType, inherit); 718if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 725public static Attribute GetCustomAttribute(Module element, Type attributeType) 730public static Attribute GetCustomAttribute(Module element, Type attributeType, bool inherit) 734Attribute[] attrib = GetCustomAttributes(element,attributeType,inherit); 748public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType) 753public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit) 761if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 765return (Attribute[])element.GetCustomAttributes(attributeType, inherit); 768public static Attribute[] GetCustomAttributes(Assembly element) 773public static Attribute[] GetCustomAttributes(Assembly element, bool inherit) 779return (Attribute[])element.GetCustomAttributes(typeof(Attribute), inherit); 796if (!attributeType.IsSubclassOf(typeof(Attribute)) && attributeType != typeof(Attribute)) 803public static Attribute GetCustomAttribute(Assembly element, Type attributeType) 808public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit) 812Attribute[] attrib = GetCustomAttributes(element,attributeType,inherit); 903Contract.Assert(!(thisValue is Attribute));
system\cominterfaces.cs (1)
39[TypeLibImportClassAttribute(typeof(System.Attribute))]
system\deployment\isolationinterop.cs (1)
2982GuidAttribute guidAttr = (GuidAttribute)Attribute.GetCustomAttribute(
system\diagnostics\eventing\eventsource.cs (6)
3140internal static Attribute GetCustomAttributeHelper(MemberInfo member, Type attributeType, EventManifestOptions flags = EventManifestOptions.None) 3145Attribute firstAttribute = null; 3148firstAttribute = (Attribute)attribute; 3166Attribute attr = null; 3172attr = (Attribute)Activator.CreateInstance(attributeType, new object[] { data.ConstructorArguments[0].Value }); 3176attr = (Attribute)Activator.CreateInstance(attributeType);
System\Diagnostics\Eventing\TraceLogging\Statics.cs (2)
438where AttributeType : Attribute 458where AttributeType : Attribute
system\nonserializedattribute.cs (1)
23internal static Attribute GetCustomAttribute(RuntimeFieldInfo field)
system\reflection\customattribute.cs (60)
76Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeType)target, typeof(object) as RuntimeType, true, out pcaCount); 99Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeFieldInfo)target, typeof(object) as RuntimeType, out pcaCount); 122Attribute[] a = PseudoCustomAttribute.GetCustomAttributes((RuntimeMethodInfo)target, typeof(object) as RuntimeType, true, out pcaCount); 180Attribute[] a = PseudoCustomAttribute.GetCustomAttributes(target, typeof(object) as RuntimeType, false, out pcaCount); 203Attribute[] a = PseudoCustomAttribute.GetCustomAttributes(target, typeof(object) as RuntimeType, out pcaCount); 399internal CustomAttributeData(Attribute attribute) 1341Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(type, caType, true, out pcaCount); 1442Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(method, caType, true, out pcaCount); 1484Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(ctor, caType, true, out pcaCount); 1497Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(property, caType, out pcaCount); 1516Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(e, caType, out pcaCount); 1534Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(field, caType, out pcaCount); 1547Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(parameter, caType, out pcaCount); 1560Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(assembly, caType, true, out pcaCount); 1575Attribute[] pca = PseudoCustomAttribute.GetCustomAttributes(module, caType, out pcaCount); 2163Contract.Assert(pca.BaseType == (RuntimeType)typeof(Attribute), "Pseudo CA Error"); 2180internal static Attribute[] GetCustomAttributes(RuntimeType type, RuntimeType caType, bool includeSecCa, out int count) 2187bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2189return new Attribute[0]; 2191List<Attribute> pcas = new List<Attribute>(); 2192Attribute pca = null; 2218pcas.Add((Attribute)a); 2228bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2253internal static Attribute[] GetCustomAttributes(RuntimeMethodInfo method, RuntimeType caType, bool includeSecCa, out int count) 2260bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2262return new Attribute[0]; 2264List<Attribute> pcas = new List<Attribute>(); 2265Attribute pca = null; 2285pcas.Add((Attribute)a); 2294bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2318internal static Attribute[] GetCustomAttributes(RuntimeParameterInfo parameter, RuntimeType caType, out int count) 2325bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2329Attribute[] pcas = new Attribute[s_pcasCount]; 2330Attribute pca = null; 2357bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2383internal static Attribute[] GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType, bool includeSecCa, out int count) 2387bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2390return new Attribute[0]; 2392List<Attribute> pcas = new List<Attribute>(); 2401pcas.Add((Attribute)a); 2424internal static Attribute[] GetCustomAttributes(RuntimeModule module, RuntimeType caType, out int count) 2435internal static Attribute[] GetCustomAttributes(RuntimeFieldInfo field, RuntimeType caType, out int count) 2442bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2446Attribute[] pcas = new Attribute[s_pcasCount]; 2447Attribute pca = null; 2471bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2494internal static Attribute[] GetCustomAttributes(RuntimeConstructorInfo ctor, RuntimeType caType, bool includeSecCa, out int count) 2498bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2501return new Attribute[0]; 2503List<Attribute> pcas = new List<Attribute>(); 2513pcas.Add((Attribute)a); 2522bool all = caType == (RuntimeType)typeof(object) || caType == (RuntimeType)typeof(Attribute); 2538internal static Attribute[] GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType, out int count) 2548internal static Attribute[] GetCustomAttributes(RuntimeEventInfo e, RuntimeType caType, out int count)
system\reflection\CustomAttributeExtensions.cs (54)
8public static Attribute GetCustomAttribute(this Assembly element, Type attributeType) 10return Attribute.GetCustomAttribute(element, attributeType); 12public static Attribute GetCustomAttribute(this Module element, Type attributeType) 14return Attribute.GetCustomAttribute(element, attributeType); 16public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType) 18return Attribute.GetCustomAttribute(element, attributeType); 20public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType) 22return Attribute.GetCustomAttribute(element, attributeType); 25public static T GetCustomAttribute<T>(this Assembly element) where T : Attribute 29public static T GetCustomAttribute<T>(this Module element) where T : Attribute 33public static T GetCustomAttribute<T>(this MemberInfo element) where T : Attribute 37public static T GetCustomAttribute<T>(this ParameterInfo element) where T : Attribute 42public static Attribute GetCustomAttribute(this MemberInfo element, Type attributeType, bool inherit) 44return Attribute.GetCustomAttribute(element, attributeType, inherit); 46public static Attribute GetCustomAttribute(this ParameterInfo element, Type attributeType, bool inherit) 48return Attribute.GetCustomAttribute(element, attributeType, inherit); 51public static T GetCustomAttribute<T>(this MemberInfo element, bool inherit) where T : Attribute 55public static T GetCustomAttribute<T>(this ParameterInfo element, bool inherit) where T : Attribute 62public static IEnumerable<Attribute> GetCustomAttributes(this Assembly element) 64return Attribute.GetCustomAttributes(element); 66public static IEnumerable<Attribute> GetCustomAttributes(this Module element) 68return Attribute.GetCustomAttributes(element); 70public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element) 72return Attribute.GetCustomAttributes(element); 74public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element) 76return Attribute.GetCustomAttributes(element); 79public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, bool inherit) 81return Attribute.GetCustomAttributes(element, inherit); 83public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, bool inherit) 85return Attribute.GetCustomAttributes(element, inherit); 90public static IEnumerable<Attribute> GetCustomAttributes(this Assembly element, Type attributeType) 92return Attribute.GetCustomAttributes(element, attributeType); 94public static IEnumerable<Attribute> GetCustomAttributes(this Module element, Type attributeType) 96return Attribute.GetCustomAttributes(element, attributeType); 98public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType) 100return Attribute.GetCustomAttributes(element, attributeType); 102public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType) 104return Attribute.GetCustomAttributes(element, attributeType); 107public static IEnumerable<T> GetCustomAttributes<T>(this Assembly element) where T : Attribute 111public static IEnumerable<T> GetCustomAttributes<T>(this Module element) where T : Attribute 115public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element) where T : Attribute 119public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element) where T : Attribute 124public static IEnumerable<Attribute> GetCustomAttributes(this MemberInfo element, Type attributeType, bool inherit) 126return Attribute.GetCustomAttributes(element, attributeType, inherit); 128public static IEnumerable<Attribute> GetCustomAttributes(this ParameterInfo element, Type attributeType, bool inherit) 130return Attribute.GetCustomAttributes(element, attributeType, inherit); 133public static IEnumerable<T> GetCustomAttributes<T>(this MemberInfo element, bool inherit) where T : Attribute 137public static IEnumerable<T> GetCustomAttributes<T>(this ParameterInfo element, bool inherit) where T : Attribute 146return Attribute.IsDefined(element, attributeType); 150return Attribute.IsDefined(element, attributeType); 154return Attribute.IsDefined(element, attributeType); 158return Attribute.IsDefined(element, attributeType); 163return Attribute.IsDefined(element, attributeType, inherit); 167return Attribute.IsDefined(element, attributeType, inherit);
system\runtime\interopservices\attributes.cs (11)
530internal static Attribute GetCustomAttribute(RuntimeParameterInfo parameter) 542internal static Attribute GetCustomAttribute(RuntimeFieldInfo field) 554internal static Attribute GetCustomAttribute(int token, RuntimeModule scope) 641internal static Attribute GetCustomAttribute(RuntimeType type) 675internal static Attribute GetCustomAttribute(RuntimeMethodInfo method) 697internal static Attribute GetCustomAttribute(RuntimeParameterInfo parameter) 715internal static Attribute GetCustomAttribute(RuntimeParameterInfo parameter) 733internal static Attribute GetCustomAttribute(RuntimeParameterInfo parameter) 777internal static Attribute GetCustomAttribute(RuntimeMethodInfo method) 874internal static Attribute GetCustomAttribute(RuntimeType type) 945internal static Attribute GetCustomAttribute(RuntimeFieldInfo field)
system\runtime\remoting\activationservices.cs (1)
411Object[] ca = Attribute.GetCustomAttributes(
system\serializableattribute.cs (1)
24internal static Attribute GetCustomAttribute(RuntimeType type)
PresentationCore (3)
Core\CSharp\MS\Internal\Resources\ContentFileHelper.cs (2)
46Attribute[] assemblyAttributes; 59assemblyAttributes = Attribute.GetCustomAttributes(
Core\CSharp\MS\Internal\Resources\ResourceManagerWrapper.cs (1)
200NeutralResourcesLanguageAttribute neutralLangAttr = Attribute.GetCustomAttribute(_assembly, typeof(NeutralResourcesLanguageAttribute)) as NeutralResourcesLanguageAttribute;
PresentationFramework (22)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (3)
249TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(nextElement.GetType(), typeof(TextElementEditingBehaviorAttribute)); 471TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(thisElement.ParentType, typeof(TextElementEditingBehaviorAttribute)); 1764TextElementEditingBehaviorAttribute behaviorAttribute = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(navigator.ParentType, typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\Windows\Documents\TextSchema.cs (1)
289TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(elementType, typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\windows\Documents\TextSelection.cs (1)
1492TextElementEditingBehaviorAttribute att = (TextElementEditingBehaviorAttribute)Attribute.GetCustomAttribute(element.GetType(), typeof(TextElementEditingBehaviorAttribute));
src\Framework\System\Windows\Markup\Baml2006\WpfKnownType.cs (5)
26private static Attribute[] s_EmptyAttributes; 364Attribute result; 369return new Attribute[] { result }; 373s_EmptyAttributes = new Attribute[0]; 384private bool TryGetCustomAttribute(Type attributeType, out Attribute result)
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
430private static Attribute[] _propertyAttributes = new Attribute[] { new PropertyFilterAttribute(PropertyFilterOptions.SetValues) };
src\Framework\System\Windows\Markup\Primitives\MarkupWriter.cs (2)
954foreach (Attribute attribute in property.Attributes) 1108foreach (Attribute attribute in attributes)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
2832RootNamespaceAttribute rnsa = (RootNamespaceAttribute)Attribute.GetCustomAttribute(a, typeof(RootNamespaceAttribute));
src\Framework\System\Windows\Markup\XmlnsCache.cs (6)
289private Attribute[] GetAttributes(Assembly asm, Type attrType) 291return Attribute.GetCustomAttributes(asm, attrType); 294private void GetNamespacesFromDefinitionAttr(Attribute attr, out string xmlns, out string clrns) 301private void GetNamespacesFromCompatAttr(Attribute attr, out string oldXmlns, out string newXmlns) 359Attribute[] attributes = GetAttributes(asmList[asmIdx], 392Attribute[] attributes = GetAttributes(asmList[asmIdx],
src\Framework\System\Windows\ThemeInfoAttribute.cs (1)
54return Attribute.GetCustomAttribute(assembly, typeof(ThemeInfoAttribute)) as ThemeInfoAttribute;
System (177)
compmod\system\componentmodel\ArrayConverter.cs (1)
49public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\AttributeCollection.cs (25)
47public static readonly AttributeCollection Empty = new AttributeCollection((Attribute[])null); 50private Attribute[] _attributes; 69public AttributeCollection(params Attribute[] attributes) 73attributes = new Attribute[0]; 94public static AttributeCollection FromExisting(AttributeCollection existing, params Attribute[] newAttributes) 106newAttributes = new Attribute[0]; 109Attribute[] newArray = new Attribute[existing.Count + newAttributes.Length]; 142Attribute[] attributes = null; 145attributes = new Attribute[actualCount]; 161protected virtual Attribute[] Attributes 183public virtual Attribute this[int index] 194public virtual Attribute this[Type attributeType] 244Attribute attribute = Attributes[i]; 256Attribute attribute = Attributes[i]; 274public bool Contains(Attribute attribute) 276Attribute attr = this[attribute.GetType()]; 288public bool Contains(Attribute[] attributes) 311protected Attribute GetDefaultAttribute(Type attributeType) 324return(Attribute)_defaultAttributes[attributeType]; 327Attribute attr = null; 334attr = (Attribute)field.GetValue(null); 341attr = (Attribute)ci.Invoke(new object[0]); 369public bool Matches(Attribute attribute) 385public bool Matches(Attribute[] attributes)
compmod\system\componentmodel\CollectionConverter.cs (1)
52public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\ComponentConverter.cs (1)
41public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\CustomTypeDescriptor.cs (2)
172public virtual EventDescriptorCollection GetEvents(Attribute[] attributes) 206public virtual PropertyDescriptorCollection GetProperties(Attribute[] attributes)
compmod\system\componentmodel\design\DesignerOptionService.cs (1)
509public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext cxt, object value, Attribute[] attributes) {
compmod\system\componentmodel\EnumConverter.cs (1)
266foreach (Attribute attr in field.GetCustomAttributes(typeof(BrowsableAttribute), false)) {
compmod\system\componentmodel\EventDescriptor.cs (3)
32protected EventDescriptor(string name, Attribute[] attrs) 49/// attributes in both the <see cref='System.ComponentModel.MemberDescriptor'/> and the <see cref='System.Attribute'/> 53protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs)
compmod\system\componentmodel\ExpandableObjectConverter.cs (1)
37public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\ExtendedPropertyDescriptor.cs (4)
35public ExtendedPropertyDescriptor(ReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute[] attributes) 47Attribute[] temp = new Attribute[attrList.Count]; 55public ExtendedPropertyDescriptor(PropertyDescriptor extender, Attribute[] attributes) : base(extender, attributes) {
compmod\system\componentmodel\IComNativeDescriptorHandler.cs (2)
57EventDescriptorCollection GetEvents(object component, Attribute[] attributes); 61PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
compmod\system\componentmodel\ICustomTypeDescriptor.cs (3)
27/// <para>Gets a collection of type <see cref='System.Attribute'/> with the attributes 72EventDescriptorCollection GetEvents(Attribute[] attributes); 82PropertyDescriptorCollection GetProperties(Attribute[] attributes);
compmod\system\componentmodel\LicenseManager.cs (1)
276LicenseProviderAttribute attr = (LicenseProviderAttribute)Attribute.GetCustomAttribute(type, typeof(LicenseProviderAttribute), false);
compmod\system\componentmodel\MemberDescriptor.cs (13)
23/// All attributes must derive from <see cref='System.Attribute'/>. 33private Attribute[] attributes; 34private Attribute[] originalAttributes; 60protected MemberDescriptor(string name, Attribute[] attributes) { 91this.attributes = new Attribute[descr.Attributes.Count]; 103/// in both the old <see cref='System.ComponentModel.MemberDescriptor'/> and the <see cref='System.Attribute'/> array. 106protected MemberDescriptor(MemberDescriptor oldMemberDescriptor, Attribute[] newAttributes) { 125this.attributes = new Attribute[ newArray.Count ]; 138protected virtual Attribute[] AttributeArray { 373foreach (Attribute attr in originalAttributes) { 401foreach (Attribute attr in list) { 405Attribute[] newAttributes = new Attribute[hash.Values.Count];
compmod\system\componentmodel\MultilineStringConverter.cs (1)
43public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\NullableConverter.cs (1)
153public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
compmod\system\componentmodel\PropertyDescriptor.cs (5)
44protected PropertyDescriptor(string name, Attribute[] attrs) 63/// <see cref='System.Attribute'/> array. 66protected PropertyDescriptor(MemberDescriptor descr, Attribute[] attrs) 253public PropertyDescriptorCollection GetChildProperties(Attribute[] filter) { 267public virtual PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter) {
compmod\system\componentmodel\ReflectEventDescriptor.cs (11)
86Attribute[] attributes) 100: base(eventInfo.Name, new Attribute[0]) { 113public ReflectEventDescriptor(Type componentType, EventDescriptor oldReflectEventDescriptor, Attribute[] attributes) 285Attribute[][] attributeStack = new Attribute[depth][]; 307foreach(Attribute[] attributeArray in attributeStack) { 310foreach(Attribute attr in attributeArray) { 396Attribute[][] attributeStack = new Attribute[depth][]; 417foreach(Attribute[] attributeArray in attributeStack) { 420foreach(Attribute attr in attributeArray) {
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (16)
99Attribute[] attributes) 126public ReflectPropertyDescriptor(Type componentClass, string name, Type type, PropertyInfo propInfo, MethodInfo getMethod, MethodInfo setMethod, Attribute[] attrs) : this(componentClass, name, type, attrs) { 139public ReflectPropertyDescriptor(Type componentClass, string name, Type type, Type receiverType, MethodInfo getMethod, MethodInfo setMethod, Attribute[] attrs) : this(componentClass, name, type, attrs) { 150public ReflectPropertyDescriptor(Type componentClass, PropertyDescriptor oldReflectPropertyDescriptor, Attribute[] attributes) 181foreach(Attribute a in attributes) { 246Attribute a = Attributes[typeof(AmbientValueAttribute)]; 319Attribute a = Attributes[typeof(DefaultValueAttribute)]; 793foreach (Attribute typeAttr in TypeDescriptor.GetAttributes(PropertyType)) { 820Attribute[][] attributeStack = new Attribute[depth][]; 849foreach(Attribute[] attributeArray in attributeStack) 853foreach(Attribute attr in attributeArray) { 861Attribute[] stAttrs = null; 874foreach(Attribute stAttr in stAttrs) 888foreach(Attribute[] attributeArray in attributeStack) { 891foreach(Attribute attr in attributeArray) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (23)
916private static Attribute[] ReflectGetAttributes(Type type) 929Attribute[] attrs = (Attribute[])_attributeCache[type]; 937attrs = (Attribute[])_attributeCache[type]; 944object[] typeAttrs = type.GetCustomAttributes(typeof(Attribute), false); 946attrs = new Attribute[typeAttrs.Length]; 960internal static Attribute[] ReflectGetAttributes(MemberInfo member) 973Attribute[] attrs = (Attribute[])_attributeCache[member]; 981attrs = (Attribute[])_attributeCache[member]; 986object[] memberAttrs = member.GetCustomAttributes(typeof(Attribute), false); 987attrs = new Attribute[memberAttrs.Length]; 1140foreach(Attribute attr in attributes) 1180Attribute[] attrs = null; 1184attrs = new Attribute[] {DesignOnlyAttribute.Yes}; 1510Attribute[] attrArray = ReflectTypeDescriptionProvider.ReflectGetAttributes(_type); 1515Attribute[] baseArray = ReflectTypeDescriptionProvider.ReflectGetAttributes(baseType); 1516Attribute[] temp = new Attribute[attrArray.Length + baseArray.Length]; 1540Attribute[] temp = new Attribute[attrArray.Length + ifaceAttrs.Count]; 1572attrArray = new Attribute[attrDictionary.Count]; 1858foreach(Attribute attr in attributes)
compmod\system\componentmodel\TypeConverter.cs (4)
308return GetProperties(context, value, new Attribute[] {BrowsableAttribute.Yes}); 316public virtual PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { 456protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType) : this(componentType, name, propertyType, new Attribute[0]) { 464protected SimplePropertyDescriptor(Type componentType, string name, Type propertyType, Attribute[] attributes) : base(name, attributes) {
compmod\system\componentmodel\TypeDescriptor.cs (51)
207public static TypeDescriptionProvider AddAttributes(Type type, params Attribute[] attributes) { 235public static TypeDescriptionProvider AddAttributes(object instance, params Attribute[] attributes) { 631public static EventDescriptor CreateEvent(Type componentType, string name, Type type, params Attribute[] attributes) 641public static EventDescriptor CreateEvent(Type componentType, EventDescriptor oldEventDescriptor, params Attribute[] attributes) 693public static PropertyDescriptor CreateProperty(Type componentType, string name, Type type, params Attribute[] attributes) 703public static PropertyDescriptor CreateProperty(Type componentType, PropertyDescriptor oldPropertyDescriptor, params Attribute[] attributes) 993private static void DebugValidate(EventDescriptorCollection events, Type type, Attribute[] attributes) 1032private static void DebugValidate(EventDescriptorCollection events, object instance, Attribute[] attributes, bool noCustomTypeDesc) 1071private static void DebugValidate(PropertyDescriptorCollection properties, Type type, Attribute[] attributes) 1155private static void DebugValidate(PropertyDescriptorCollection properties, object instance, Attribute[] attributes, bool noCustomTypeDesc) 1240private static ArrayList FilterMembers(IList members, Attribute[] attributes) { 1372return new AttributeCollection((Attribute[])null); 1397return new AttributeCollection((Attribute[])null); 1467Attribute[] attrArray = new Attribute[results.Count]; 1740public static EventDescriptorCollection GetEvents(Type componentType, Attribute[] attributes) 1782public static EventDescriptorCollection GetEvents(object component, Attribute[] attributes) 1792public static EventDescriptorCollection GetEvents(object component, Attribute[] attributes, bool noCustomTypeDesc) 1961public static PropertyDescriptorCollection GetProperties(Type componentType, Attribute[] attributes) 2004public static PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) 2014public static PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes, bool noCustomTypeDesc) { 2023private static PropertyDescriptorCollection GetPropertiesImpl(object component, Attribute[] attributes, bool noCustomTypeDesc, bool noAttributes) { 2414private static ICollection PipelineAttributeFilter(int pipelineType, ICollection members, Attribute[] filter, object instance, IDictionary cache) 2539foreach(Attribute attr in members) 2637Attribute[] attrArray = new Attribute[list.Count]; 2644throw new ArgumentException(SR.GetString(SR.TypeDescriptorExpectedElementType, typeof(Attribute).FullName)); 2804Attribute[] attrArray = new Attribute[list.Count]; 3298private static bool ShouldHideMember(MemberDescriptor member, Attribute attribute) 3305Attribute memberAttribute = member.Attributes[attribute.GetType()]; 3345Attribute[] _attrs; 3350internal AttributeProvider(TypeDescriptionProvider existingProvider, params Attribute[] attrs) : base(existingProvider) 3368Attribute[] _attributeArray; 3374internal AttributeTypeDescriptor(Attribute[] attrs, ICustomTypeDescriptor parent) : base(parent) 3387Attribute[] finalAttr = null; 3389Attribute[] newAttrs = _attributeArray; 3390Attribute[] newArray = new Attribute[existing.Count + newAttrs.Length]; 3422finalAttr = new Attribute[actualCount]; 3578EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 3594PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 3616private Attribute[] _filter; 3619internal AttributeFilterCacheItem(Attribute[] filter, ICollection filteredMembers) 3625internal bool IsValid(Attribute[] filter) 3831EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 3861PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 4250EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 4301PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 4581EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 4633PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
sys\system\configuration\ApplicationSettingsBase.cs (6)
417Attribute attr = attributes[i] as Attribute; 540Attribute attr = _classAttributes[i] as Attribute; 715Attribute attr; 720attr = attributes[j] as Attribute;
System.Activities (27)
System\Activities\Activity.cs (1)
1680Attribute attribute = propertyAttributes[i];
System\Activities\ActivityBuilder.cs (6)
27Collection<Attribute> attributes; 40public Collection<Attribute> Attributes 46this.attributes = new Collection<Attribute>(); 293Collection<Attribute> attributes; 306public Collection<Attribute> Attributes 312this.attributes = new Collection<Attribute>();
System\Activities\DynamicActivity.cs (10)
24Collection<Attribute> attributes; 45public Collection<Attribute> Attributes 51this.attributes = new Collection<Attribute>(); 181EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 196PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 212Collection<Attribute> attributes; 233public Collection<Attribute> Attributes 239this.attributes = new Collection<Attribute>(); 369EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 384PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
System\Activities\DynamicActivityProperty.cs (3)
15Collection<Attribute> attributes; 21public Collection<Attribute> Attributes 27this.attributes = new Collection<Attribute>();
System\Activities\DynamicActivityTypeDescriptor.cs (5)
77public EventDescriptorCollection GetEvents(Attribute[] attributes) 92public PropertyDescriptorCollection GetProperties(Attribute[] attributes) 172Collection<Attribute> propertyAttributes = this.activityProperty.Attributes; 173Attribute[] totalAttributes = new Attribute[inheritedAttributes.Count + propertyAttributes.Count + 1];
System\Activities\DynamicUpdate\DynamicUpdateServices.cs (1)
229foreach (Attribute attrib in activityDefinition.Attributes)
System\Activities\WorkflowDataContext.cs (1)
203: base(reference.Name, new Attribute[0])
System.Activities.Presentation (93)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityBuilderExtensions.cs (1)
31foreach (Attribute attribute in activityBuilder.Attributes)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (1)
16where TAttribute : Attribute
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeInfo.cs (1)
13internal abstract class AttributeInfo<TAttribute> where TAttribute : Attribute
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeXamlType.cs (1)
13where TAttribute : Attribute
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (2)
40Fx.Assert(flagType == null || Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should be null or have flags attribute"); 113Fx.Assert(Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should have flags attribute");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
30Fx.Assert(Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should have flags attribute");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (9)
850public static T GetAttribute<T>(ModelProperty property) where T : Attribute 855public static T GetAttribute<T>(ModelItem item) where T : Attribute 860public static T GetAttribute<T>(Type type) where T : Attribute 865public static IEnumerable<T> GetAttributes<T>(ModelProperty property) where T : Attribute 870public static IEnumerable<T> GetAttributes<T>(Type type) where T : Attribute 877public static T GetAttribute<T>(AttributeCollection attributes) where T : Attribute 882foreach (Attribute attribute in attributes) 896private static IEnumerable<T> GetAttributes<T>(AttributeCollection attributes) where T : Attribute 900foreach (Attribute attribute in attributes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (1)
477foreach (Attribute attribute in attributes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
34foreach (Attribute attribute in attributes) 99foreach (Attribute attribute in attributes)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeCallbackBuilder.cs (5)
51public void AddCustomAttributes(params Attribute[] attributes) { 68public void AddCustomAttributes(MemberDescriptor descriptor, params Attribute[] attributes) { 89public void AddCustomAttributes(MemberInfo member, params Attribute[] attributes) { 113public void AddCustomAttributes(string memberName, params Attribute[] attributes) { 134public void AddCustomAttributes(DependencyProperty dp, params Attribute[] attributes) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTableBuilder.cs (5)
83public void AddCustomAttributes(Type type, params Attribute[] attributes) { 109public void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, params Attribute[] attributes) { 139public void AddCustomAttributes(Type ownerType, MemberInfo member, params Attribute[] attributes) { 170public void AddCustomAttributes(Type ownerType, string memberName, params Attribute[] attributes) { 196public void AddCustomAttributes(Type ownerType, DependencyProperty dp, params Attribute[] attributes) {
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (21)
206private static AttributeCollection CreateAttributeCollection(Attribute[] attrArray) 208Dictionary<object, Attribute> dict = new Dictionary<object, Attribute>(attrArray.Length); 217Attribute a = attrArray[idx]; 229Attribute[] finalArray; 233finalArray = new Attribute[finalCount]; 286private static Attribute[] GetRawAttributes(Type objectType, string member, MemberDescriptor parentDescriptor, bool isEvent) 306Attribute[] attrArray = new Attribute[attrs.Count]; 320Attribute[] attributes; 356attributes = new Attribute[0]; 361Object[] attrs = reflectMember.GetCustomAttributes(typeof(Attribute), true); 379attrs = reflectType.GetCustomAttributes(typeof(Attribute), true); 396attrs = iface.GetCustomAttributes(typeof(Attribute), false); 428attrList.AddRange(reflectMember.GetCustomAttributes(typeof(Attribute), true)); 433attributes = new Attribute[attrList.Count]; 437attributes[idx] = (Attribute)attrList[idx]; 740EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 756PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 784private Attribute[] _rawAttributes; 1013Attribute[] attrs = MetadataStoreProvider.GetRawAttributes(_objectType, Name, _parent, true);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (9)
182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray()); 285public EventDescriptorCollection GetEvents(Attribute[] attributes) 295public PropertyDescriptorCollection GetProperties(Attribute[] attributes) 318PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 494PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 508PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 522PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 538PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 720public Attribute[] PropertyAttributes { get; set; }
System.Activities.Presentation\System\Activities\Presentation\EditorOptionAttribute.cs (1)
32foreach (Attribute attribute in attributes)
System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (3)
30List<Attribute> attributeList = new List<Attribute>(); 31foreach (Attribute attr in TypeDescriptor.GetAttributes(this.PropertyType))
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
1243EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 1255PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
366EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 378PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
76public override PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1218public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeConverter.cs (1)
115public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
181public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (11)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 851PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 859PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 866PropertyAttributes = TypeDescriptor.GetAttributes(typeof(bool)).OfType<Attribute>().Union( 867new Attribute[] 887PropertyAttributes = new Attribute[] { BrowsableAttribute.No },
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (10)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1060PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 1069PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(), 1096PropertyAttributes = new Attribute[] { BrowsableAttribute.No },
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
125internal static T GetAttribute<T>(Type type) where T : Attribute
System.AddIn (1)
System\Addin\Hosting\Utils.cs (1)
52System.Diagnostics.Contracts.Contract.Requires(typeof(Attribute).IsAssignableFrom(attributeType));
System.ComponentModel.DataAnnotations (27)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (12)
31public override PropertyDescriptorCollection GetProperties(Attribute[] attributes) { 47Attribute[] newMetadata = TypeDescriptorCache.GetAssociatedMetadata(AssociatedMetadataType, propDescriptor.Name); 74Attribute[] newAttributes = TypeDescriptor.GetAttributes(AssociatedMetadataType).OfType<Attribute>().ToArray(); 81private static readonly Attribute[] emptyAttributes = new Attribute[0]; 86private static readonly ConcurrentDictionary<Tuple<Type, string>, Attribute[]> _typeMemberCache = new ConcurrentDictionary<Tuple<Type, string>, Attribute[]>(); 106MetadataTypeAttribute attribute = (MetadataTypeAttribute)Attribute.GetCustomAttribute(type, typeof(MetadataTypeAttribute)); 136public static Attribute[] GetAssociatedMetadata(Type type, string memberName) { 138Attribute[] attributes; 150attributes = Attribute.GetCustomAttributes(matchingMember, true /* inherit */);
DataAnnotations\CompareAttribute.cs (2)
61IEnumerable<Attribute> attributes = property.Attributes.Cast<Attribute>();
DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
12public MetadataPropertyDescriptorWrapper(PropertyDescriptor descriptor, Attribute[] newAttributes)
DataAnnotations\ValidationAttributeStore.cs (12)
117IEnumerable<Attribute> attributes = 121TypeDescriptor.GetAttributes(type).Cast<Attribute>(); 148internal StoreItem(IEnumerable<Attribute> attributes) { 170internal TypeStoreItem(Type type, IEnumerable<Attribute> attributes) 213PropertyStoreItem item = new PropertyStoreItem(property.PropertyType, GetExplicitAttributes(property).Cast<Attribute>()); 232List<Attribute> attributes = new List<Attribute>(propertyDescriptor.Attributes.Cast<Attribute>()); 233IEnumerable<Attribute> typeAttributes = TypeDescriptor.GetAttributes(propertyDescriptor.PropertyType).Cast<Attribute>(); 235foreach (Attribute attr in typeAttributes) { 256internal PropertyStoreItem(Type propertyType, IEnumerable<Attribute> attributes)
System.Configuration (9)
System\Configuration\ConfigurationElement.cs (5)
742Attribute.GetCustomAttribute(propertyInformation, 751Attribute.GetCustomAttribute(propertyInformation, 757Attribute.GetCustomAttribute(propertyType, 815ConfigurationValidatorAttribute attribValidator = Attribute.GetCustomAttribute(type, typeof(ConfigurationValidatorAttribute)) as ConfigurationValidatorAttribute; 845Attribute.GetCustomAttribute(propertyInformation,
System\Configuration\ConfigurationProperty.cs (4)
96foreach (Attribute attribute in Attribute.GetCustomAttributes(info)) { 131Attribute.GetCustomAttribute(info, 137Attribute.GetCustomAttribute(propertyType,
System.Core (3)
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
521if (Attribute.GetCustomAttribute(node.Method, typeof(ExtensionAttribute)) != null) {
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
127Attribute dispIdAttribute = Attribute.GetCustomAttribute(methodInfo, typeof(DispIdAttribute));
System.Data (132)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ActivityBuilderExtensions.cs (1)
31foreach (Attribute attribute in activityBuilder.Attributes)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeConverter.cs (1)
16where TAttribute : Attribute
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeInfo.cs (1)
13internal abstract class AttributeInfo<TAttribute> where TAttribute : Attribute
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\AttributeXamlType.cs (1)
13where TAttribute : Attribute
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (2)
40Fx.Assert(flagType == null || Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should be null or have flags attribute"); 113Fx.Assert(Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should have flags attribute");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
30Fx.Assert(Attribute.IsDefined(flagType, typeof(FlagsAttribute)), "FlagType should have flags attribute");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (9)
850public static T GetAttribute<T>(ModelProperty property) where T : Attribute 855public static T GetAttribute<T>(ModelItem item) where T : Attribute 860public static T GetAttribute<T>(Type type) where T : Attribute 865public static IEnumerable<T> GetAttributes<T>(ModelProperty property) where T : Attribute 870public static IEnumerable<T> GetAttributes<T>(Type type) where T : Attribute 877public static T GetAttribute<T>(AttributeCollection attributes) where T : Attribute 882foreach (Attribute attribute in attributes) 896private static IEnumerable<T> GetAttributes<T>(AttributeCollection attributes) where T : Attribute 900foreach (Attribute attribute in attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryContainer.xaml.cs (1)
477foreach (Attribute attribute in attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\ExtensibilityMetadataHelper.cs (2)
34foreach (Attribute attribute in attributes) 99foreach (Attribute attribute in attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeCallbackBuilder.cs (5)
51public void AddCustomAttributes(params Attribute[] attributes) { 68public void AddCustomAttributes(MemberDescriptor descriptor, params Attribute[] attributes) { 89public void AddCustomAttributes(MemberInfo member, params Attribute[] attributes) { 113public void AddCustomAttributes(string memberName, params Attribute[] attributes) { 134public void AddCustomAttributes(DependencyProperty dp, params Attribute[] attributes) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\AttributeTableBuilder.cs (5)
83public void AddCustomAttributes(Type type, params Attribute[] attributes) { 109public void AddCustomAttributes(Type ownerType, MemberDescriptor descriptor, params Attribute[] attributes) { 139public void AddCustomAttributes(Type ownerType, MemberInfo member, params Attribute[] attributes) { 170public void AddCustomAttributes(Type ownerType, string memberName, params Attribute[] attributes) { 196public void AddCustomAttributes(Type ownerType, DependencyProperty dp, params Attribute[] attributes) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (21)
206private static AttributeCollection CreateAttributeCollection(Attribute[] attrArray) 208Dictionary<object, Attribute> dict = new Dictionary<object, Attribute>(attrArray.Length); 217Attribute a = attrArray[idx]; 229Attribute[] finalArray; 233finalArray = new Attribute[finalCount]; 286private static Attribute[] GetRawAttributes(Type objectType, string member, MemberDescriptor parentDescriptor, bool isEvent) 306Attribute[] attrArray = new Attribute[attrs.Count]; 320Attribute[] attributes; 356attributes = new Attribute[0]; 361Object[] attrs = reflectMember.GetCustomAttributes(typeof(Attribute), true); 379attrs = reflectType.GetCustomAttributes(typeof(Attribute), true); 396attrs = iface.GetCustomAttributes(typeof(Attribute), false); 428attrList.AddRange(reflectMember.GetCustomAttributes(typeof(Attribute), true)); 433attributes = new Attribute[attrList.Count]; 437attributes[idx] = (Attribute)attrList[idx]; 740EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 756PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 784private Attribute[] _rawAttributes; 1013Attribute[] attrs = MetadataStoreProvider.GetRawAttributes(_objectType, Name, _parent, true);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (9)
182return new AttributeCollection(this.GetType().GetCustomAttributes(false).OfType<Attribute>().ToArray()); 285public EventDescriptorCollection GetEvents(Attribute[] attributes) 295public PropertyDescriptorCollection GetProperties(Attribute[] attributes) 318PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 494PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 508PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 522PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 538PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 720public Attribute[] PropertyAttributes { get; set; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\EditorOptionAttribute.cs (1)
32foreach (Attribute attribute in attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\AttachedPropertyDescriptor.cs (3)
30List<Attribute> attributeList = new List<Attribute>(); 31foreach (Attribute attr in TypeDescriptor.GetAttributes(this.PropertyType))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
1243EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 1255PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemImpl.cs (2)
366EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 378PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelPropertyDescriptor.cs (1)
76public override PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1218public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeConverter.cs (1)
115public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (1)
181public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (11)
803PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 815PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 827PropertyAttributes = TypeDescriptor.GetAttributes(typeof(PropertyKind)).OfType<Attribute>().Union( new Attribute[] { new EditorAttribute(typeof(DirectionPropertyEditor), typeof(PropertyValueEditor)) }).ToArray(), 839PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(PropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 851PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 859PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 866PropertyAttributes = TypeDescriptor.GetAttributes(typeof(bool)).OfType<Attribute>().Union( 867new Attribute[] 887PropertyAttributes = new Attribute[] { BrowsableAttribute.No },
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (10)
1012PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VBIdentifierName)).OfType<Attribute>().ToArray(), 1024PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Type)).OfType<Attribute>().ToArray(), 1036PropertyAttributes = TypeDescriptor.GetAttributes(typeof(ModelItem)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(ScopeValueEditor), typeof(PropertyValueEditor)) }).ToArray(), 1048PropertyAttributes = TypeDescriptor.GetAttributes(typeof(Activity)).OfType<Attribute>().Union(new Attribute[] { new EditorAttribute(typeof(DesignObjectWrapperDynamicPropertyEditor), typeof(DialogPropertyValueEditor)), new EditorReuseAttribute(false) }).ToArray(), 1060PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 1069PropertyAttributes = new Attribute[] { BrowsableAttribute.No }, 1081PropertyAttributes = TypeDescriptor.GetAttributes(typeof(VariableModifiers)).OfType<Attribute>().ToArray(), 1096PropertyAttributes = new Attribute[] { BrowsableAttribute.No },
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
125internal static T GetAttribute<T>(Type type) where T : Attribute
fx\src\data\System\Data\Common\DataRecordInternal.cs (3)
287return new AttributeCollection((Attribute[])null); 320EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 328PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (12)
329internal Attribute[] GetAttributesFromCollection(AttributeCollection collection) { 330Attribute[] attributes = new Attribute[collection.Count]; 363Attribute[] attributes; 413Attribute[] useAttributes = attributes; 416useAttributes = new Attribute[] { 424attributes = new Attribute[] { 443private PropertyDescriptorCollection GetProperties(Attribute[] attributes) { 460foreach (Attribute attribute in attributes) { 461Attribute attr = property.Attributes[attribute.GetType()]; 503PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) { 512EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) {
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (1)
67internal DbConnectionStringBuilderDescriptor(string propertyName, Type componentType, Type propertyType, bool isReadOnly, Attribute[] attributes) : base(propertyName, attributes) {
fx\src\data\System\Data\Common\dbdatarecord.cs (3)
88return new AttributeCollection((Attribute[])null); 121EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 129PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (2)
26Attribute[] attrs = new Attribute[base.Attributes.Count + 1];
fx\src\data\System\Data\DataRowView.cs (3)
260return new AttributeCollection((Attribute[])null); 291EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 299PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
fx\src\data\System\Data\DataTable.cs (1)
4394internal PropertyDescriptorCollection GetPropertyDescriptorCollection(Attribute[] attributes) {
fx\src\data\System\Data\DataViewManagerListItemTypeDescriptor.cs (3)
40return new AttributeCollection((Attribute[])null); 105EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 126PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (10)
493Attribute[] attributes; 507attributes = new Attribute[] { 515attributes = new Attribute[] { 523attributes = new Attribute[] { 533attributes = new Attribute[] { 546attributes = new Attribute[] { 561attributes = new Attribute[] { 569attributes = new Attribute[] { 577attributes = new Attribute[] { 586attributes = new Attribute[] {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (1)
1024Attribute[] attributes = GetAttributesFromCollection(reflected.Attributes);
System.Data.Entity (5)
System\Data\Common\DataRecord.cs (5)
439public Attribute[] Attributes; 442public bool IsValid(Attribute[] other) 509PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 533Attribute[] attrArray = new Attribute[atts.Length];
System.Data.Linq (8)
Mapping\AttributedMetaModel.cs (7)
201return Attribute.GetCustomAttribute(mi, typeof(FunctionAttribute), false) != null; 877this.functionAttrib = Attribute.GetCustomAttribute(mi, typeof(FunctionAttribute), false) as FunctionAttribute; 881ResultTypeAttribute[] attrs = (ResultTypeAttribute[])Attribute.GetCustomAttributes(mi, typeof(ResultTypeAttribute)); 980this.paramAttrib = Attribute.GetCustomAttribute(parameterInfo, typeof(ParameterAttribute), false) as ParameterAttribute; 1036this.attrColumn = (ColumnAttribute)Attribute.GetCustomAttribute(mi, typeof(ColumnAttribute)); 1037this.attrAssoc = (AssociationAttribute)Attribute.GetCustomAttribute(mi, typeof(AssociationAttribute)); 1364AssociationAttribute oattr = (AssociationAttribute)Attribute.GetCustomAttribute(omm.Member, typeof(AssociationAttribute));
SqlClient\Query\Funcletizer.cs (1)
134|| Attribute.IsDefined(m.Method, typeof(FunctionAttribute));
System.Drawing (7)
commonui\System\Drawing\Advanced\SizeFConverter.cs (1)
169public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
commonui\System\Drawing\Design\ToolboxItem.cs (1)
767foreach (Attribute a in TypeDescriptor.GetAttributes(type)) {
commonui\System\Drawing\FontConverter.cs (1)
435public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
commonui\System\Drawing\ImageConverter.cs (1)
259public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
commonui\System\Drawing\PointConverter.cs (1)
187public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
commonui\System\Drawing\RectangleConverter.cs (1)
193public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
commonui\System\Drawing\SizeConverter.cs (1)
185public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
System.Management (1)
Instrumentation\MetaDataInfo.cs (1)
109Guid guidIMetaDataImport = new Guid(((GuidAttribute)Attribute.GetCustomAttribute(typeof(IMetaDataImportInternalOnly), typeof(GuidAttribute), false)).Value);
System.ServiceModel (12)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
12where T : Attribute
System\ServiceModel\Description\OperationGenerator.cs (7)
87internal static CodeAttributeDeclaration GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute) 856where T : Attribute 984where T : Attribute 989internal static CodeAttributeDeclaration GenerateAttributeDeclaration(ServiceContractGenerator generator, Attribute attribute) 992Attribute defaultAttribute = (Attribute)Activator.CreateInstance(attributeType); 1004if (member.DeclaringType == typeof(Attribute))
System\ServiceModel\Description\TypedMessageConverter.cs (1)
63static OperationFormatter GetOperationFormatter(Type t, Attribute formatAttribute, string defaultNS, string action)
System\ServiceModel\Description\TypeLoader.cs (3)
294Attribute formattingAttribute = GetFormattingAttribute(opMethod, 758internal static Attribute GetFormattingAttribute(ICustomAttributeProvider attrProvider, Attribute defaultFormatAttribute)
System.ServiceModel.Internals (3)
System\Runtime\TypeHelper.cs (3)
597public static bool ShouldFilterProperty(PropertyDescriptor property, Attribute[] attributes) 606Attribute filterAttribute = attributes[i]; 607Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()];
System.Web (45)
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
273UrlPropertyAttribute urlAttrib = Attribute.GetCustomAttribute(pse.PropertyInfo, typeof(UrlPropertyAttribute)) as UrlPropertyAttribute;
ModelBinding\AssociatedMetadataProvider.cs (8)
13private static void ApplyMetadataAwareAttributes(IEnumerable<Attribute> attributes, ModelMetadata result) { 19protected abstract ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName); 21protected virtual IEnumerable<Attribute> FilterAttributes(Type containerType, PropertyDescriptor propertyDescriptor, IEnumerable<Attribute> attributes) { 62IEnumerable<Attribute> attributes = FilterAttributes(containerType, propertyDescriptor, propertyDescriptor.Attributes.Cast<Attribute>()); 73IEnumerable<Attribute> attributes = GetTypeDescriptor(modelType).GetAttributes().Cast<Attribute>();
ModelBinding\AssociatedValidatorProvider.cs (3)
28protected abstract IEnumerable<ModelValidator> GetValidators(ModelMetadata metadata, ModelBindingExecutionContext context, IEnumerable<Attribute> attributes); 42return GetValidators(metadata, context, property.Attributes.OfType<Attribute>()); 46return GetValidators(metadata, context, GetTypeDescriptor(metadata.ModelType).GetAttributes().Cast<Attribute>());
ModelBinding\DataAnnotationsModelMetadataProvider.cs (3)
11protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) { 12List<Attribute> attributeList = new List<Attribute>(attributes);
ModelBinding\DataAnnotationsModelValidatorProvider.cs (1)
79protected override IEnumerable<ModelValidator> GetValidators(ModelMetadata metadata, ModelBindingExecutionContext context, IEnumerable<Attribute> attributes) {
ModelBinding\EmptyModelMetadataProvider.cs (1)
6protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) {
Profile\HttpProfileBase.cs (3)
423Attribute[] attribs = Attribute.GetCustomAttributes(prop, true); 425foreach (Attribute attrib in attribs) {
UI\ControlBuilder.cs (3)
1168TemplateContainerAttribute templateAttrib = (TemplateContainerAttribute)Attribute.GetCustomAttribute(propInfo, typeof(TemplateContainerAttribute), false); 1744IgnoreUnknownContentAttribute attr = (IgnoreUnknownContentAttribute)Attribute.GetCustomAttribute(pInfo, typeof(IgnoreUnknownContentAttribute), true); 1777PersistenceModeAttribute persistenceAttr = (PersistenceModeAttribute)Attribute.GetCustomAttribute(pInfo, typeof(PersistenceModeAttribute), true);
UI\ThemeableAttribute.cs (1)
100ThemeableAttribute attr = Attribute.GetCustomAttribute(type, typeof(ThemeableAttribute)) as ThemeableAttribute;
UI\WebControls\ErrorStyle.cs (2)
55EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 63PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
UI\WebControls\ErrorTableItemStyle.cs (2)
53EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 61PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
UI\WebControls\ObjectDataSourceView.cs (1)
1519DataObjectMethodAttribute attr = Attribute.GetCustomAttribute(mi, typeof(DataObjectMethodAttribute), true) as DataObjectMethodAttribute;
UI\WebControls\SubMenuStyle.cs (4)
262 EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 270 PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) { 277 Attribute[] newAttributes = new Attribute[] {
UI\WebControls\XmlDataSourceNodeDescriptor.cs (2)
72EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attrs) { 80PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attrFilter) {
UI\WebControls\XmlHierarchyData.cs (2)
161EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attrs) { 169PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attrFilter) {
UI\WebParts\PersonalizableTypeEntry.cs (1)
75PersonalizableAttribute pa = Attribute.GetCustomAttribute(pi,
UI\WebParts\PropertyGridEditorPart.cs (2)
32private static readonly Attribute[] FilterAttributes = 33new Attribute[] { WebBrowsableAttribute.Yes };
UI\WebParts\WebPartManager.cs (3)
3019UrlPropertyAttribute urlAttr = Attribute.GetCustomAttribute(pi, typeof(UrlPropertyAttribute), true) as UrlPropertyAttribute; 3048TypeConverterAttribute attr = Attribute.GetCustomAttribute(pi, typeof(TypeConverterAttribute), true) as TypeConverterAttribute; 4232Attribute.GetCustomAttribute(propertyInfo, typeof(TypeConverterAttribute), true) as TypeConverterAttribute;
UI\WebParts\WebPartMenuStyle.cs (2)
172EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 180PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) {
System.Web.DataVisualization (9)
Common\Converters\CustomAttributesConverters.cs (9)
182 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object obj, Attribute[] attributes) 201 Attribute[] propAttributes = GetPropertyAttributes(attrInfo); 217 Attribute[] propUserDefinedAttributes = new Attribute[] { 390 private Attribute[] GetPropertyAttributes(CustomPropertyInfo attrInfo) 421 Attribute[] propAttributes = new Attribute[propList.Count]; 422 foreach(Attribute attr in propList) 510 Attribute[] attributes,
System.Web.DynamicData (12)
DynamicData\DynamicValidator.cs (1)
151foreach (var attrib in Column.Attributes.Cast<Attribute>().OfType<ValidationAttribute>()) {
DynamicData\MetaColumn.cs (1)
651private string GetHint<T>(Func<T, string> presentationLayerPropertyAccessor, Func<T, string> hintPropertyAccessor) where T : Attribute {
DynamicData\ModelProviders\ColumnProvider.cs (2)
54List<Attribute> extraAttributes = new List<Attribute>();
DynamicData\ModelProviders\DLinqColumnProvider.cs (3)
39List<Attribute> newAttributes = new List<Attribute>(); 42foreach (Attribute attr in base.Attributes) {
DynamicData\Util\AttributeExtensions.cs (5)
13internal static TAttribute FirstOrDefault<TAttribute>(this System.ComponentModel.AttributeCollection attributes) where TAttribute : Attribute { 19where TAttribute : Attribute { 25where TAttribute : Attribute { 42where TAttribute : Attribute { 57where TAttribute : Attribute {
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceWrapper.cs (2)
86EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { return null; } 94PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
System\Data\WebControls\EntityDataSourceWrapperPropertyDescriptor.cs (1)
41: base(EntityDataSourceUtil.CheckArgumentNull(column, "column").DisplayName, new Attribute[] { })
System.Web.Extensions (2)
Script\Serialization\JavaScriptSerializer.cs (1)
298ScriptIgnoreAttribute scriptIgnoreAttr = (ScriptIgnoreAttribute)Attribute.GetCustomAttribute(memberInfo, typeof(ScriptIgnoreAttribute), inherit: true);
UI\AssemblyCache.cs (1)
90foreach (Attribute attribute in attributeProvider.GetCustomAttributes(inherit: false)) {
System.Web.Mobile (16)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (4)
157Attribute[] attributeArray) 178Attribute newAttribute) 190Attribute[] attrs = new Attribute[runtimeAttributes.Count + 1];
UI\MobileControls\Design\FormDesigner.cs (2)
37private static readonly Attribute[] _emptyAttrs = new Attribute[0];
UI\MobileControls\Design\ListDesigner.cs (2)
57private static readonly Attribute[] _emptyAttrs = new Attribute[0];
UI\MobileControls\Design\MobileControlPersister.cs (2)
494new Attribute[] { 500new Attribute[] {
UI\MobileControls\Design\ObjectListDesigner.cs (2)
58private static readonly Attribute[] _emptyAttrs = new Attribute[0];
UI\MobileControls\Design\PropertyOverridesDialog.cs (2)
1124EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 1139PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
UI\MobileControls\Design\SelectionListDesigner.cs (2)
38private static readonly Attribute[] _emptyAttrs = new Attribute[0];
System.Windows.Forms (105)
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (1)
2998GuidAttribute guidAttr = (GuidAttribute)Attribute.GetCustomAttribute(
winforms\Managed\System\WinForms\AxHost.cs (12)
209private Attribute[] attribsStash = null; 2814EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) { 2841private PropertyDescriptorCollection FillProperties(Attribute[] attributes) { 2855foreach(Attribute attrib in attributes) { 2935Attribute browse = null; 2936foreach(Attribute attr in attributes) { 2947Attribute attr = prop.Attributes[typeof(BrowsableAttribute)]; 2993PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) { 7055private void AddAttribute(Attribute attr) { 7174foreach(Attribute attr in updateAttrs) { 7178Attribute[] temp = new Attribute[attributes.Count];
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
156return TypeDescriptor.GetProperties(itemProps[i].PropertyType, new Attribute[] {new BrowsableAttribute(true)}); 176itemProps = TypeDescriptor.GetProperties(props[i].PropertyType, new Attribute[] {new BrowsableAttribute(true)});
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
23public Com2AboutBoxPropertyDescriptor() : base(NativeMethods.ActiveX.DISPID_ABOUTBOX, "About", new Attribute[]{new DispIdAttribute(NativeMethods.ActiveX.DISPID_ABOUTBOX),
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ExtendedTypeConverter.cs (1)
143public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
89public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (14)
44Attribute[] attrs = GetComponentAttributes((NativeMethods.IManagedPerPropertyBrowsing)target,sender.DISPID); 53internal static Attribute[] GetComponentAttributes(NativeMethods.IManagedPerPropertyBrowsing target, int dispid) { 61return new Attribute[0]; 71return new Attribute[0]; 126Debug.Assert(typeof(Attribute).IsAssignableFrom(t), "Attribute type " + t.FullName + " does not derive from Attribute"); 127if (!typeof(Attribute).IsAssignableFrom(t)) { 137if (fieldValue is Attribute) { 150Debug.Assert(typeof(Attribute).IsAssignableFrom(t), "Attribute type " + t.FullName + " does not derive from Attribute"); 151if (!typeof(Attribute).IsAssignableFrom(t)) { 155Attribute attr = null; 168attr = (Attribute)Activator.CreateInstance(t, new Object[]{varParams[i]}); 182attr = (Attribute)Activator.CreateInstance(t); 193Attribute[] temp = new Attribute[attrs.Count];
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (12)
95private Attribute[] baseAttrs; 175public Com2PropertyDescriptor(int dispid, string name, Attribute[] attrs, bool readOnly, Type propType, Object typeData, bool hrHidden) 219protected Attribute[] BaseAttributes { 236this.baseAttrs = new Attribute[attrList.Count]; 243baseAttrs = new Attribute[0]; 302Attribute ma; 310ma = (Attribute)attrList[i]; 324Attribute[] temp = new Attribute[newAttributes.Count]; 697return new Com2PropertyDescriptor(this.dispid, this.Name, (Attribute[])this.baseAttrs.Clone(), this.readOnly, this.propertyType, this.typeData, this.hrHidden); 1390public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { 1430public void Add(Attribute attribute) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
509Attribute[] temp = new Attribute[pi.Attributes.Count];
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (7)
30private AttributeCollection staticAttrs = new AttributeCollection(new Attribute[]{BrowsableAttribute.Yes, DesignTimeVisibleAttribute.No}); 346Attribute[] temp = new Attribute[attrs.Count]; 370internal EventDescriptorCollection GetEvents(Object component, Attribute[] attributes) { 382internal PropertyDescriptorCollection GetProperties(Object component, Attribute[] attributes) { 547EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 563PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
winforms\Managed\System\WinForms\Control.cs (2)
17309new Attribute[] {DesignerSerializationVisibilityAttribute.Visible}); 18028new Attribute[] {DesignerSerializationVisibilityAttribute.Visible});
winforms\Managed\System\WinForms\Design\EventsTab.cs (4)
129public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) { 137public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) { 150Attribute[] attributesPlusNamespace = new Attribute[attributes.Length + 1];
winforms\Managed\System\WinForms\Design\PropertyTab.cs (2)
143public abstract PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes); 149public virtual PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) {
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (3)
188public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) { 190Attribute[] attributes2 = new Attribute[attributes.Length + 1];
winforms\Managed\System\WinForms\LinkArea.cs (1)
238public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (3)
21private static Attribute[] browsableAttribute; 23private static Attribute[] BrowsableAttributeList { 26browsableAttribute = new Attribute[] {new BrowsableAttribute(true)};
winforms\Managed\System\WinForms\NativeWindow.cs (3)
551if (Attribute.IsDefined(entry, typeof(DebuggableAttribute))) { 553Attribute[] attr = Attribute.GetCustomAttributes(entry, typeof(DebuggableAttribute));
winforms\Managed\System\WinForms\Padding.cs (1)
412public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\PropertyGrid.cs (6)
445browsableAttributes = new AttributeCollection(new Attribute[]{BrowsableAttribute.Yes}); 448Attribute[] attributes = new Attribute[value.Count]; 461browsableAttributes = new AttributeCollection(new Attribute[]{new BrowsableAttribute(true)}); 1291Attribute[] attrs = new Attribute[BrowsableAttributes.Count];
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (7)
1531Attribute[] attributes = new Attribute[this.BrowsableAttributes.Count]; 3130private static string GetTypeIdString(Attribute a) { 3157Attribute a1 = obj1 as Attribute; 3158Attribute a2 = obj2 as Attribute;
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (6)
534public MergedAttributeCollection(MergePropertyDescriptor owner) : base((Attribute[])null) { 538public override Attribute this[Type attributeType] { 623private Attribute GetCommonAttribute(Type attributeType) { 635Attribute value; 637value = foundAttributes[attributeType] as Attribute; 650Attribute newValue = attributeCollections[i][attributeType];
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (2)
143Attribute[] attrs = new Attribute[parentEntry.BrowsableAttributes.Count];
winforms\Managed\System\WinForms\PropertyGridInternal\PropertiesTab.cs (3)
74public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) { 82public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes) { 84attributes = new Attribute[]{BrowsableAttribute.Yes};
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (6)
72browsableAttributes = new AttributeCollection(new Attribute[]{BrowsableAttribute.Yes}); 85Attribute[] attr1 = new Attribute[browsableAttributes.Count]; 86Attribute[] attr2 = new Attribute[value.Count]; 272this.browsableAttributes = new AttributeCollection(new Attribute[]{BrowsableAttribute.Yes});
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1762public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (1)
176public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (1)
164public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) {
System.Windows.Forms.DataVisualization (9)
Common\Converters\CustomAttributesConverters.cs (9)
182 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object obj, Attribute[] attributes) 201 Attribute[] propAttributes = GetPropertyAttributes(attrInfo); 217 Attribute[] propUserDefinedAttributes = new Attribute[] { 390 private Attribute[] GetPropertyAttributes(CustomPropertyInfo attrInfo) 421 Attribute[] propAttributes = new Attribute[propList.Count]; 422 foreach(Attribute attr in propList) 510 Attribute[] attributes,
System.Workflow.Activities (25)
Common\BasePropertyDescriptor.cs (6)
207return new AttributeCollection((Attribute[])attributes.ToArray(typeof(Attribute))); 311internal ParameterInfoBasedPropertyDescriptor(Type componentType, ParameterInfo paramInfo, bool avoidDuplication, params Attribute[] attributes) 340internal ParameterInfoBasedPropertyDescriptor(Type componentType, string propertyName, Type propertyType, bool avoidDuplication, params Attribute[] attributes) 467return new AttributeCollection((Attribute[])attributes.ToArray(typeof(Attribute)));
Common\CompModHelpers.cs (3)
731else if (Attribute.IsDefined(memberInfo, typeof(DesignerSerializationVisibilityAttribute))) 732designerSerializationVisibility = (Attribute.GetCustomAttribute(memberInfo, typeof(DesignerSerializationVisibilityAttribute)) as DesignerSerializationVisibilityAttribute).Visibility; 773internal static T GetAttributeFromObject<T>(object attributeObject) where T : Attribute
EventSinkActivity.cs (3)
32public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(HandleExternalEventActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) })); 37public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(HandleExternalEventActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); 38public static readonly DependencyProperty EventNameProperty = DependencyProperty.Register("EventName", typeof(string), typeof(HandleExternalEventActivity), new PropertyMetadata("", DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
InvokeMethodActivity.cs (3)
31public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(CallExternalMethodActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) })); 34public static readonly DependencyProperty InterfaceTypeProperty = DependencyProperty.Register("InterfaceType", typeof(System.Type), typeof(CallExternalMethodActivity), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); 35public static readonly DependencyProperty MethodNameProperty = DependencyProperty.Register("MethodName", typeof(string), typeof(CallExternalMethodActivity), new PropertyMetadata("", DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
InvokeSchedule.cs (1)
39public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(InvokeWorkflowActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
InvokeWebService.cs (1)
65public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(InvokeWebServiceActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
LocalService\CorrelationTokenTypeConvertor.cs (1)
94public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
Policy.cs (1)
34public static readonly DependencyProperty RuleSetReferenceProperty = DependencyProperty.Register("RuleSetReference", typeof(RuleSetReference), typeof(PolicyActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
Rules\Design\LogicalExpressionTypeConverter.cs (2)
49public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 168public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
Rules\RuleDefinitions.cs (1)
19public static readonly DependencyProperty RuleDefinitionsProperty = DependencyProperty.RegisterAttached("RuleDefinitions", typeof(RuleDefinitions), typeof(RuleDefinitions), new PropertyMetadata(null, DependencyPropertyOptions.Metadata, new GetValueOverride(OnGetRuleConditions), null, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
WebServiceReceive.cs (1)
41public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(WebServiceInputActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
WebServiceResponse.cs (1)
33public static readonly DependencyProperty ParameterBindingsProperty = DependencyProperty.Register("ParameterBindings", typeof(WorkflowParameterBindingCollection), typeof(WebServiceOutputActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
While.cs (1)
32public static readonly DependencyProperty ConditionProperty = DependencyProperty.Register("Condition", typeof(ActivityCondition), typeof(WhileActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) }));
System.Workflow.ComponentModel (104)
AuthoringOM\Activity.cs (4)
162internal static readonly DependencyProperty ExecutionStatusProperty = DependencyProperty.RegisterAttached("ExecutionStatus", typeof(ActivityExecutionStatus), typeof(Activity), new PropertyMetadata(ActivityExecutionStatus.Initialized, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 163internal static readonly DependencyProperty ExecutionResultProperty = DependencyProperty.RegisterAttached("ExecutionResult", typeof(ActivityExecutionResult), typeof(Activity), new PropertyMetadata(ActivityExecutionResult.None, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 164internal static readonly DependencyProperty WasExecutingProperty = DependencyProperty.RegisterAttached("WasExecuting", typeof(bool), typeof(Activity), new PropertyMetadata(false, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 1920private static DependencyProperty CanModifyActivitiesProperty = DependencyProperty.Register("CanModifyActivities", typeof(bool), typeof(CompositeActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
AuthoringOM\Behaviors\CompensatableTransactionScopeActivity.cs (1)
24internal static readonly DependencyProperty TransactionOptionsProperty = DependencyProperty.Register("TransactionOptions", typeof(WorkflowTransactionOptions), typeof(CompensatableTransactionScopeActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
AuthoringOM\Behaviors\ExceptionHandlerDesigner.cs (1)
22properties["InitializeField"] = TypeDescriptor.CreateProperty(GetType(), "InitializeField", typeof(bool), new Attribute[] { DesignerSerializationVisibilityAttribute.Hidden, BrowsableAttribute.No });
AuthoringOM\Behaviors\TransactionScope.cs (1)
24internal static readonly DependencyProperty TransactionOptionsProperty = DependencyProperty.Register("TransactionOptions", typeof(WorkflowTransactionOptions), typeof(TransactionScopeActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content) }));
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (3)
100public Attribute CreateAttribute() 122Attribute attribute = (Attribute)Activator.CreateInstance(attributeType, constructorArguments.ToArray());
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (1)
26private Attribute[] attributes = null;
AuthoringOM\Compiler\TypeSystem\EventInfo.cs (1)
22private Attribute[] attributes = null;
AuthoringOM\Compiler\TypeSystem\FieldInfo.cs (1)
19private Attribute[] attributes = null;
AuthoringOM\Compiler\TypeSystem\Helper.cs (8)
137internal static Attribute[] LoadCustomAttributes(CodeAttributeDeclarationCollection codeAttributeCollection, DesignTimeType declaringType) 143return new Attribute[0]; 145List<Attribute> attributes = new List<Attribute>(); 204internal static object[] GetCustomAttributes(Type attributeType, bool inherit, Attribute[] attributes, MemberInfo memberInfo) 245foreach (Attribute baseAttribute in baseAttributes) 256internal static bool IsDefined(Type attributeType, bool inherit, Attribute[] attributes, MemberInfo memberInfo) 261foreach (Attribute attribute in attributes)
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (3)
27private Attribute[] attributes = null; 154private Attribute[] attributes = null; 284this.attributes = new Attribute[0];
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (1)
18private Attribute[] attributes = null;
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (1)
63Attribute[] validationVisibilityAtrributes = dependencyProperty.DefaultMetadata.GetAttributes(typeof(ValidationOptionAttribute));
AuthoringOM\ComponentFactoryHelpers.cs (1)
90foreach (Attribute attribute in customAttributes)
AuthoringOM\DependencyObject.cs (4)
23private static DependencyProperty SiteProperty = DependencyProperty.Register("Site", typeof(ISite), typeof(DependencyObject), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 24private static DependencyProperty ReadonlyProperty = DependencyProperty.Register("Readonly", typeof(bool), typeof(DependencyObject), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 25private static DependencyProperty ParentDependencyObjectProperty = DependencyProperty.Register("ParentDependencyObject", typeof(DependencyObject), typeof(DependencyObject), new PropertyMetadata(null, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 26private static DependencyProperty UserDataProperty = DependencyProperty.Register("UserData", typeof(IDictionary), typeof(DependencyObject), new PropertyMetadata(DependencyPropertyOptions.Metadata | DependencyPropertyOptions.ReadOnly, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
AuthoringOM\Design\ActivityDesigner.cs (3)
743PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(Activity, new Attribute[] { new BrowsableAttribute(true) }); 1994foreach (Attribute attribute in attribs) 2499foreach (Attribute attribute in attributes)
AuthoringOM\Design\ComponentSerializationService.cs (4)
509props = converter.GetProperties(dummyContext, this.obj, new Attribute[] { }); 532foreach (PropertyDescriptor childDesc in propDesc.Converter.GetProperties(dummyContext, this.obj, new Attribute[] { })) 702props = converter.GetProperties(dummyContext, propertySegment.Object, new Attribute[] { }); 718foreach (PropertyDescriptor childDesc in propDesc.Converter.GetProperties(dummyContext, propDesc.GetValue(propertySegment.Object), new Attribute[] { }))
AuthoringOM\Design\CustomActivityDesigner.cs (2)
77TypeDescriptor.AddAttributes(rootActivity, new Attribute[] { new DesignerAttribute(designerAttrib.DesignerTypeName, typeof(IRootDesigner)) }); 139foreach (Attribute attribute in attribs)
AuthoringOM\Design\DesignerHelpers.cs (1)
1338PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(component, new Attribute[] { BrowsableAttribute.Yes });
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1410public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
AuthoringOM\Design\PropertyDescriptors.cs (13)
294List<Attribute> attributes = new List<Attribute>(); 295foreach (Attribute attribute in base.Attributes) 809foreach (Attribute attribute in base.GetAttributes()) 816AttributeCollection newCollection = new AttributeCollection((Attribute[])collection.ToArray(typeof(Attribute))); 837public override EventDescriptorCollection GetEvents(Attribute[] attributes) 879foreach (Attribute attribute in this.realPropertyDescriptor.Attributes) 886AttributeCollection newCollection = new AttributeCollection((Attribute[])collection.ToArray(typeof(Attribute))); 972foreach (Attribute attribute in this.realEventDescriptor.Attributes) 979AttributeCollection newCollection = new AttributeCollection((Attribute[])collection.ToArray(typeof(Attribute)));
AuthoringOM\Design\ReferenceService.cs (2)
13private static readonly Attribute[] Attributes = new Attribute[] { BrowsableAttribute.Yes };
AuthoringOM\Design\Themes.cs (1)
3212public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
AuthoringOM\Design\TypeConverters.cs (4)
125public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 138props = PropertyDescriptorFilter.FilterProperties(component.Site, value, TypeDescriptor.GetProperties(value, new Attribute[] { BrowsableAttribute.Yes })); 268public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 274PropertyDescriptorCollection props = TypeDescriptor.GetProperties(value, new Attribute[] { BrowsableAttribute.Yes });
AuthoringOM\PropertyMetadata.cs (14)
28private Attribute[] attributes = null; 51: this(defaultValue, options, null, null, new Attribute[] { }) 55public PropertyMetadata(object defaultValue, params Attribute[] attributes) 60public PropertyMetadata(object defaultValue, DependencyPropertyOptions options, params Attribute[] attributes) 65public PropertyMetadata(DependencyPropertyOptions options, params Attribute[] attributes) 70public PropertyMetadata(params Attribute[] attributes) 78this(defaultValue, options, getValueOverride, setValueOverride, new Attribute[] { }) 83public PropertyMetadata(object defaultValue, DependencyPropertyOptions options, GetValueOverride getValueOverride, SetValueOverride setValueOverride, params Attribute[] attributes) 90internal PropertyMetadata(object defaultValue, DependencyPropertyOptions options, GetValueOverride getValueOverride, SetValueOverride setValueOverride, bool shouldAlwaysCallOverride, params Attribute[] attributes) 100public Attribute[] GetAttributes() 105public Attribute[] GetAttributes(Type attributeType) 107List<Attribute> attributes = new List<Attribute>(); 110foreach (Attribute attribute in this.attributes)
AuthoringOM\Serializer\ActivityCodeDomSerializer.cs (1)
24public static readonly DependencyProperty MarkupFileNameProperty = DependencyProperty.RegisterAttached("MarkupFileName", typeof(string), typeof(ActivityCodeDomSerializer), new PropertyMetadata(null, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (4)
28public static readonly DependencyProperty StartLineProperty = DependencyProperty.RegisterAttached("StartLine", typeof(int), typeof(ActivityMarkupSerializer), new PropertyMetadata(minusOne, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 29public static readonly DependencyProperty StartColumnProperty = DependencyProperty.RegisterAttached("StartColumn", typeof(int), typeof(ActivityMarkupSerializer), new PropertyMetadata(minusOne, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 30public static readonly DependencyProperty EndLineProperty = DependencyProperty.RegisterAttached("EndLine", typeof(int), typeof(ActivityMarkupSerializer), new PropertyMetadata(minusOne, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 31public static readonly DependencyProperty EndColumnProperty = DependencyProperty.RegisterAttached("EndColumn", typeof(int), typeof(ActivityMarkupSerializer), new PropertyMetadata(minusOne, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
AuthoringOM\Serializer\CompositeActivityTypeDescriptor.cs (1)
31public override PropertyDescriptorCollection GetProperties(Attribute[] attributes)
AuthoringOM\Serializer\ModifyActivitiesPropertyDescriptor.cs (1)
26: base("CanModifyActivities", new Attribute[0])
AuthoringOM\Serializer\SerializableTypeCodeDomSerializer.cs (2)
90SerializeProperties(manager, statements, value, new Attribute[] { DesignOnlyAttribute.No }); 91SerializeEvents(manager, statements, value, new Attribute[] { DesignOnlyAttribute.No });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (10)
34public static readonly DependencyProperty XClassProperty = DependencyProperty.RegisterAttached("XClass", typeof(string), typeof(WorkflowMarkupSerializer), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 35public static readonly DependencyProperty XCodeProperty = DependencyProperty.RegisterAttached("XCode", typeof(CodeTypeMemberCollection), typeof(WorkflowMarkupSerializer), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 37public static readonly DependencyProperty EventsProperty = DependencyProperty.RegisterAttached("Events", typeof(Hashtable), typeof(WorkflowMarkupSerializer), new PropertyMetadata(null, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 38public static readonly DependencyProperty ClrNamespacesProperty = DependencyProperty.RegisterAttached("ClrNamespaces", typeof(List<String>), typeof(WorkflowMarkupSerializer), new PropertyMetadata(null, new Attribute[] { new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 863Attribute[] attributes = Attribute.GetCustomAttributes(propertyObj as PropertyInfo, typeof(DefaultValueAttribute), true); 1157Attribute[] attributes = Attribute.GetCustomAttributes(property, typeof(DefaultValueAttribute), true); 1469Attribute[] visibilityAttrs = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute)); 1524Attribute[] visibilityAttrs = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute));
Shared\BasePropertyDescriptor.cs (6)
206return new AttributeCollection((Attribute[])attributes.ToArray(typeof(Attribute))); 310internal ParameterInfoBasedPropertyDescriptor(Type componentType, ParameterInfo paramInfo, bool avoidDuplication, params Attribute[] attributes) 339internal ParameterInfoBasedPropertyDescriptor(Type componentType, string propertyName, Type propertyType, bool avoidDuplication, params Attribute[] attributes) 466return new AttributeCollection((Attribute[])attributes.ToArray(typeof(Attribute)));
Shared\CompModHelpers.cs (3)
729else if (Attribute.IsDefined(memberInfo, typeof(DesignerSerializationVisibilityAttribute))) 730designerSerializationVisibility = (Attribute.GetCustomAttribute(memberInfo, typeof(DesignerSerializationVisibilityAttribute)) as DesignerSerializationVisibilityAttribute).Visibility; 771internal static T GetAttributeFromObject<T>(object attributeObject) where T : Attribute
System.Workflow.Runtime (18)
CorrelationToken.cs (4)
26internal static readonly DependencyProperty NameProperty = DependencyProperty.Register("Name", typeof(string), typeof(CorrelationToken), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new BrowsableAttribute(false) })); 27internal static readonly DependencyProperty OwnerActivityNameProperty = DependencyProperty.Register("OwnerActivityName", typeof(string), typeof(CorrelationToken), new PropertyMetadata(DependencyPropertyOptions.Metadata, new Attribute[] { new TypeConverterAttribute(typeof(PropertyValueProviderTypeConverter)) })); 30internal static readonly DependencyProperty PropertiesProperty = DependencyProperty.Register("Properties", typeof(ICollection<CorrelationProperty>), typeof(CorrelationToken), new PropertyMetadata(new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) })); 32internal static readonly DependencyProperty InitializedProperty = DependencyProperty.Register("Initialized", typeof(bool), typeof(CorrelationToken), new PropertyMetadata(false, new Attribute[] { new BrowsableAttribute(false), new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden) }));
DebugEngine\DebugController.cs (2)
1008Attribute[] attributes = scheduleType.GetCustomAttributes(typeof(WorkflowMarkupSourceAttribute), false) as Attribute[];
System\Activities\Statements\Interop.cs (12)
583EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes) 593PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes) 627Attribute[] customAttributes = Attribute.GetCustomAttributes(property, true); 628Attribute[] newAttributes = new Attribute[customAttributes.Length + 1]; 679static bool ShouldFilterProperty(PropertyDescriptor property, Attribute[] attributes) 688Attribute filterAttribute = attributes[i]; 689Attribute propertyAttribute = property.Attributes[filterAttribute.GetType()]; 1526public InteropProperty(Interop owner, string name, Attribute[] propertyInfoAttributes) 1586public ArgumentProperty(Interop owner, string argumentName, Argument argument, Attribute[] attributes) 1646public LiteralProperty(Interop owner, string literalName, Type literalType, Attribute[] attributes)
System.WorkflowServices (17)
System\Workflow\Activities\ChannelToken.cs (2)
41new Attribute[] { new BrowsableAttribute(false) })); 49new Attribute[] { new TypeConverterAttribute(typeof(PropertyValueProviderTypeConverter)) }));
System\Workflow\Activities\ChannelTokenTypeConverter.cs (1)
71public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
System\Workflow\Activities\ContextToken.cs (2)
36new Attribute[] { new BrowsableAttribute(false) })); 45new Attribute[] { new TypeConverterAttribute(typeof(PropertyValueProviderTypeConverter)) }));
System\Workflow\Activities\ContextTokenTypeConverter.cs (1)
71public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
System\Workflow\Activities\ContractMethodInfo.cs (2)
18private Attribute[] attributes = null; 86this.attributes = new Attribute[] { operationContract };
System\Workflow\Activities\ContractType.cs (2)
21private Attribute[] attributes = null; 69this.attributes = new Attribute[] { new ServiceContractAttribute() };
System\Workflow\Activities\OperationInfo.cs (1)
38new Attribute[] {
System\Workflow\Activities\ServiceOperationHelpers.cs (4)
211internal static object[] GetCustomAttributes(Type attributeType, Attribute[] attributes) 220foreach (Attribute currentAttribute in attributes) 243Attribute[] attributes) 250foreach (Attribute attribute in attributes)
System\Workflow\Activities\WorkflowServiceAttributesTypeConverter.cs (2)
12public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes) 16PropertyDescriptorCollection subProperties = TypeDescriptor.GetProperties(value, new Attribute[] { new BrowsableAttribute(true) });
System.Xml.Linq (1)
System\Xml\Linq\XComponentModel.cs (1)
32public override PropertyDescriptorCollection GetProperties(Attribute[] attributes) {
WindowsBase (32)
Base\MS\Internal\ComponentModel\APCustomTypeDescriptor.cs (3)
64public PropertyDescriptorCollection GetProperties(Attribute[] attributes) 81foreach (Attribute attr in attributes) 213public EventDescriptorCollection GetEvents(Attribute[] attributes) { return _parent.GetEvents(attributes); }
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (24)
471Attribute[] attrArray = (Attribute[])mi.GetCustomAttributes(attrType, true); 474Attribute[] typeAttrArray = (Attribute[])propertyReflectionType.GetCustomAttributes(attrType, true); 478Attribute[] mergedAttrArray = new Attribute[attrArray.Length + typeAttrArray.Length]; 489Attribute[] addAttrs = null; 491foreach(Attribute attr in attrArray) 499Attribute[] paAttrs = null; 505paAttrs = (Attribute[])milist[0].GetCustomAttributes(typeof(Attribute), true); 509paAttrs = (Attribute[])providerType.GetCustomAttributes(typeof(Attribute), true); 520Attribute[] newArray = new Attribute[addAttrs.Length + paAttrs.Length]; 535Attribute[] newArray = new Attribute[addAttrs.Length + attrArray.Length]; 672List<Attribute> newAttributes = new List<Attribute>(baseAttributes.Count + 1); 676foreach (Attribute a in baseAttributes) 678Attribute attrToAdd = a; 737Attribute[] attrArray = newAttributes.ToArray(); 741Attribute t = attrArray[idx]; 782attributeType = TypeDescriptor.GetReflectionType(typeof(Attribute));
Base\MS\Internal\ComponentModel\DPCustomTypeDescriptor.cs (3)
89public PropertyDescriptorCollection GetProperties(Attribute[] attributes) 102foreach (Attribute attr in attributes) 234public EventDescriptorCollection GetEvents(Attribute[] attributes) { return _parent.GetEvents(attributes); }
Base\System\ComponentModel\DependencyPropertyDescriptor.cs (1)
386public override PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter) { return Property.GetChildProperties(instance, filter); }
Base\System\Windows\AttachedPropertyBrowsableWhenAttributePresentAttribute.cs (1)
96Attribute a = TypeDescriptor.GetAttributes(d)[_attributeType];