/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System;
using System.Collections.ObjectModel;
namespace dnSpy.Contracts.Debugger.Engine {
///
/// Created by a
///
public sealed class DbgEngineRuntimeInfo {
///
/// GUID returned by
///
public Guid Guid { get; }
///
/// GUID returned by
///
public Guid RuntimeKindGuid { get; }
///
/// Name returned by
///
public string Name { get; }
///
/// Id returned by
///
public RuntimeId Id { get; }
///
/// Tags returned by
///
public ReadOnlyCollection Tags { get; }
///
/// Constructor
///
/// GUID returned by
/// GUID returned by
/// Name returned by
/// Id returned by
/// Tags returned by
public DbgEngineRuntimeInfo(Guid guid, Guid runtimeKindGuid, string name, RuntimeId id, ReadOnlyCollection tags) {
if (guid == Guid.Empty)
throw new ArgumentOutOfRangeException(nameof(guid));
if (runtimeKindGuid == Guid.Empty)
throw new ArgumentOutOfRangeException(nameof(runtimeKindGuid));
Guid = guid;
RuntimeKindGuid = runtimeKindGuid;
Name = name ?? throw new ArgumentNullException(nameof(name));
Id = id ?? throw new ArgumentNullException(nameof(id));
Tags = tags ?? throw new ArgumentNullException(nameof(tags));
}
}
}