Skip to content

Commit 1503f57

Browse files
2881028810
28810
authored and
28810
committed
等待改进和优化
1 parent ee3828b commit 1503f57

11 files changed

+695
-2
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
[Xx]64/
19+
[Xx]86/
20+
[Bb]uild/
21+
bld/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Visual Studio 2015 cache/options directory
26+
.vs/
27+
# Uncomment if you have tasks that create the project's static files in wwwroot
28+
#wwwroot/
29+
30+
# MSTest test Results
31+
[Tt]est[Rr]esult*/
32+
[Bb]uild[Ll]og.*
33+
34+
# NUNIT
35+
*.VisualState.xml
36+
TestResult.xml
37+
38+
# Build Results of an ATL Project
39+
[Dd]ebugPS/
40+
[Rr]eleasePS/
41+
dlldata.c
42+
43+
# DNX
44+
project.lock.json
45+
package-lock.json
46+
artifacts/
47+
48+
*_i.c
49+
*_p.c
50+
*_i.h
51+
*.ilk
52+
*.meta
53+
*.obj
54+
*.pch
55+
*.pdb
56+
*.pgc
57+
*.pgd
58+
*.rsp
59+
*.sbr
60+
*.tlb
61+
*.tli
62+
*.tlh
63+
*.tmp
64+
*.tmp_proj
65+
*.log
66+
*.vspscc
67+
*.vssscc
68+
.builds
69+
*.pidb
70+
*.svclog
71+
*.scc
72+
73+
# Chutzpah Test files
74+
_Chutzpah*
75+
76+
# Visual C++ cache files
77+
ipch/
78+
*.aps
79+
*.ncb
80+
*.opendb
81+
*.opensdf
82+
*.sdf
83+
*.cachefile
84+
*.VC.db
85+
86+
# Visual Studio profiler
87+
*.psess
88+
*.vsp
89+
*.vspx
90+
*.sap
91+
92+
# TFS 2012 Local Workspace
93+
$tf/
94+
95+
# Guidance Automation Toolkit
96+
*.gpState
97+
98+
# ReSharper is a .NET coding add-in
99+
_ReSharper*/
100+
*.[Rr]e[Ss]harper
101+
*.DotSettings.user
102+
103+
# JustCode is a .NET coding add-in
104+
.JustCode
105+
106+
# TeamCity is a build add-in
107+
_TeamCity*
108+
109+
# DotCover is a Code Coverage Tool
110+
*.dotCover
111+
112+
# NCrunch
113+
_NCrunch_*
114+
.*crunch*.local.xml
115+
nCrunchTemp_*
116+
117+
# MightyMoose
118+
*.mm.*
119+
AutoTest.Net/
120+
121+
# Web workbench (sass)
122+
.sass-cache/
123+
124+
# Installshield output folder
125+
[Ee]xpress/
126+
127+
# DocProject is a documentation generator add-in
128+
DocProject/buildhelp/
129+
DocProject/Help/*.HxT
130+
DocProject/Help/*.HxC
131+
DocProject/Help/*.hhc
132+
DocProject/Help/*.hhk
133+
DocProject/Help/*.hhp
134+
DocProject/Help/Html2
135+
DocProject/Help/html
136+
137+
# Click-Once directory
138+
publish/
139+
140+
# Publish Web Output
141+
*.[Pp]ublish.xml
142+
*.azurePubxml
143+
144+
# TODO: Un-comment the next line if you do not want to checkin
145+
# your web deploy settings because they may include unencrypted
146+
# passwords
147+
#*.pubxml
148+
*.publishproj
149+
150+
# NuGet Packages
151+
*.nupkg
152+
# The packages folder can be ignored because of Package Restore
153+
**/packages/*
154+
# except build/, which is used as an MSBuild target.
155+
!**/packages/build/
156+
# Uncomment if necessary however generally it will be regenerated when needed
157+
#!**/packages/repositories.config
158+
# NuGet v3's project.json files produces more ignoreable files
159+
*.nuget.props
160+
*.nuget.targets
161+
162+
# Microsoft Azure Build Output
163+
csx/
164+
*.build.csdef
165+
166+
# Microsoft Azure Emulator
167+
ecf/
168+
rcf/
169+
170+
# Microsoft Azure ApplicationInsights config file
171+
ApplicationInsights.config
172+
173+
# Windows Store app package directory
174+
AppPackages/
175+
BundleArtifacts/
176+
177+
# Visual Studio cache files
178+
# files ending in .cache can be ignored
179+
*.[Cc]ache
180+
# but keep track of directories ending in .cache
181+
!*.[Cc]ache/
182+
183+
# Others
184+
ClientBin/
185+
[Ss]tyle[Cc]op.*
186+
~$*
187+
*~
188+
*.dbmdl
189+
*.dbproj.schemaview
190+
*.pfx
191+
*.publishsettings
192+
node_modules/
193+
orleans.codegen.cs
194+
195+
# RIA/Silverlight projects
196+
Generated_Code/
197+
198+
# Backup & report files from converting an old project file
199+
# to a newer Visual Studio version. Backup files are not needed,
200+
# because we have git ;-)
201+
_UpgradeReport_Files/
202+
Backup*/
203+
UpgradeLog*.XML
204+
UpgradeLog*.htm
205+
206+
# SQL Server files
207+
*.mdf
208+
*.ldf
209+
210+
# Business Intelligence projects
211+
*.rdl.data
212+
*.bim.layout
213+
*.bim_*.settings
214+
215+
# Microsoft Fakes
216+
FakesAssemblies/
217+
218+
# GhostDoc plugin setting file
219+
*.GhostDoc.xml
220+
221+
# Node.js Tools for Visual Studio
222+
.ntvs_analysis.dat
223+
224+
# Visual Studio 6 build log
225+
*.plg
226+
227+
# Visual Studio 6 workspace options file
228+
*.opt
229+
230+
# Visual Studio LightSwitch build output
231+
**/*.HTMLClient/GeneratedArtifacts
232+
**/*.DesktopClient/GeneratedArtifacts
233+
**/*.DesktopClient/ModelManifest.xml
234+
**/*.Server/GeneratedArtifacts
235+
**/*.Server/ModelManifest.xml
236+
_Pvt_Extensions
237+
238+
# LightSwitch generated files
239+
GeneratedArtifacts/
240+
ModelManifest.xml
241+
242+
# Paket dependency manager
243+
.paket/paket.exe
244+
245+
# FAKE - F# Make
246+
.fake/

Demo.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
6+
class Demo {
7+
8+
void test() {
9+
10+
11+
SafeObjectPool pool = new SafeObjectPool(10);
12+
13+
14+
}
15+
}

MyPool/IMyPoolItemValue.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
public interface ISafeObjectPool : IDisposable {
6+
7+
void New();
8+
}

0 commit comments

Comments
 (0)