I'm trying to update the meta "Sale price" with the custom product attribute "value" named "Cost_price" for every product (simple & variable). Thi ...
I'm trying to update the meta "Sale price" with the custom product attribute "value" named "Cost_price" for every product (simple & variable). Thi ...
How should I be a) defining Custom Attributes and b) getting the said custom attribute assignment in the following scenario? Scenario: We would like ...
I've been fighting this problem for hours and I could not find anything related on SO (or google for that matter). Here's my problem: I have a custom ...
This might be a silly question. I am trying to understand the concept of conditional attribute.My aim is to get a specific attribute instance and ende ...
I have created a custom attribute and use it in the AssemblyInfo.vb file. The attribute is declared in another file like so: And is in the Assembly ...
This is way out there but maybe someone has seen this. Maybe someone have some additional debugging ideas for GetCustomAttributes failures. Assembly. ...
Is it possible to get the custom attributes from the class name as a string? something like this (which doesn't work) ...
Suppose I have the FieldInfo, I can go about it two ways: That's fine. But the one below returns [] rather than Attribute ? This question is ...
I'm trying to use GetCustomAttributes() to get an attribute defined on a property. The issue is that the property is an overridden one and I can't wor ...
i have an enum with custom attributes, something like: the "forward" way seems easy, coming with an enum value an getting the custom attribute usin ...
Why does ICustomAttributeProvider.GetCustomAttributes() return object[] instead of Attribute[]? Is there any circumstance when using the ICustomAttri ...
I have some code to define custom attributes and then to read in the code, it fails to work. To try and fix the problem I have gone back and tried to ...
In answer to this question I tried to use Type.GetCustomAttributes(true) on a class which implements an interface which has an Attribute defined on it ...
I have the following class: The class compiles fine, but when I decorate my property with it: The compiler spits out: Error 1 An attribute a ...
I have a managed dll – repro.dll, which contains class TestModuleCommand decorated with 2 attributes: System.ObsoleteAttribute and System.Management.A ...
I'm new to custom attributes, so I'm wondering if it is possible to get the values of the attributes. An example of the properties in my class which I ...
I have tried the following code using the 2.0 framework and I get an attribute back, but when I try this on the compact framework, it always returns a ...