AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DataEventArgs.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using System;
5 
6 namespace HoloToolkit.Unity.SpatialMapping
7 {
8  public static class DataEventArgs
9  {
10  public static DataEventArgs<TData> Create<TData>(TData data)
11  {
12  return new DataEventArgs<TData>(data);
13  }
14  }
15 
16  [Serializable]
17  public class DataEventArgs<TData> : EventArgs
18  {
19  public TData Data { get; private set; }
20 
21  public DataEventArgs(TData data)
22  {
23  Data = data;
24  }
25  }
26 }