Clusterizator.Krab.Connection.Connection C# (CSharp) Метод

Connection() публичный Метод

Initializes a new instance of the Connection class.
/// Thrown if index or indexes are negative. ///
public Connection ( int firstIndex, int secondIndex ) : System
firstIndex int /// Index of first point. ///
secondIndex int /// Index of second point. ///
Результат System
        public Connection(int firstIndex, int secondIndex)
        {
            if ((firstIndex < 0) || (secondIndex < 0))
            {
                throw new ArgumentException("Point index can't be less than 0.");
            }

            Connected = false;
            FirstElementIndex = firstIndex;
            SecondElementIndex = secondIndex;
        }