我有以下幾點:如何使用get從C#類返回布爾值?
public class Content {
public string PartitionKey { get; set; }
public string RowKey { get; set; }
...
}
public class ContentViewModel
{
public string RowKey { get; set; }
public Content Content { get; set; }
public Boolean UseRowKey { }
}
有人能告訴我怎麼可以編碼爲UseRowKey到只讀,併爲它如果Content.RowKey第一個字符是「X」返回true。
請閱讀關於MSDN上的屬性和字符串操作的一些信息,以便您更好地理解您要做的事情。 – Chris 2012-07-07 13:35:13