コード例 #1
0
        public void ServerToClient(PropertyValue pv, ClientPropertyValue cpv)
        {
            pv.NullCheck("pv");
            cpv.NullCheck("cpv");

            cpv.DataType = pv.Definition.DataType.ToClientPropertyDataType();
            cpv.Key = pv.Definition.Name;

            if (pv.StringValue.IsNullOrEmpty())
                cpv.StringValue = pv.Definition.DefaultValue;
            else
                cpv.StringValue = pv.StringValue;
        }