Partial Interface in C#

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2009-04-09T13:01:36Z Indexed on 2010/06/08 7:22 UTC
Read the original article Hit count: 337

Filed under:

Does C# allows partial interface? i.e., in ManagerFactory1.cs class, I have

public partial interface IManagerFactory
{
	// Get Methods
	ITescoManager GetTescoManager();
	ITescoManager GetTescoManager(INHibernateSession session);
}

and in ManagerFactory.cs class, I have:

public partial interface IManagerFactory
{
	// Get Methods
	IEmployeeManager GetEmployeeManager();
	IEmployeeManager GetEmployeeManager(INHibernateSession session);
	IProductManager GetProductManager();
	IProductManager GetProductManager(INHibernateSession session);
	IStoreManager GetStoreManager();
	IStoreManager GetStoreManager(INHibernateSession session);
}

Both ManagerFactory and ManagerFactory1 are located in the same assembly.

© Stack Overflow or respective owner

Related posts about c#