tagged [attributes]
Get the description attributes At class level
Get the description attributes At class level I have such a class Is there anyway to get the content of the `Description` attribute for the `Wahala` class?
- Modified
- 13 Aug at 08:0
What is the utility of the attribute GeneratedCodeAttribute in C #?
What is the utility of the attribute GeneratedCodeAttribute in C #? I generated some of my C# code with an external tool. Each generated class has an attribute GeneratedCodeAttribute. Why is my genera...
- Modified
- 5 Mar at 16:13
Are Method Attributes Inherited in C#?
Are Method Attributes Inherited in C#? Are attributes applied to an abstract method in a base class applied to the overridden versions in the child classes? I hope the question is clear enough without...
- Modified
- 14 Jul at 05:24
javascript remove "disabled" attribute from html input
javascript remove "disabled" attribute from html input How can I remove the "disabled" attribute from an HTML input using javascript? at onClick I want my input tag to not consist of "disabled" attrib...
- Modified
- 22 Aug at 03:33
When is a custom attribute's constructor run?
When is a custom attribute's constructor run? When is it run? Does it run for each object to which I apply it, or just once? Can it do anything, or its actions are restricted?
- Modified
- 6 Aug at 18:49
Programmatically add an attribute to a method or parameter
Programmatically add an attribute to a method or parameter I can use TypeDescriptor.AddAttributes to add an attribute to a type in runtime. How do I do the same for a method and parameter? (maybe 2 se...
- Modified
- 7 Mar at 19:5
Are complex expressions possible in ng-hide / ng-show?
Are complex expressions possible in ng-hide / ng-show? I want to do so: but the expression evaluates always to `false`. I do not want to define special function on `$scope`.
- Modified
- 1 Mar at 20:19
Lambda expression in attribute constructor
Lambda expression in attribute constructor I have created an `Attribute` class called `RelatedPropertyAttribute`: I us
- Modified
- 29 May at 08:46
Can C# Attributes access the Target Class?
Can C# Attributes access the Target Class? I want to access the properties of a class from the attribute class by using reflection. Is it possible? For example:
- Modified
- 21 Feb at 23:57
When to use setAttribute vs .attribute= in JavaScript?
When to use setAttribute vs .attribute= in JavaScript? Has a best-practice around using `setAttribute` instead of the dot (`.`) attribute notation been developed? E.g.: or
- Modified
- 3 Feb at 04:14
Attribute to Skip over a Method while Stepping in Debug Mode
Attribute to Skip over a Method while Stepping in Debug Mode Is there an attribute I can use on a method so that when stepping through some code in Debug mode the Debugger stays on the outside of the ...
- Modified
- 9 Feb at 22:17
Combining multiple attributes in C#
Combining multiple attributes in C# Is there a functional difference between the following syntax... ...and this syntax? Assuming each produces identical results when compiled, which is the preferred ...
- Modified
- 15 Sep at 19:57
Defining custom attrs
Defining custom attrs I need to implement my own attributes like in `com.android.R.attr` Found nothing in official documentation so I need information about how to define these attrs and how to use th...
- Modified
- 11 Feb at 09:25
What is the purpose of Attributes in C#?
What is the purpose of Attributes in C#? - What is the purpose of Attributes in C#? - How do I know which attribute have to use for particular functionality?- How can I add them dynamically in c#?- Wh...
- Modified
- 9 Sep at 06:4
Can I add attributes to an object property at runtime?
Can I add attributes to an object property at runtime? For example I want to remove or change below property attributes or add a new one. Is it possible?
- Modified
- 2 Mar at 14:51
Does adding [Serializable] to the class have any performance implications?
Does adding [Serializable] to the class have any performance implications? I need to add the [Serializable] attribute to a class that is extremely performance sensitive. Will this attribute have any ...
- Modified
- 10 Sep at 01:0
[XmlType(AnonymousType = true)]
[XmlType(AnonymousType = true)] Hello what does mean this line during serialization? xsd.exe generates this for all classes. I read documentation, but still can't understand how it affects me if I rem...
- Modified
- 1 Apr at 14:36
ThreadStatic v.s. ThreadLocal<T>: is generic better than attribute?
ThreadStatic v.s. ThreadLocal: is generic better than attribute? `[ThreadStatic]` is defined using attribute while `ThreadLocal` uses generic. Why different design solutions were chosen? What are the ...
- Modified
- 20 Aug at 12:17
Force usage of custom attribute
Force usage of custom attribute Scenario: I have a base class "MyBase". I have a custom attribute "MyAttrib" With that I do this: Question: Can I in any way force classes inherting from MyBase to have...
- Modified
- 10 Jun at 10:10
Can I initialize a C# attribute with an array or other variable number of arguments?
Can I initialize a C# attribute with an array or other variable number of arguments? Is it possible to create an attribute that can be initialized with a variable number of arguments? For example:
- Modified
- 12 Dec at 21:41
private final static attribute vs private final attribute
private final static attribute vs private final attribute In Java, what's the difference between: and Both are `private` and `final`, the difference is the `static` attribute. What's better? And why?
- Modified
- 26 Sep at 22:10
.NET DefaultValue attribute
.NET DefaultValue attribute I've heard people say a few different things about the `DefaultValue` attribute including: - - - Which (if any) is right? Does `DefaultValue` actually set default values? A...
- Modified
- 24 May at 14:41
How to access (get or set) object attribute given string corresponding to name of that attribute
How to access (get or set) object attribute given string corresponding to name of that attribute How do you set/get the values of attributes of `t` given by `x`?
- Modified
- 5 Dec at 12:42
How to read the Value for an EnumMember attribute
How to read the Value for an EnumMember attribute How do I read the Value of Status.InProgress so I get back "in Progress"?
- Modified
- 9 Dec at 06:36
How to get name of property which our attribute is set?
How to get name of property which our attribute is set? I'm going to do this without passing any parameter to attribute! Is it possible?
- Modified
- 8 Dec at 23:52