Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ConstraintFactory.cs « Factories « Composition « ComponentModel « System « ComponentModelUnitTest « Tests « System.ComponentModel.Composition « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: da087350756c6256b7e4ff2bd5faa05449d882c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.ComponentModel.Composition;
using System.Linq.Expressions;
using System.ComponentModel.Composition.Primitives;

namespace System.ComponentModel.Composition.Factories
{
    internal static class ConstraintFactory
    {
        public static Expression<Func<ExportDefinition, bool>> Create(string contractName)
        {
            return definition => definition.ContractName.Equals(contractName);
        }
    }
}