New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

ImportConvention expression builder mock-up

28 Views
Copy Code Show/Hide Line Numbers
public interface IExpressionBuilder<T>
{
    T GetInstanceFromExpression();
}
 
public interface IImportConventionExpressionBuilder<TImportConvention> :
    IExpressionBuilder<TImportConvention> where TImportConvention : IImportConvention, new()
{
    IImportConventionExpressionBuilder<TImportConvention> AllowDefaultValue();
 
    IImportConventionExpressionBuilder<TImportConvention> As(string contractName);
 
    IImportConventionExpressionBuilder<TImportConvention> As<TContractType>();
 
    IImportConventionExpressionBuilder<TImportConvention> As<TContractType>(string contractName);
 
    IImportConventionExpressionBuilder<TImportConvention> AsNonShared();
 
    IImportConventionExpressionBuilder<TImportConvention> AsShared();
 
    IImportConventionExpressionBuilder<TImportConvention> Members(Expression<Func<Type, MemberInfo[]>> expression);
 
    IImportConventionExpressionBuilder<TImportConvention> Members<T>(Expression<Func<T, object>> expression);
 
    IImportConventionExpressionBuilder<TImportConvention> Recomposable();
 
    IImportConventionExpressionBuilder<TImportConvention> RequireMetadata(string name, Type type);
 
    IImportConventionExpressionBuilder<TImportConvention> RequireMetadata<TMetadataType>();
}
by TheCodeJunkie
  January 25, 2010 @ 1:29pm

Add a comment


Report Abuse
brought to you by:
West Wind Techologies


If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate