/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
v2.0.0-RC3
src/ScriptEngine/Machine/AttachedContext.cs
27 строк
866 B
EvilBeaver
Поисправлял немного предупреждений от анализатора
18 сен 2022, 09:55
18 сен 2022, 09:55
fd2865d
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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/. ----------------------------------------------------------*/ using OneScript.Contexts; namespace ScriptEngine.Machine { public class AttachedContext { private AttachedContext(IAttachableContext instance, bool asDynamic) { Instance = instance; } public IAttachableContext Instance { get; } public static AttachedContext Create(IAttachableContext context) => new AttachedContext(context, false); public static AttachedContext CreateDynamic(IAttachableContext context) => new AttachedContext(context, true); } }