Пример #1
0
 /// <summary>
 /// Initializes a new instance of the ApiProperty class for specified ApiObject host and field key.
 /// </summary>
 /// <param name="host">The ApiObject containing the data.</param>
 /// <param name="key">The field key represented by this property.</param>
 /// <param name="converter">A JsonConverter object to format and parse the data, if special formatting is needed.</param>
 public ApiProperty(ApiObject host, string key, JsonConverterBase <T?>?converter) :
     base(host, key, converter)
 {
 }
Пример #2
0
        //public ApiPropertyBase() { }

        /// <summary>
        /// Initializes a new instance of the ApiProperty class for specified ApiObject host and field key.
        /// </summary>
        /// <param name="host">The ApiObject containing the data.</param>
        /// <param name="key">The field key represented by this property.</param>
        public ApiPropertyBase(ApiObject host, string key, JsonConverterBase <TNull>?converter = null)
        {
            _host      = host;
            Key        = key;
            _converter = converter;
        }