Top "Attributes" questions

The attributes tag should be used for any issues relating to a property of an object, element, or file, etc.

Type hinting for properties in PHP 7?

Does php 7 support type hinting for class properties? I mean, not just for setters/getters but for the property itself. …

php attributes php-7 type-hinting variable-types
InternalsVisibleTo attribute isn't working

I am trying to use the InternalsVisibleTo assembly attribute to make my internal classes in a .NET class library visible …

.net attributes internalsvisibleto
Java defining or initializing attributes of a class

Is there a difference between defining class attributes and initializing them? Are there cases where you want to do one …

java class attributes initializing
What are the best practices for using Assembly Attributes?

I have a solution with multiple project. I am trying to optimize AssemblyInfo.cs files by linking one solution wide …

.net assemblies attributes assemblyinfo
Html.TextBox conditional attribute with ASP.NET MVC Preview 5

I have a strongly-typed MVC View Control which is responsible for the UI where users can create and edit Client …

asp.net-mvc attributes html-helper readonly
What is AttributeSet and how can i use it?

What is AttributeSet in Android? How can i use it for my custom view?

android attributes view
How do I get the member to which my custom attribute was applied?

I'm creating a custom attribute in C# and I want to do different things based on whether the attribute is …

c# reflection attributes custom-errors
addAttributeToFilter and OR condition in Magento's Collection

I'd like to select products depending on several criteria from different attribute. I know how to user $collection->addAttributeToFilter(…

php collections magento attributes
How does one add an attribute to a model?

In rails I generate a model with two strings and would like to add more. How would I go about …

ruby-on-rails attributes model attr
jQuery Selectors: Select element with specific class and 'title' attribute

This should be an easy one, but I can't find a good example anywhere. I'm trying to select a particular …

jquery class jquery-selectors attributes title