English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 1h 11m | 200 MB
C# attributes are a powerful way to add declarative “metadata” to your C# code. This course will teach you what the benefits of attributes are, how to leverage prebuilt attributes, and how to create and use your own custom attributes.
C# attributes are a powerful way to add declarative “metadata” to your C# code that can be used by visual designers at design time, control code compilation at build time, customize the experience during debugging, and control program execution at run time. In this course, C# Attributes: Power and Flexibility for Your Code, you’ll learn how to leverage the power of attributes in your C# applications. First, you’ll learn about some of the problems attributes can help you solve. Next, you’ll understand how you can benefit from some of the useful prebuilt attributes and how to provide values for attributes constructors and properties. Finally, you’ll explore how to go one step further and define and use your own custom attributes to give your solutions extra power and flexibility. When you’re finished with this course, you’ll have an appreciation for the power and flexibility C# attributes provide and how you can use them to expand your C# applications.
Table of Contents
Course Overview
1 Course Overview
Understanding the Hidden Power of Attributes
2 Introduction
3 What Are Attributes
4 Uses of Attributes
5 Applying Attributes to Code Elements
6 Attribute Inheritance
7 Getting Started
8 Summary
Leveraging the Power of Prebuilt Attributes in Your Code
9 Introduction
10 Understanding Attribute Constructors and Properties
11 Controlling the Debugging Experience
12 Marking Code as Deprecated
13 Conditionally Compiling Code
14 Setting Assembly Level Metadata
15 Exposing Internal Code to Other Assemblies
16 Applying Attributes to Return Values
17 Specifying Data Validation
18 Indicating That a Class Can Be Serialized
19 Summary
Gaining Flexibility and Expanding Your Solutions with Custom Attributes
20 Introduction
21 Defining Where a Custom Attribute Can Be Applied
22 Allowing a Custom Attribute to Be Used Multiple Times
23 Controlling Attribute Inheritance
24 Creating a Custom Display Attribute
25 Accessing Attributes at Runtime with Reflection
26 Applying a Custom Attribute
27 Adding a Class Level Custom Attribute
28 Adding a Multiple Use Custom Attribute
29 Summary Resources and Further Learning
Resolve the captcha to access the links!