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

Relationship Oriented Programming

, 12 Dec 2011
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
using System;

// Code from CPian leppie: http://www.codeproject.com/KB/cs/NonNullable.aspx?msg=2504221#xx2504221xx

sealed class Box<T> where T : struct
{
	readonly T value;

	private Box(T t)
	{
		value = t;
	}
	
	public static implicit operator T(Box<T> b)
	{
		return b.value;
	}

	public static implicit operator Box<T>(T t)
	{
		return new Box<T>(t);
	}

	public override bool Equals(object obj)
	{
		return value.Equals(obj);
	}

	public override int GetHashCode()
	{
		return value.GetHashCode();
	}

	public override string ToString()
	{
		return value.ToString();
	}
}

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 projets, 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 | Mobile
Web03 | 2.8.140916.1 | Last Updated 12 Dec 2011
Article Copyright 2011 by Marc Clifton
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid