Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Relationship Oriented Programming

, 12 Dec 2011 CPOL
Modeling the Romeo and Juliet meta-model.
ROP.zip
ROP
Properties
Settings.settings
ROPLib
LogicalModel
PhysicalModel
Properties
XTreePropertyGrid
Clifton.Tools.Data
articles
raw Serializer
RawSerializer
codepaths.png
codepaths.vsd
rawSerializer1.PNG
rawSerializer2.PNG
rawSerializer3.PNG
bin
Debug
Clifton.Tools.Data.dll
MemoryLeakTesting
Release
x86
Debug
Clifton.Tools.Data.dll
MemoryLeakTesting
Release
Xml Documentation
Xml Documentation
obj
Debug
TempPE
x86
Debug
Refactor
TempPE
UnitTests
Clifton.Tools.Strings
bin
Debug
Clifton.Tools.Strings.dll
Release
Xml Documentation
obj
Debug
Refactor
TempPE
Xml Documentation
TempPE
UnitTests
Clifton.Windows.Forms
bin
Debug
Clifton.Tools.Strings.dll
Clifton.Windows.Forms.dll
Release
obj
Debug
Refactor
TempPE
Properties
Resources
tv_minus.bmp
tv_plus.bmp
XmlTree
Myxaml 2.0
MyXaml.Core
bin
Debug
Clifton.Tools.Strings.dll
MyXaml.Core.dll
UnitTest.dll
Release
Xml Documentation
doc
MyXamlCoreUnitTests
obj
Debug
Refactor
TempPE
Release
Xml Documentation
TempPE
MyXaml.WinForms
bin
Debug
Clifton.Tools.Strings.dll
MyXaml.Core.dll
MyXaml.WinForms.dll
UnitTest.dll
Release
Xml Documentation
obj
Debug
Refactor
TempPE
Xml Documentation
TempPE
ROPLib
bin
Debug
Clifton.Tools.Strings.dll
ROPLib.dll
ROPLib.Interfaces.dll
XTreeInterfaces.dll
Release
obj
Debug
Refactor
TempPE
Properties
ROPLib.csproj.user
SQLite.NET
System.Data.SQLite.dll
System.Data.SQLite.Linq.dll
SQLLiteDataProvider
bin
Debug
Clifton.Tools.Strings.dll
ROPLib.dll
ROPLib.Interfaces.dll
SQLLiteDataProvider.dll
System.Data.SQLite.dll
System.Data.SQLite.Linq.dll
XTreeInterfaces.dll
Release
obj
Debug
TempPE
Properties
UnitTest
bin
Debug
UnitTest.dll
Release
Xml Documentation
obj
Debug
Refactor
TempPE
Xml Documentation
TempPE
UnitTest.csproj.user
XTreeIIDemo
bin
Debug
Clifton.Tools.Data.dll
Clifton.Tools.Strings.dll
Clifton.Windows.Forms.dll
DataSetDataProvider.dll
MyXaml.Core.dll
MyXaml.WinForms.dll
romeo_and_juliet.dataset
romeo_and_juliet.model
rop.db
rop.model
ROPLib.dll
ROPLib.Interfaces.dll
schemaEditor.myxaml
SQLLiteDataProvider.dll
System.Data.SQLite.dll
test.db
UnitTest.dll
XTreeIIDemo.exe
XTreeIIDemo.vshost.exe
XTreeIIDemo.vshost.exe.manifest
XTreeInterfaces.dll
Release
DataSetDataProvider
bin
Debug
Clifton.Tools.Data.dll
Clifton.Tools.Strings.dll
DataSetDataProvider.dll
ROPLib.dll
ROPLib.Interfaces.dll
XTreeInterfaces.dll
Release
obj
Debug
TempPE
Properties
DX Model Data Viewer
obj
Debug
Refactor
TempPE
Properties
licenses.licx
ROPLib.Interfaces
bin
Debug
ROPLib.Interfaces.dll
Release
obj
Debug
TempPE
Properties
XTreeIIDemo.csproj.user
XTreeIIDemo.suo
XTreeInterfaces
bin
Debug
XTreeInterfaces.dll
Release
obj
Debug
TempPE
Properties
/*
 * Copyright (c) 2004, 2005 MyXaml
 * All Rights Reserved
 * 
 * Licensed under the terms of the GNU General Public License
 * http://www.gnu.org/licenses/licenses.html#GPL
*/

using System;

namespace MyXaml.Core
{
	/// <summary>
	/// This attribute can be applied to a public or non-public field in a class
	/// instantiated by the parser.  Any fields marked with this attribute are
	/// expected to be initialized by an object instantiated during markup processing
	/// and having a "def" prefix.
	/// </summary>
	[AttributeUsage(AttributeTargets.Field, AllowMultiple=false, Inherited=false)]
	public sealed class MyXamlAutoInitializeAttribute : Attribute
	{
		/// <summary>
		/// The alias to use instead of the field name.
		/// </summary>
		private string alias;

		/// <summary>
		/// Instead of using the field name, an optional alias can be used that
		/// matches the name of the object instantiated during markup processing.
		/// </summary>
		public string Alias
		{
			get {return alias;}
			set {alias=value;}
		}

		/// <summary>
		/// Constructor.  The instance assigned to this field must be named using
		/// the "def" prefix with the same name.
		/// </summary>
		public MyXamlAutoInitializeAttribute()
		{
			alias=null;
		}

		/// <summary>
		/// Constructor.  The instances assigned to this field must use the supplied
		/// alias name in the "def:Name=" markup.
		/// </summary>
		/// <param name="alias">The alias to use instead of the field name.</param>
		public MyXamlAutoInitializeAttribute(string alias)
		{
			this.alias=alias;
		}
	}
}

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)

Share

About the Author

Marc Clifton

United States United States
Marc is the creator of two open source projects, MyXaml, a declarative (XML) instantiation engine and the Advanced Unit Testing framework, and Interacx, a commercial n-tier RAD application suite.  Visit his website, www.marcclifton.com, where you will find many of his articles and his blog.

Marc lives in Philmont, NY.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.1 | Last Updated 12 Dec 2011
Article Copyright 2011 by Marc Clifton
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid