public LabelUtil.Label GetLabelAt(uint address) { for (int i = 0, n = _labels.Count; i < n; ++i) { if (address == ((LabelUtil.Label)_labels[i]).address) { return((LabelUtil.Label)_labels[i]); } } LabelUtil.Label newLabel = new LabelUtil.Label(); newLabel.address = address; newLabel.id = _labelCount++; _labels.Add(newLabel); return(newLabel); }
public LabelUtil.Label GetLabelAt(uint address) { for (int i = 0, n = _labels.Count; i < n; ++i) { if (address == ((LabelUtil.Label)_labels[i]).address) { return (LabelUtil.Label)_labels[i]; } } LabelUtil.Label newLabel = new LabelUtil.Label(); newLabel.address = address; newLabel.id = _labelCount++; _labels.Add(newLabel); return newLabel; }