CryEngine.Utilities.AssemblyReferenceHandler.GetNamespacesFromScriptFile C# (CSharp) Method

GetNamespacesFromScriptFile() private method

Gets the required assemblies for the script passed to the method. Note: Does NOT exclude assemblies already loaded by CryMono.
private GetNamespacesFromScriptFile ( string scriptFilePath ) : IEnumerable
scriptFilePath string
return IEnumerable
        private IEnumerable<string> GetNamespacesFromScriptFile(string scriptFilePath)
        {
            if(string.IsNullOrEmpty(scriptFilePath))
                return null;

            using(var stream = new FileStream(scriptFilePath, FileMode.Open))
            {
                return GetNamespacesFromStream(stream);
            }
        }