C# Attributes: Power and Flexibility for Your Code

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.
Course info
Rating
(53)
Level
Intermediate
Updated
Jun 19, 2018
Duration
1h 11m
Table of contents
Description
Course info
Rating
(53)
Level
Intermediate
Updated
Jun 19, 2018
Duration
1h 11m
Description

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.

About the author
About the author

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More from the author
Working with Nulls in C#
Intermediate
2h 9m
Aug 19, 2019
Mocking with Moq and NUnit
Intermediate
1h 53m
Feb 22, 2019
More courses by Jason Roberts
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Jason Roberts. Welcome to my course, C# Attributes: Power and Flexibility for Your Code. I'm a Microsoft MVP, freelance developer, and author. In this course, you're going to learn what attributes are and how attributes can give you the power to add a new dimension to your C# code. Some of the major topics that we'll cover in this course include understanding the hidden power of attributes, how to use and configure many of the prebuilt attributes provided to you, and even how to define and use your own attributes in your C# applications. By the end of this course, you'll understand how C# attributes work and how to make use of them to create even more powerful C# solutions. Before beginning the course, it's recommended that you have at least a basic understanding of C#. I hope you'll join me on this journey with the C# Attributes: Power and Flexibility for Your Code course at Pluralsight.