﻿// NReflect - Easy assembly reflection
// Copyright (C) 2010-2011 Malte Ried
//
// This file is part of NReflect.
//
// NReflect is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// NReflect is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with NReflect. If not, see <http://www.gnu.org/licenses/>.

using System.Collections.Generic;
using NReflect.NRParameters;

namespace NReflect
{
  /// <summary>
  /// Classes implementing this interface can represent a generic
  /// entity or member.
  /// </summary>
  public interface IGeneric
  {
    /// <summary>
    /// Gets a list containing all type parameters.
    /// </summary>
    List<NRTypeParameter> GenericTypes { get; }

    /// <summary>
    /// Gets a value indicating wether this is generic.
    /// </summary>
    bool IsGeneric { get; }
  }
}