私は次のコードを持っています:
[DisplayName("Created")]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime? Created { get; set; }
[DisplayName("Modified By")]
public string ModifiedBy { get; set; }
[DisplayName("Modified")]
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime? Modified { get; set; }
from d in data
select new Content.Grid
{
PartitionKey = d.PartitionKey,
RowKey = d.RowKey,
Order = d.Order,
Title = d.Title,e
Created = d.Created,
CreatedBy = d.CreatedBy,
Modified = d.Modified,
ModifiedBy = d.ModifiedBy
};
、、、がnullになる 可能性がd.Created
あります。d.CreatedBy
d.Modified
d.ModifiedBy
それらがnullの場合、selectがandを返し、andの日付を返すようにするにはどうすれn/a
ばよいですか?CreatedBy
ModifiedBy
January, 1, 2012
Created
Modified