forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIStateDescriptorFactory.cs
More file actions
27 lines (25 loc) · 986 Bytes
/
Copy pathIStateDescriptorFactory.cs
File metadata and controls
27 lines (25 loc) · 986 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//-----------------------------------------------------------------------
// <copyright file="IStateDescriptorFactory.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Microsoft.Management.UI.Internal
{
using System;
using System.Diagnostics.CodeAnalysis;
/// <summary>
/// Defines an interface for a factory that creates
/// StateDescriptors.
/// </summary>
/// <typeparam name="T">The type T used by the StateDescriptor.</typeparam>
[SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes")]
public interface IStateDescriptorFactory<T>
{
/// <summary>
/// Creates a new StateDescriptor based upon custom
/// logic.
/// </summary>
/// <returns>A new StateDescriptor.</returns>
StateDescriptor<T> Create();
}
}