public static NodeAttribute GetNodeAttribute(DateTimeAttribute attr)
{
switch (attr)
{
case DateTimeAttribute.LockDate:
return NodeAttribute.LockDate;
case DateTimeAttribute.LastLockUpdate:
return NodeAttribute.LastLockUpdate;
case DateTimeAttribute.CreationDate:
return NodeAttribute.CreationDate;
case DateTimeAttribute.ModificationDate:
return NodeAttribute.ModificationDate;
default:
throw new NotImplementedException("Unknown DateTimeAttribute");
}
}
public static NodeAttribute GetNodeAttribute(ReferenceAttribute attr)