blob: 0d8f668bceb526cd2430b0c2f1168224502b6964 [file] [log] [blame]
Constantin Ziesche857c7ab2020-02-25 11:24:51 +01001/*******************************************************************************
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;
12
13namespace BaSyx.Models.Extensions
14{
15 public static class SubmodelElementExtensions
16 {
17 public static T ToModelElement<T>(this IReferable referable) where T : class, IReferable
18 {
19 return referable as T;
20 }
21 }
22}