Esempio n. 1
0
                // ===================================================================
                public LineHandle(ref Object line, C2DPushGraph 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)line;
                    m_Owner = owner;
                }
Esempio n. 2
0
                // ===================================================================

                public LineHandle(ref Object line, C2DPushGraph 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)line;
                    m_Owner = owner;
                }