Click here to Skip to main content
15,884,628 members
Articles / Desktop Programming / Windows Forms

Do You Really Want To Be Agile?

Rate me:
Please Sign up or sign in to vote.
4.91/5 (50 votes)
29 Dec 2011CPOL44 min read 97.8K   735   112  
A walk on the wild side using Relationship Oriented Programming.
/*
 * Copyright (c) 2004-2007 Marc Clifton
 * All Rights Reserved
 * 
 * This code has been placed in the public domain and can be used and modified
 * freely in both open source and commercial applications, as long as the above
 * copyright is retained in this comment header.
*/

using System;
using System.Xml;

namespace MyXaml.Core
{
	/// <summary>
	/// Container for instance information.  Used while processing the object.
	/// </summary>
	public class ObjectInfo
	{
		private object instance;
		private bool hasPropertyDeclaration;
		private string propertyName;
		private XmlAttribute returnType;

		/// <summary>
		/// Get/set the flag indiciating that the instance has a property declaration.
		/// </summary>
		public bool HasPropertyDeclaration
		{
			get {return hasPropertyDeclaration;}
			set {hasPropertyDeclaration=value;}
		}

		/// <summary>
		/// Get/set the property name of the property declaration.
		/// </summary>
		public string PropertyName
		{
			get {return propertyName;}
			set {propertyName=value;}
		}

		/// <summary>
		/// Get/set the instance.
		/// </summary>
		public object Instance
		{
			get {return instance;}
		}

		/// <summary>
		/// Get set the return type attribute.
		/// </summary>
		public XmlAttribute ReturnType
		{
			get {return returnType;}
			set {returnType=value;}
		}

		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="instance">The object instance.</param>
		public ObjectInfo(object instance)
		{
			this.instance=instance;
			hasPropertyDeclaration=false;
			propertyName=String.Empty;
		}
	}
}

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
Architect Interacx
United States United States
Blog: https://marcclifton.wordpress.com/
Home Page: http://www.marcclifton.com
Research: http://www.higherorderprogramming.com/
GitHub: https://github.com/cliftonm

All my life I have been passionate about architecture / software design, as this is the cornerstone to a maintainable and extensible application. As such, I have enjoyed exploring some crazy ideas and discovering that they are not so crazy after all. I also love writing about my ideas and seeing the community response. As a consultant, I've enjoyed working in a wide range of industries such as aerospace, boatyard management, remote sensing, emergency services / data management, and casino operations. I've done a variety of pro-bono work non-profit organizations related to nature conservancy, drug recovery and women's health.

Comments and Discussions