O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Core .NET Recipes

In this chapter we will cover:

  • Implementing the validation logic using the Repository pattern
  • Creating a custom validation attribute by extending the validation data annotation
  • Using XML to generate a localized validation message
  • Extending the validation attribute for localization
  • Creating custom attributes
  • Processing custom attributes via reflection
  • Using asynchronous file I/O for directory-to-directory copy
  • Accessing JSON using dynamic programming

Introduction

This chapter will cover recipes related to core concepts in .NET, which will include the following:

  • Metadata-driven programming: The first six recipes will cover how to use attributes as metadata for specific purposes such as validation and localization.
  • Reflection

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required