[amd64/tramp] hide interpreter specific trampoline behind ifdef
[mono.git] / mcs / class / referencesource / System.Activities.Presentation / System.Activities.Presentation / System / Activities / Presentation / Toolbox / ToolCreatedEventArgs.cs
1 //------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //------------------------------------------------------------
4
5 namespace System.Activities.Presentation.Toolbox
6 {
7     using System.ComponentModel;
8     using System.Diagnostics.CodeAnalysis;
9     using System.Runtime;
10     using System.Windows;
11
12     // This class represents event arguments for tool created event
13
14     [Fx.Tag.XamlVisible(false)]
15     public sealed class ToolCreatedEventArgs : RoutedEventArgs
16     {
17         IComponent[] components;
18
19         internal ToolCreatedEventArgs(RoutedEvent eventName, object sender, IComponent[] components)
20             : base(eventName, sender)
21         {
22             this.components = components;
23         }
24
25
26         [SuppressMessage(FxCop.Category.Performance, "CA1819:PropertiesShouldNotReturnArrays",
27             Justification = "Array type property does not clone the array in the getter. It references the same array instance.")]
28         public IComponent[] Components
29         {
30             get { return this.components; }
31         }
32     }
33 }