/* * 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.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)