public void Test_Implicit() { ConfigVector v = "{r: {a:1, b:2}}"; Aver.AreEqual(1, v.Node.Of("a").ValueAsInt()); Aver.AreEqual(2, v.Node.Of("b").ValueAsInt()); }
public User(Credentials credentials, SysAuthToken token, string name, Rights rights, DateTime?utcNow = null, ConfigVector props = null) : this(credentials, token, UserStatus.User, name, null, rights, utcNow, props) { }
} //for quicker serialization public User(Credentials credentials, SysAuthToken token, UserStatus status, string name, string descr, Rights rights, DateTime?utcNow = null, ConfigVector props = null) { m_Credentials = credentials; m_AuthenticationToken = token; m_Status = status; m_Name = name; m_Description = descr; m_Rights = rights; m_StatusTimeStampUTC = utcNow ?? Ambient.UTCNow; m_Props = props; }