/
smwwiki
/
OneScript_fork
Обзор
Документация
Войти
/
smwwiki
/
OneScript_fork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/OneScript.Core/Commons/IObjectWrapper.cs
22 строки
637 B
Andrey Ovsiankin
IObjectWrapper перенесен в Commons
08 июн 2021, 16:54
08 июн 2021, 16:54
550ef1b
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ namespace OneScript.Commons { public interface IObjectWrapper { object UnderlyingObject { get; } } public static class WrapperHelper { public static T GetUnderlying<T>(this IObjectWrapper wrapper) { return (T) wrapper.UnderlyingObject; } } }