adderproperties.cs

来自「asp.net技术内幕的书配源码」· CS 代码 · 共 35 行

CS
35
字号
using System;

namespace myComponents {

public class AdderProperties {

  private int _firstValue;
  private int _secondValue;

 public int FirstValue {
    get {
      return _firstValue;
    }
    set {
      _firstValue = value;
    }
  }

 public int SecondValue {
    get {
      return _secondValue;
    }
    set {
      _secondValue = value;
    }
  }

 int AddValues() {
    return _firstValue + _secondValue;
  }

}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?