Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeModelManager" /> class.
        /// </summary>
        /// <param name="package">The hosting package.</param>
        private CodeModelManager(CodeMaidPackage package)
        {
            _package = package;

            _codeModelBuilder = CodeModelBuilder.GetInstance(_package);
            _codeModelCache   = new CodeModelCache();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets an instance of the <see cref="CodeModelBuilder" /> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>An instance of the <see cref="CodeModelBuilder" /> class.</returns>
 internal static CodeModelBuilder GetInstance(CodeMaidPackage package)
 {
     return(_instance ?? (_instance = new CodeModelBuilder(package)));
 }