KNFoundation.KNBundle.MainBundle C# (CSharp) Method

MainBundle() public static method

public static MainBundle ( ) : KNBundle
return KNBundle
        public static KNBundle MainBundle()
        {
            Assembly entryAssembly = Assembly.GetEntryAssembly();
            if (entryAssembly == null) {
                entryAssembly = Assembly.GetCallingAssembly();
            }

            FileInfo appInfo = new FileInfo(entryAssembly.Location);
            return KNBundle.BundleWithDirectoryPath(appInfo.DirectoryName);
        }