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 4576746
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:14:57+00:00 2026-05-21T20:14:57+00:00

I am reading this article on provider patren. Kindly guide me what do this

  • 0

I am reading this article on provider patren. Kindly guide me what do this statement:

 [ConfigurationProperty("providers")]

Actually I want to learn what is [] ? I also saw such a line on web methods with []. What are [] ? what is there use ? I am even not aware to search what I should name it ? plz guide and help me.

Thanks

  • 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-21T20:14:58+00:00Added an answer on May 21, 2026 at 8:14 pm

    [Foo(bla)] is the syntax for an attribute – additional metadata about some type or member (or even the assembly itself; or indeed parameters). You can write your own attributes, for example that one is something like:

    public class ConfigurationPropertyAttribute : Attribute {
        public ConfigurationPropertyAttribute(string something) {...}
    }
    

    the name Attribute is inferred, so only [ConfigurationProperty] is needed. The string "providers" is used as a constructor argument, and also you can use property assignments, for example:

    [Foo(123, "abc", Bar = 123)]
    

    looks for a type FooAttribute or Foo, with a constructor that takes an int and a string, and has a property Bar that can be assigned an int.

    Most attributes don’t do anything directly, but you can write code that inspects types for attributes (via reflection), which is a very convenient way of library code knowing how to work with a type.

    For example:

    [XmlType("abc"), XmlRoot("abc")]
    public class MyType {
        [XmlAttribute("name")]
        public string UserName {get;set;}
    }
    

    this reconfigures XmlSerializer (which checks for the above attributes) to serialize the type as:

    <abc name="blah"/>
    

    where without the attributes it would be:

    <MyType><UserName>blah</UserName></MyType>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading this article from MSDN on Dependency Injection and I saw a
Reading this article http://support.microsoft.com/kb/813878 I have a question: Where can I get ipseccmd.exe for
After reading this article on thedailywtf.com, I'm not sure that I really got the
After reading this article http://lukast.mediablog.sk/log/?p=155 I decided to use mingw on linux to compile
I was reading this article by Brandon Aaron here , about how jquery context
I was reading this article on Coding Horror: http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html I went to the downloads
I was just reading this article and it mentions that some organization had an
just was reading this article http://highscalability.com/blog/2010/3/23/digg-4000-performance-increase-by-sorting-in-php-rather-than.html And found this nice article http://wiki.apache.org/cassandra/DataModel I just
So , I've been reading this article: http://msdn.microsoft.com/en-us/library/aa290051%28VS.71%29.aspx And I would like to define
I was under the impression, after reading this article that it is better to

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.