Starting writing a few unit tests for the new DynamicNode codebase. Will of course leave the original DynamicNode stuff in its current place for backwards compatibility but will deprecate many of the classes which will call the new ones.
28 lines
497 B
C#
28 lines
497 B
C#
using System;
|
|
|
|
namespace Umbraco.Core.Dynamics
|
|
{
|
|
internal class DynamicProperty
|
|
{
|
|
readonly string _name;
|
|
readonly Type _type;
|
|
|
|
public DynamicProperty(string name, Type type)
|
|
{
|
|
if (name == null) throw new ArgumentNullException("name");
|
|
if (type == null) throw new ArgumentNullException("type");
|
|
this._name = name;
|
|
this._type = type;
|
|
}
|
|
|
|
public string Name
|
|
{
|
|
get { return _name; }
|
|
}
|
|
|
|
public Type Type
|
|
{
|
|
get { return _type; }
|
|
}
|
|
}
|
|
} |