Top "Custom-attributes" questions

In .NET Framework, custom attributes are user defined attributes which enable providing metadata for application elements such as assemblies, classes and methods.

jQuery - Looping through elements with specific Attribute

I know how to loop through the inputs below, searching for the ones with a specific class of "testers" And …

jquery custom-attributes each
Find methods that have custom attribute using reflection

I have a custom attribute: public class MenuItemAttribute : Attribute { } and a class with a few methods: public class HelloWorld { [MenuItemAttribute] …

c# reflection custom-attributes
How to get a custom attribute from object instance in C#

Let's say I have a class called Test with one property called Title with a custom attribute: public class Test { […

c# .net reflection custom-attributes
How to get Custom Attribute values for enums?

I have an enum where each member has a custom attribute applied to it. How can I retrieve the value …

c# .net reflection custom-attributes
is it possible to set custom attribute by jQuery attr() function using JS variables

I'm using jquery 1.5 and html4 standard. I'm trying to set custom attribute which i get by javascript variable, but it …

jquery custom-attributes
How to pass custom component parameters in java and xml

When creating a custom component in android it is often asked how to create and pass through the attrs property …

android components custom-attributes uicomponents
How to add custom attributes to ASP.NET controls

I've got an ASP.NET control say checkbox: <asp:CheckBox ID="myChck" runat="server" Value="myCustomValue" /> Is it …

asp.net custom-attributes
Adding attributes to customer entity

my current goal is to add a new customer attribute (with int type) which should appear as select with predefined …

php magento custom-attributes
How to display custom attribute in cart (Magento)

I have tried a lot of stuf but none of them work. I think I can get the custom attributes …

php html magento custom-attributes
Can I add custom methods/attributes to built-in Python types?

For example—say I want to add a helloWorld() method to Python's dict type. Can I do this? JavaScript has …

python custom-attributes monkeypatching built-in-types