コード例 #1
0
        public static NameResolutionContext Import(IntelliSenseCache cache, CodeImportStatement importStatement)
        {
            Contract.Requires<ArgumentNullException>(cache != null, "cache");
            Contract.Requires<ArgumentNullException>(importStatement != null, "importStatement");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            return new ImportContext(cache, importStatement);
        }
コード例 #2
0
        public static NameResolutionContext Import(IntelliSenseCache cache, CodeImportStatement importStatement)
        {
            Contract.Requires <ArgumentNullException>(cache != null, "cache");
            Contract.Requires <ArgumentNullException>(importStatement != null, "importStatement");
            Contract.Ensures(Contract.Result <NameResolutionContext>() != null);

            return(new ImportContext(cache, importStatement));
        }
コード例 #3
0
 public ImportContext(IntelliSenseCache cache, CodeImportStatement importStatement)
     : this(cache, importStatement.FullName, importStatement.ImportOnDemand, importStatement.StaticImport)
 {
     _importStatement = importStatement;
 }
コード例 #4
0
 public ImportContext(IntelliSenseCache cache, CodeImportStatement importStatement)
     : this(cache, importStatement.FullName, importStatement.ImportOnDemand, importStatement.StaticImport)
 {
     _importStatement = importStatement;
 }