Click here to Skip to main content
15,891,567 members
Articles / Programming Languages / C# 4.0

C# Easy Extension Properties

Rate me:
Please Sign up or sign in to vote.
4.97/5 (36 votes)
30 May 2012CPOL10 min read 202.4K   3.2K   103  
(v2) How to convince your C# objects to carry extended properties, in real time, and with no modifications in their code. V2 includes a collector for disposable properties.

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.MB.Tools.MetaProperties", "Test.MB.Tools.MetaProperties\Test.MB.Tools.MetaProperties.csproj", "{71BA1A7E-B141-4B95-9B8A-702EA998A98A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B07034F8-BB9D-4BC8-B05E-9D365C540869}"
	ProjectSection(SolutionItems) = preProject
		..\_Temporal_OLD.cs = ..\_Temporal_OLD.cs
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MB.Tools.MetaProperties", "..\MB.Tools.MetaProperties\MB.Tools.MetaProperties.csproj", "{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Debug|Mixed Platforms = Debug|Mixed Platforms
		Debug|x86 = Debug|x86
		Release|Any CPU = Release|Any CPU
		Release|Mixed Platforms = Release|Mixed Platforms
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Debug|Any CPU.ActiveCfg = Debug|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Debug|Mixed Platforms.Build.0 = Debug|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Debug|x86.ActiveCfg = Debug|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Debug|x86.Build.0 = Debug|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Release|Any CPU.ActiveCfg = Release|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Release|Mixed Platforms.ActiveCfg = Release|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Release|Mixed Platforms.Build.0 = Release|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Release|x86.ActiveCfg = Release|x86
		{71BA1A7E-B141-4B95-9B8A-702EA998A98A}.Release|x86.Build.0 = Release|x86
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Debug|x86.ActiveCfg = Debug|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Release|Any CPU.Build.0 = Release|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
		{BB95B35B-4CDC-4FB1-8C36-006ACBBFFBBB}.Release|x86.ActiveCfg = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Spain Spain
mbarbac has worked in start-ups, multinational tech companies, and consulting ones, serving as CIO, CTO, SW Development Director, and Consulting Director, among many other roles.

Solving complex puzzles and getting out of them business value has ever been among his main interests - and that's why he has spent his latest 25 years trying to combine his degree in Theoretical Physics with his MBA... and he is still trying to figure out how all these things can fit together.

Even if flying a lot across many countries, along with the long working days that are customary in IT management and Consultancy, he can say that, after all, he lives in Spain (at least the weekends).

Comments and Discussions