PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/V2.2/trunk/CAL/Desktop/Composite/Regions/IRegionAdapter.cs

#
C# | 33 lines | 7 code | 1 blank | 25 comment | 0 complexity | 042113b644be2d5ce4eac38b571e7c56 MD5 | raw file
 1//===================================================================================
 2// Microsoft patterns & practices
 3// Composite Application Guidance for Windows Presentation Foundation and Silverlight
 4//===================================================================================
 5// Copyright (c) Microsoft Corporation.  All rights reserved.
 6// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
 7// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
 8// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9// FITNESS FOR A PARTICULAR PURPOSE.
10//===================================================================================
11// The example companies, organizations, products, domain names,
12// e-mail addresses, logos, people, places, and events depicted
13// herein are fictitious.  No association with any real company,
14// organization, product, domain name, email address, logo, person,
15// places, or events is intended or should be inferred.
16//===================================================================================
17
18namespace Microsoft.Practices.Composite.Regions
19{
20    /// <summary>
21    /// Defines an interfaces to adapt an object and bind it to a new <see cref="IRegion"/>.
22    /// </summary>
23    public interface IRegionAdapter
24    {
25        /// <summary>
26        /// Adapts an object and binds it to a new <see cref="IRegion"/>.
27        /// </summary>
28        /// <param name="regionTarget">The object to adapt.</param>
29        /// <param name="regionName">The name of the region to be created.</param>
30        /// <returns>The new instance of <see cref="IRegion"/> that the <paramref name="regionTarget"/> is bound to.</returns>
31        IRegion Initialize(object regionTarget, string regionName);
32    }
33}