Cosmos/source/Indy.IL2CPU/Compiler/Old/AssemblyCompiler.ServiceProvider.cs
mterwoord_cp acaa8e0a89
2009-10-17 13:45:47 +00:00

18 lines
No EOL
477 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Indy.IL2CPU.Compiler.Old
{
partial class AssemblyCompiler//: Indy.IL2CPU.IL.IServiceProvider
{
public T GetService<T>()
{
if(typeof(T) == typeof(IMetaDataInfoService)){
return (T)(object)this;
}
throw new Exception("Service '" + typeof(T).FullName + "' not found!");
}
}
}