Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3875234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:14:35+00:00 2026-05-19T22:14:35+00:00

Attributes helps us use class dependant values instead of instances and they help us

  • 0

Attributes helps us use class dependant values instead of instances and they help us carry some values without strong relation with our classes. But i found some restrictions on attributes. We are not able to change these values on runtime. So i am looking a way to use similiar concept to attributes as we have seen many example configure classes by fluent apis instead of attributes. Do you know such a ready library ? What is an alternative to use attribute concept for avoiding attribute restrictions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:14:36+00:00Added an answer on May 19, 2026 at 10:14 pm

    Actually in some cases you can tweak attributes at runtime – for example via TypeDescriptor – but this only affects ComponentModel usage, not reflection usage. You can also write the attribute itself to do things like resx lookup for i18n purposes.

    But other options:

    • maybe a static property, perhaps following a naming convention
    • a separate object model that talks about the types – a meta-model, so to speak
    • a configuration file or similar

    Any will work; which is best depends on exactly what you have in mind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help with virtual attributes. This code works fine but how do
Please help me out. I need to use the same bunch of attributes in
I have a LINQ generated class called Project. I wanted to add some attributes
I want to use a .properties file to store some parameters with values. I
MVC use action attributes to map the same view for http get or post:
How can we apply attributes to class function using AOP in C#? UPDATE: I
Are there any attributes to pre select some radio button in tag on page
I have 2 attributes that I use within the controllers of my MVC application.
I'm using DataAnnotations attributes to validate my model objects. My model class looks similar
I use a table for editing the attributes of a model object (the annotation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.