// =================================================================== public LineHandle(ref Object line, PushGraph owner) { /* A small hack to get around the compiler error CS0051: */ /* * if (string.Compare(line.GetType().Name, "Line") != 0) * { * throw new System.ArithmeticException( * "LineHandle: First Parameter must be " + * "type of 'Line' cast to base 'Object'"); * } */ m_Line = line as Line; if (m_Line == null) { throw new System.ArgumentException("PushGraph: Invaid argument 1 in LineHandle."); } m_Owner = owner; }
// =================================================================== public LineHandle(ref Object line, PushGraph owner) { /* A small hack to get around the compiler error CS0051: */ /* if (string.Compare(line.GetType().Name, "Line") != 0) { throw new System.ArithmeticException( "LineHandle: First Parameter must be " + "type of 'Line' cast to base 'Object'"); } */ m_Line = line as Line; if (m_Line == null) { throw new System.ArgumentException("PushGraph: Invaid argument 1 in LineHandle."); } m_Owner = owner; }