Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Attributes


Search:
What's New - What's Hot
CorrelationInitializerAttribute Class  Version: 0.00     Price: $0.00  
Total Hits: 15  |  Today: 1Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Indicates the method or event on an ExternalDataExchange interface that initializes the correlation value. This class cannot be inherited....

Image Attributes and the ImageAttributes Class in GDI+  Version: 0.00     Price: $0.00  
Total Hits: 25  |  Today: 0Author: Puran Mehra      Rating:  
Read Reviews | Write Review |  Your Rating: 

Images represented by the Image class and its inherited classes can also store attributes. The ImageAttributes class represents the attributes of an image. DrawImage can take a parameter of type ImageAttributes, which represents how the colors are applied to an image shown it is rendered. The ImageAttributes class has no properties, but it provides many useful methods. Let's take a look at the method provided by the ImageAttributes class....

Using Custom Attributes to Map Database Tables and Columns to Classes and Fields  Version: 0.00     Price: $0.00  
Total Hits: 30  |  Today: 0Author: Alaric Dailey      Rating:  
Read Reviews | Write Review |  Your Rating: 

In my article on loading any object from any database, I made a rather large list of shortcomings of that code. In this article, I am going to fix a few of those by using custom attributes. By the end of this article we will have fixed, or be able to fix the following.

* Being forced to use the poorly performing SELECT *
* Inability to map table and column names that aren't valid variable or class names.
* Using slow performing properties
* Inability to prote...

Attributes and Design-Time Support  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Design-time support extensions are typically implemented in code that exists separately from the code for a component. A variety of attributes are used to associate design-time support providers with a type or an individual member of a type....

Authorization Security Model in Web Applications Using .NET Attributes     
Total Hits: 135  |  Today: 0Author: Samer Abu Rabie      Rating:  
Read Reviews | Write Review |  Your Rating: 

Security in web applications is something necessary nowadays; specially the everyday attacks are in increase. But in this article we are not gonna discuss the Authentication of a web application, we are going to discuss the a simple and powerfull way for Authorization instead. In Web Application Security Model there are two essential terms are in use: Authentication and Authorization, its very necessary to differentiate between the two mechanisms. Authorization is the mechanism of which systems ...

Attributes and Reflection in C#     
Total Hits: 1192  |  Today: 0Author: Joydip Kanjilal      Rating:  
Read Reviews | Write Review |  Your Rating: 

Attributes are a mechanism for adding metadata. Reflection is the process by which a program can read its own metadata. This article discusses both these concepts in detail with examples wherever necessary....

Generate SQL Statements with objects, Attributes and Reflection  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: Edmund H Smith      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many developers hate one thing about software development, writing SQL Statements. SQL is a language on its own and it is ubiquitous in today's development environment. When there are changes made to the tables, we have to modify the affected SQL statements, be it in the application codes or in Stored Procedures....

Retrieving Assembly Attributes  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Christian Rodemeyer      Rating:  
Read Reviews | Write Review |  Your Rating: 

AssemblyAttributes is a cute little helper class that is useful for almost every .NET/Silverlight application that displays some information about itself (think “About Box”). It retrieves the values of the following assembly attributes in an easy and consistent manner:

* Title
* Product
* Copyright
* Company...

Attributes in C#  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Patrick Smacchia      Rating:  
Read Reviews | Write Review |  Your Rating: 

Lets see the mean of attributes in c# world.

/* I got a book named Practical .NET2 and C#2 and i think this book has really nice contents related to .NET with C# 2.o, I am taking one of good content related to attribute and discussing with you all. */...

Restrict ASP.NET MVC Action's Using The ActionMethodSelectorAttribute  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Malcolm Sheridan      Rating:  
Read Reviews | Write Review |  Your Rating: 

A huge reason why I love ASP.NET MVC is its flexibility and it is extensible. I recently came across a topic on the forums on how to restrict certain HTTP requests when using ASP.NET MVC. This is a perfect scenario to create your own custom action filter attribute! This is easy! All you need to do is create a class that inherits ActionMethodSelectorAttribute. This is different from inheriting from the ActionFilterAttribute class as that's the base class for all action filter attributes. If I was...

I bet you didn't know that adding custom attributes to your web.sitemap was this easy!  Version: 0.00     Price: $0.00  
Total Hits: 7  |  Today: 0Author: rtpHarry      Rating:  
Read Reviews | Write Review |  Your Rating: 

The site map file is a great place to store extra snippets of page-specific information. In this article we will explore how easy it is to add custom attributes to a site map by creating a user control to display a sitemap and adding custom attributes to filter out specific pages....

ConditionalEventArgs Class  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Returns result information for the CodeCondition class. This class cannot be inherited....

Design-Time Attributes for Components  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you are not familiar with applying attributes to provide metadata to the common language runtime, see Extending Metadata Using Attributes. Because components can be displayed in a designer, such as Visual Studio, they require attributes that provide metadata to design-time tools. This section describes and provides a list of commonly used design-time attributes....

Armadillo: Unit Testing of inline SQL with a little help from Attributes and Reflection  Version: 0.00     Price: $0.00  
Total Hits: 28  |  Today: 0Author: Pedro J. Molina      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you have developed or maintained business applications, you will probably have found the following typical scenario several times:

* A well structured application with at least two or three layers: UI, Business Layer and Data Access Layer (DAL).
* A Relational Database Management System (RDBMS) behind the scenes doing all the hard work of persistence and data integrity.

When many people are involved in a system, with specific responsibilities (analyst, developers, DB...

How to: Migrate an ASP.NET 1.1 Web Page Using the CodeBehind Attribute to ASP.NET 2.0  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This topic demonstrates how to create a Web page and user control that use the CodeBehind attribute of the @ Page directive, compile them, and then convert them to use the CodeFile attribute with a partial class in the code-behind files in the .NET Framework version 2.0. The new Web page code-behind model in ASP.NET version 2.0 is based on partial classes. The markup for the page is stored in one file – the .aspx file – and the code is defined in a partial class – the code-behind file. Convertin...

Handling Fixed-width Flat Files with .NET Custom Attributes  Version: 0.00     Price: $0.00  
Total Hits: 31  |  Today: 0Author: Stephan Depoorter      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article shows how to handle flat files containing fixed width datafields, using .NET custom attributes. It doesn't explain custom attributes, because I think there has already been enough written on that subject....

Assembly Attributes  Version: 0.00     Price: $0.00  
Total Hits: 33  |  Today: 0Author: Ahmed Yassin      Rating:  
Read Reviews | Write Review |  Your Rating: 

Reflection allows you to programmatically inspect an assembly, and get information about the assembly, including all object types contained within. This information includes the attributes you have added to those types. The reflection objects reside within the System.Reflection namespace.

This demo program will inspect an assembly and display a list of all attributes defined on the assembly. The entire source code is downloadable and I will explain how it works....

Class Data Binding using Custom Attributes  Version: 0.00     Price: $0.00  
Total Hits: 30  |  Today: 0Author: Alex S. Robson      Rating:  
Read Reviews | Write Review |  Your Rating: 

At the end of this article, you should be comfortable using Custom Attributes.
This article focuses on using them in order to create a quick, flexible data binding mechanism....

Permission-by-aspect  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: SeMartens      Rating:  
Read Reviews | Write Review |  Your Rating: 

Introduction to Aspect Oriented Programming (AOP) is mostly done by exercising an example, adding logging as an aspect to an existing application. But, it is really simple to realise more sophisticated functionality using AOP. This article will demonstrate the use of aspects to build an easy to integrate and extensible permission management. This is done by applying custom attributes to methods, and checking these attributes while invoking annotated methods....

Casting from a Collection to a Data Table using Generics and Attributes  Version: 0.00     Price: $0.00  
Total Hits: 28  |  Today: 0Author: Joseph Finsterwald      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following step by step example will demonstrate how you can use Aspect Oriented Programming (AOP) to cast a collection of objects into a DataTable. This particular example will leverage the power of attributes, generics, and reflection to explicitly convert a collection of container classes into a DataTable....


1  2  3  4  5  6  7  8  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net