Bickle.ReflectionWrapping.ListenerWrapper.GetAssemblies C# (CSharp) Method

GetAssemblies() private static method

private static GetAssemblies ( Type t ) : IEnumerable
t System.Type
return IEnumerable
        private static IEnumerable<Assembly> GetAssemblies(Type t)
        {
            var assembly = t.Assembly;
            yield return assembly;
            foreach (var referencedAssembly in assembly.GetReferencedAssemblies())
            {
                yield return Assembly.Load(referencedAssembly);
            }
        }