what does square bracket syntax mean above a method in C#, ASP.NET

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2010-04-17T21:28:23Z Indexed on 2010/04/17 21:33 UTC
Read the original article Hit count: 2360

Filed under:
|

I am just looking a bunch of codes that I am trying to learn from an open source project and sometimes I see a square brackets above a function such as:

[EdmFunction("NerdDinnerModel.Store", "DistanceBetween")]
        public static double DistanceBetween(double lat1, double long1, double lat2, double long2)

or

[Bind(Include = "Title,Description,EventDate,Address,Country,ContactPhone,Latitude,Longitude")]
    [MetadataType(typeof(Dinner_Validation))]
    public partial class Dinner

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc