基本信息
源码名称:C#中的Task介绍
源码大小:0.32M
文件格式:.zip
开发语言:C#
更新时间:2023-12-20
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍
C#中的Task介绍
通过简单的代码实现,介绍了.NET4.0中的Task类的使用,比较了Task和Thread的区别。适合新手学习用。

.
├── C#中的Task介绍.zip
├── MyPim01.suo
├── Tasks
│   ├── BlockingOperations
│   │   ├── BlockingOperations.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── BlockingOperations.exe
│   │   │       ├── BlockingOperations.pdb
│   │   │       ├── BlockingOperations.vshost.exe
│   │   │       └── BlockingOperations.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── BlockingOperations.csproj.FileListAbsolute.txt
│   │               ├── BlockingOperations.exe
│   │               ├── BlockingOperations.pdb
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               └── TempPE
│   ├── CancellingOneOfSeveralTasks
│   │   ├── CancellingOneOfSeveralTasks.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── CancellingOneOfSeveralTasks.exe
│   │   │       ├── CancellingOneOfSeveralTasks.pdb
│   │   │       ├── CancellingOneOfSeveralTasks.vshost.exe
│   │   │       └── CancellingOneOfSeveralTasks.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── CancellingOneOfSeveralTasks.csproj.FileListAbsolute.txt
│   │               ├── CancellingOneOfSeveralTasks.exe
│   │               ├── CancellingOneOfSeveralTasks.pdb
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               └── TempPE
│   ├── CancellingSingleTask
│   │   ├── CancellingSingleTask.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── CancellingSingleTask.exe
│   │   │       ├── CancellingSingleTask.pdb
│   │   │       ├── CancellingSingleTask.vshost.exe
│   │   │       └── CancellingSingleTask.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── CancellingSingleTask.csproj.FileListAbsolute.txt
│   │               ├── CancellingSingleTask.exe
│   │               ├── CancellingSingleTask.pdb
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               └── TempPE
│   ├── CreatingTasks
│   │   ├── CreatingTasks.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   ├── Debug
│   │   │   │   ├── CreateTask01.exe
│   │   │   │   ├── CreateTask01.vshost.exe.manifest
│   │   │   │   ├── CreatingTasks.exe
│   │   │   │   ├── CreatingTasks.pdb
│   │   │   │   ├── CreatingTasks.vshost.exe
│   │   │   │   └── CreatingTasks.vshost.exe.manifest
│   │   │   └── Release
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── CreatingTasks.csproj.FileListAbsolute.txt
│   │               ├── CreatingTasks.exe
│   │               ├── CreatingTasks.pdb
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               └── TempPE
│   ├── HandleUsingExHandle
│   │   ├── HandleUsingExHandle.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── HandleUsingExHandle.exe
│   │   │       ├── HandleUsingExHandle.pdb
│   │   │       ├── HandleUsingExHandle.vshost.exe
│   │   │       └── HandleUsingExHandle.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── HandleUsingExHandle.csproj.FileListAbsolute.txt
│   │               ├── HandleUsingExHandle.exe
│   │               ├── HandleUsingExHandle.pdb
│   │               └── TempPE
│   ├── HandlingByReadingTaskValues
│   │   ├── HandlingByReadingTaskValues.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── HandlingByReadingTaskValues.exe
│   │   │       ├── HandlingByReadingTaskValues.pdb
│   │   │       ├── HandlingByReadingTaskValues.vshost.exe
│   │   │       └── HandlingByReadingTaskValues.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── HandlingByReadingTaskValues.csproj.FileListAbsolute.txt
│   │               ├── HandlingByReadingTaskValues.exe
│   │               ├── HandlingByReadingTaskValues.pdb
│   │               └── TempPE
│   ├── HandlingExceptionsUsingTryCatch
│   │   ├── HandlingExceptionsUsingTryCatch.csproj
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── HandlingExceptionsUsingTryCatch.exe
│   │   │       ├── HandlingExceptionsUsingTryCatch.pdb
│   │   │       ├── HandlingExceptionsUsingTryCatch.vshost.exe
│   │   │       └── HandlingExceptionsUsingTryCatch.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── HandlingExceptionsUsingTryCatch.csproj.FileListAbsolute.txt
│   │               ├── HandlingExceptionsUsingTryCatch.exe
│   │               ├── HandlingExceptionsUsingTryCatch.pdb
│   │               └── TempPE
│   ├── Readme.txt
│   ├── TasksArticle1.sln
│   ├── TasksArticle1.suo
│   ├── ThreadsVersusTasks
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   └── AssemblyInfo.cs
│   │   ├── ThreadsVersusTasks.csproj
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── ThreadsVersusTasks.exe
│   │   │       ├── ThreadsVersusTasks.pdb
│   │   │       ├── ThreadsVersusTasks.vshost.exe
│   │   │       └── ThreadsVersusTasks.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── TempPE
│   │               ├── ThreadsVersusTasks.csproj.FileListAbsolute.txt
│   │               ├── ThreadsVersusTasks.exe
│   │               └── ThreadsVersusTasks.pdb
│   ├── UncaughtExceptionInWinFormsDemoApp
│   │   ├── Form1.Designer.cs
│   │   ├── Form1.cs
│   │   ├── Form1.resx
│   │   ├── Program.cs
│   │   ├── Properties
│   │   │   ├── AssemblyInfo.cs
│   │   │   ├── Resources.Designer.cs
│   │   │   ├── Resources.resx
│   │   │   ├── Settings.Designer.cs
│   │   │   └── Settings.settings
│   │   ├── UncaughtExceptionInWinFormsDemoApp.csproj
│   │   ├── bin
│   │   │   └── Debug
│   │   │       ├── UncaughtExceptionInWinFormsDemoApp.exe
│   │   │       ├── UncaughtExceptionInWinFormsDemoApp.pdb
│   │   │       ├── UncaughtExceptionInWinFormsDemoApp.vshost.exe
│   │   │       └── UncaughtExceptionInWinFormsDemoApp.vshost.exe.manifest
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── GenerateResource.read.1.tlog
│   │               ├── GenerateResource.write.1.tlog
│   │               ├── TempPE
│   │               ├── UncaughtExceptionInWinFormsDemoApp.Form1.resources
│   │               ├── UncaughtExceptionInWinFormsDemoApp.Properties.Resources.resources
│   │               ├── UncaughtExceptionInWinFormsDemoApp.csproj.FileListAbsolute.txt
│   │               ├── UncaughtExceptionInWinFormsDemoApp.exe
│   │               └── UncaughtExceptionInWinFormsDemoApp.pdb
│   ├── WPFDispatcherSynchonizationContext
│   │   ├── App.xaml
│   │   ├── App.xaml.cs
│   │   ├── MainWindow.xaml
│   │   ├── MainWindow.xaml.cs
│   │   ├── Properties
│   │   │   ├── AssemblyInfo.cs
│   │   │   ├── Resources.Designer.cs
│   │   │   ├── Resources.resx
│   │   │   ├── Settings.Designer.cs
│   │   │   └── Settings.settings
│   │   ├── WPFDispatcherSynchonizationContext.csproj
│   │   ├── bin
│   │   │   ├── Debug
│   │   │   │   ├── WPFDispatcherSynchonizationContext.exe
│   │   │   │   ├── WPFDispatcherSynchonizationContext.pdb
│   │   │   │   ├── WPFDispatcherSynchonizationContext.vshost.exe
│   │   │   │   └── WPFDispatcherSynchonizationContext.vshost.exe.manifest
│   │   │   └── Release
│   │   └── obj
│   │       └── x86
│   │           └── Debug
│   │               ├── App.g.cs
│   │               ├── App.g.i.cs
│   │               ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │               ├── GenerateResource.read.1.tlog
│   │               ├── GenerateResource.write.1.tlog
│   │               ├── MainWindow.baml
│   │               ├── MainWindow.g.cs
│   │               ├── MainWindow.g.i.cs
│   │               ├── TempPE
│   │               ├── WPFDispatcherSynchonizationContext.Properties.Resources.resources
│   │               ├── WPFDispatcherSynchonizationContext.csproj.FileListAbsolute.txt
│   │               ├── WPFDispatcherSynchonizationContext.exe
│   │               ├── WPFDispatcherSynchonizationContext.g.resources
│   │               ├── WPFDispatcherSynchonizationContext.pdb
│   │               ├── WPFDispatcherSynchonizationContext_MarkupCompile.cache
│   │               └── WPFDispatcherSynchonizationContext_MarkupCompile.i.cache
│   └── WinformsSynchonizationContext
│       ├── Form1.Designer.cs
│       ├── Form1.cs
│       ├── Form1.resx
│       ├── Program.cs
│       ├── Properties
│       │   ├── AssemblyInfo.cs
│       │   ├── Resources.Designer.cs
│       │   ├── Resources.resx
│       │   ├── Settings.Designer.cs
│       │   └── Settings.settings
│       ├── WinformsSynchonizationContext.csproj
│       ├── bin
│       │   └── Debug
│       │       ├── WinformsSynchonizationContext.exe
│       │       ├── WinformsSynchonizationContext.pdb
│       │       ├── WinformsSynchonizationContext.vshost.exe
│       │       └── WinformsSynchonizationContext.vshost.exe.manifest
│       └── obj
│           └── x86
│               └── Debug
│                   ├── DesignTimeResolveAssemblyReferences.cache
│                   ├── DesignTimeResolveAssemblyReferencesInput.cache
│                   ├── GenerateResource.read.1.tlog
│                   ├── GenerateResource.write.1.tlog
│                   ├── TempPE
│                   ├── WinformsSynchonizationContext.Form1.resources
│                   ├── WinformsSynchonizationContext.Properties.Resources.resources
│                   ├── WinformsSynchonizationContext.csproj.FileListAbsolute.txt
│                   ├── WinformsSynchonizationContext.exe
│                   └── WinformsSynchonizationContext.pdb
└── Thumbs.db

91 directories, 170 files