public void MarkerInterface(Int32 numberIterations) { for (int i = 0; i < numberIterations; ++i) { object o = new MarkedWithInterface(); IMarker m = o as IMarker; if (m != null) { m.GetHashCode(); } } }
public override int GetHashCode() { return(m_Marker != null ? m_Marker.GetHashCode() : 0); }