コード例 #1
0
        public EntityProperty Convert(DateTime?input)
        {
            if (input.HasValue)
            {
                DateTimeToEntityPropertyConverter.ThrowIfUnsupportedValue(input.Value);
            }

            return(new EntityProperty(input));
        }
コード例 #2
0
 public EntityProperty Convert(DateTimeOffset input)
 {
     DateTimeToEntityPropertyConverter.ThrowIfUnsupportedValue(input.UtcDateTime);
     return(new EntityProperty(input));
 }