//解析抽奖方式 private void parseDrawWays(string str) { string[] strArr = str.Split('#'); ways = new DrawWaySample[strArr.Length]; for (int i = 0; i < strArr.Length; i++) { ways [i] = new DrawWaySample(strArr [i]); } }
public override void copy(object destObj) { base.copy(destObj); DrawWaySample dest = destObj as DrawWaySample; if (this.factors != null) { dest.factors = new int[this.factors.Length]; for (int i = 0; i < this.factors.Length; i++) { dest.factors [i] = this.factors [i]; } } }
public DrawWay(DrawWaySample sample) { this.sample = sample; }