blob: 99e3642bb225c1144c77cd96a7f2449dbdd6c858 [file] [log] [blame]
Constantin Ziesche02817f12020-08-04 21:40:43 +02001/*******************************************************************************
2* Copyright (c) 2020 Robert Bosch GmbH
3* Author: Constantin Ziesche (constantin.ziesche@bosch.com)
4*
5* This program and the accompanying materials are made available under the
6* terms of the Eclipse Public License 2.0 which is available at
7* http://www.eclipse.org/legal/epl-2.0
8*
9* SPDX-License-Identifier: EPL-2.0
10*******************************************************************************/
11using BaSyx.Models.Core.AssetAdministrationShell.Identification;
12using BaSyx.Models.Core.AssetAdministrationShell.References;
13
14namespace BaSyx.Models.Extensions
15{
16 public static class ReferenceExtensions
17 {
18 public static IReference CreateReference<T>(this T referable) where T : class, IReferable
19 {
20 IReference<T> reference = new Reference<T>(referable);
21 return reference;
22 }
23 }
24}