Public Bool Get Set Statement

时间:2014-02-10 23:02:20

标签: boolean

无论如何,这个语句应该有效,但是当我编译时会返回错误?想法?

public bool sheetCreatorSave {
    get {
        return (bool)this["sheetCreatorSave"];
    }
    set {
        this["sheetCreatorSave"] = (object)(bool)(value ? 1 : 0);
    }
}

0 个答案:

没有答案