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
 


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


Search:
What's New - What's Hot
How to use AD Attributes not represented in UserPrincipal, GroupPrincipal and ComputerPrincipal  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: Raymund Macaalay      Rating:  
Read Reviews | Write Review |  Your Rating: 

Using System.DirectoryServices.AccountManagement comapred to just using System.DirectoryServices is way much simpler just look at these samples Active Directory and .NET 3.5/4.0 and Active Directory and .NET 2.0 clearly from those .NET3.5/4.0 is straightforward than the other but one thing is missing, exposing other attributes that are not represented in UserPrincipal, GroupPrincipal and ComputerPrincipal....

CorrelationInitializerAttribute Class  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: 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....

Using Custom Attributes to Map Database Tables and Columns to Classes and Fields  Version: 0.00     Price: $0.00  
Total Hits: 39  |  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: 41  |  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....

Armadillo: Unit Testing of inline SQL with a little help from Attributes and Reflection  Version: 0.00     Price: $0.00  
Total Hits: 39  |  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...

DataTable Generator Using Attributes  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: TeX HeX      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates a first version of a DataTable Generator. This generator uses information found in custom attributes on any class, and transforms this class, or several instances of it, to a System.Data.DataTable....

XSD Tutorial - Part 1 of 5 - Elements and Attributes  Version: 0.00     Price: $0.00  
Total Hits: 17  |  Today: 0Author: Simon Sprott      Rating:  
Read Reviews | Write Review |  Your Rating: 

First let's look at what an XML schema is. A schema formally describes what a given XML document contains, in the same way a database schema describes the data that can be contained in a database (table structure, data types). An XML schema describes the coarse shape of the XML document, what fields an element can contain, which sub elements it can contain etc. It can also describe the values that can be placed into any element or attribute....

Attribute or Styles in GDI+  Version: 0.00     Price: $0.00  
Total Hits: 24  |  Today: 0Author: Puran Mehra      Rating:  
Read Reviews | Write Review |  Your Rating: 

In typography, the combination of a typeface name (sometimes referred to as a face name) and a point size (sometimes referred to as the em size) represents a font. A typeface name is a combination of font family and the font style (also referred to as font attributes). Each typeface belongs to a font family such as Times News Roman, Arial, or Courier .The Courier family, for example, includes the typeface Courier New, Courier New Bold, and Courier New Italic....

Dynamic, Object to Object Converter  Version: 0.00     Price: $0.00  
Total Hits: 37  |  Today: 0Author: Amyn Batliwala      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article I hope to show you how to use attributes to create a dynamic converter so that you do not need to create a new converter for every conversion. I developed this to facilitate me in converting a DTO object to a Domain (Entity) object....

Assembly Attributes  Version: 0.00     Price: $0.00  
Total Hits: 43  |  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: 39  |  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....

Simple Attribute Based Validation  Version: 0.00     Price: $0.00  
Total Hits: 29  |  Today: 0Author: Ennis Ray Lynch, Jr.      Rating:  
Read Reviews | Write Review |  Your Rating: 

This quick introduction will provide the tools required to generate your own attribute based validation scheme. The methods presented here (though I have not had an opportunity to test them in production) seem to offer a powerful and simple method for validating objects. The original design was to validate against a database before allowing a save that would fail, however, in testing and tweaking I soon discovered that I could add more powerful business level validation attributes. I will leave ...

Further attributes - method based attributes and data conversion for business objects  Version: 0.00     Price: $0.00  
Total Hits: 53  |  Today: 0Author: Malisa Ncube      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a follow-up to the "An attribute based approach to business object validation" article in which i introduced the use attributes and reflection to validate business objects. I also promised to write another article on data converters and method based validators, and here it is....

Casting from a Collection to a Data Table using Generics and Attributes  Version: 0.00     Price: $0.00  
Total Hits: 37  |  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....

Working with Attributes and Resources of XAML in Windows Phone 7  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: Charles Petzold      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many classes that you use in XAML have something called a ContentProperty attribute. This word “attribute” has different meanings in .NET and XML; here I’m talking about the .NET attribute, which refers to some additional information that is associated with a class or a member of that class....

Generate SQL Statements with objects, Attributes and Reflection  Version: 0.00     Price: $0.00  
Total Hits: 13  |  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: 9  |  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: 10  |  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. */...

Using BindAttribute In ASP.NET MVC To Exclude Bindable Data  Version: 0.00     Price: $0.00  
Total Hits: 13  |  Today: 0Author: Malcolm Sheridan      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you've used MVC you'll know how much time is saved thanks to model binding. That's where a form post is matched to a strongly typed object. This can save you time initially but it can also provide a way for a malicious user to exploit vulnerabilities in your code if you're not careful. You can optionally override what values to bind and what not to bind automatically. In my opinion it's better to code what not to allow in this case....

Automatic ViewState Properties with the ViewState attribute  Version: 0.00     Price: $0.00  
Total Hits: 8  |  Today: 0Author: kennysun      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article will demo how to implement automatic ViewState properties by attribute....


1  2  3  4  5  6  7  8  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net