port from perforce
This commit is contained in:
31
aiwaz/Aiwaz.Contracts/Reference.cs
Normal file
31
aiwaz/Aiwaz.Contracts/Reference.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
namespace Aiwaz.Contracts
|
||||
{
|
||||
public class Reference
|
||||
{
|
||||
public Reference(object inValue)
|
||||
{
|
||||
this.RawValue = inValue;
|
||||
}
|
||||
|
||||
public Reference()
|
||||
{
|
||||
}
|
||||
|
||||
public object RawValue { get; set; }
|
||||
}
|
||||
|
||||
public class ReferenceT<T> : Reference
|
||||
{
|
||||
public ReferenceT(T inValue)
|
||||
{
|
||||
this.RawValue = inValue;
|
||||
}
|
||||
|
||||
public ReferenceT()
|
||||
{
|
||||
}
|
||||
|
||||
public T Value { get { return (T)this.RawValue; } set { this.RawValue = value; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user