Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 1 | /******************************************************************************* |
| 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 | *******************************************************************************/ |
| 11 | using BaSyx.Models.Core.AssetAdministrationShell.Identification; |
| 12 | using BaSyx.Models.Core.AssetAdministrationShell.References; |
| 13 | |
| 14 | namespace 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 | } |