Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
FileDialogFilter.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Presentation.Services
4 {
5  /// <summary>
6  /// A structure representing a filter for a file dialog.
7  /// </summary>
8  public struct FileDialogFilter
9  {
10  /// <summary>
11  /// The backing field for the <see cref="Description"/> property.
12  /// </summary>
13  private readonly string description;
14  /// <summary>
15  /// The backing field for the <see cref="ExtensionList"/> property.
16  /// </summary>
17  private readonly string extensionList;
18 
19  /// <summary>
20  /// Gets the description of this filter.
21  /// </summary>
22  public string Description { get { return description; } }
23  /// <summary>
24  /// Gets the list of extensions for this filter, concatenated in a string.
25  /// </summary>
26  public string ExtensionList { get { return extensionList; } }
27 
28  /// <summary>
29  /// Initializes a new instance of the <see cref="FileDialogFilter"/> structure.
30  /// </summary>
31  /// <param name="description">The description of this filter.</param>
32  /// <param name="extensionList">The list of extensions for this filter, concatenated in a string.</param>
33  public FileDialogFilter(string description, string extensionList)
34  {
35  this.description = description;
36  this.extensionList = extensionList;
37  }
38  }
39 }
FileDialogFilter(string description, string extensionList)
Initializes a new instance of the FileDialogFilter structure.
A structure representing a filter for a file dialog.