Simple play icon Course
Skills Expanded

C# 7 Attributes: Power and Flexibility for Your Code

by Jason Roberts

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.

What you'll learn

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# 7 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

With over 15 years of experience in both frontend and backend software development, Jason Roberts is a freelance developer, trainer, and author. He holds a Bachelor of Science degree in computing, is the author of several books, and writes at his blog DontCodeTired.com. Jason is an open source contributor and in addition to enterprise software development, he has designed and developed Windows Store and Windows Phone apps.

Ready to upskill? Get started