示例#1
0
 /// <summary>
 /// Gets an instance of the <see cref="CodeModelHelper" /> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>An instance of the <see cref="CodeModelHelper" /> class.</returns>
 internal static CodeModelHelper GetInstance(CodeMaidPackage package)
 {
     return(_instance ?? (_instance = new CodeModelHelper(package)));
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeModelBuilder" /> class.
        /// </summary>
        /// <param name="package">The hosting package.</param>
        private CodeModelBuilder(CodeMaidPackage package)
        {
            _package = package;

            _codeModelHelper = CodeModelHelper.GetInstance(_package);
        }