Skip to content

Commit 0e47703

Browse files
新增代码模板。
1 parent ee3203e commit 0e47703

23 files changed

+658
-0
lines changed

Code Templates.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Templates", "Templates\Templates.csproj", "{E706DF86-8336-4D72-B6AB-8E5132D78741}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{E706DF86-8336-4D72-B6AB-8E5132D78741}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{E706DF86-8336-4D72-B6AB-8E5132D78741}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{E706DF86-8336-4D72-B6AB-8E5132D78741}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{E706DF86-8336-4D72-B6AB-8E5132D78741}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

Templates/Class-Abstract.cs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// <para>
40+
/// <see cref="$safeitemname$"/> is an abstract type !
41+
/// </para>
42+
/// </summary>
43+
/// <remarks>
44+
/// <see cref="$safeitemname$"/> is an abstract type !
45+
/// </remarks>
46+
/// <seealso cref="$rootnamespace$"/>
47+
public abstract class $safeitemname$
48+
{
49+
#region $safeitemname$ Constructors
50+
51+
/// <summary>
52+
/// 用于初始化一个<see cref="$safeitemname$" />对象实例。
53+
/// </summary>
54+
protected $safeitemname$()
55+
{}
56+
57+
#endregion
58+
}
59+
}
60+
61+
/*
62+
* Copyright © $year$ Wang Yucai. All rights reserved.
63+
*/

Templates/Class-Internal.cs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// </summary>
40+
/// <seealso cref="$rootnamespace$"/>
41+
internal class $safeitemname$
42+
{
43+
#region $safeitemname$ Constructors
44+
45+
/// <summary>
46+
/// 用于初始化一个<see cref="$safeitemname$" />对象实例。
47+
/// </summary>
48+
internal $safeitemname$()
49+
{}
50+
51+
#endregion
52+
}
53+
}
54+
55+
/*
56+
* Copyright © $year$ Wang Yucai. All rights reserved.
57+
*/

Templates/Class-Normal.cs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// </summary>
40+
/// <seealso cref="$rootnamespace$"/>
41+
public class $safeitemname$
42+
{
43+
#region $safeitemname$ Constructors
44+
45+
/// <summary>
46+
/// 用于初始化一个<see cref="$safeitemname$" />对象实例。
47+
/// </summary>
48+
public $safeitemname$()
49+
{}
50+
51+
#endregion
52+
}
53+
}
54+
55+
/*
56+
* Copyright © $year$ Wang Yucai. All rights reserved.
57+
*/

Templates/Class-Sealed.cs

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// <para>
40+
/// Can not inherit from <see cref="$safeitemname$"/> !
41+
/// </para>
42+
/// </summary>
43+
/// <seealso cref="$rootnamespace$"/>
44+
/// <remarks>
45+
/// Can not inherit from <see cref="$safeitemname$"/> !
46+
/// </remarks>
47+
public sealed class $safeitemname$
48+
{
49+
#region $safeitemname$ Constructors
50+
51+
/// <summary>
52+
/// <para>
53+
/// 用于初始化一个<see cref="$safeitemname$" />对象实例。
54+
/// </para>
55+
/// </summary>
56+
public $safeitemname$()
57+
{}
58+
59+
#endregion
60+
}
61+
}
62+
63+
/*
64+
* Copyright © $year$ Wang Yucai. All rights reserved.
65+
*/

Templates/Class-Static.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// <para>
40+
/// <see cref="$safeitemname$"/> is a static type !
41+
/// </para>
42+
/// </summary>
43+
/// <remarks>
44+
/// <see cref="$safeitemname$"/> is a static type !
45+
/// </remarks>
46+
/// <seealso cref="$rootnamespace$"/>
47+
public static class $safeitemname$
48+
{
49+
}
50+
}
51+
52+
/*
53+
* Copyright © $year$ Wang Yucai. All rights reserved.
54+
*/

Templates/Delegation.cs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#region README
2+
3+
/*
4+
* README
5+
*
6+
* Current Thread User : $userdomain$\$username$
7+
* Machine Name : $machinename$
8+
* Visual Studio : Microsoft Visual Studio 2010 Ultimate Edition
9+
* Create Time : $time$
10+
* Common Language Runtime : $clrversion$
11+
* Minimum .Net Framework Version : $targetframeworkversion$
12+
*
13+
* SourcePro Studio $year$
14+
* Project Url : https://github.com/SourceproStudio/CodeTemplates
15+
* Home Page Url : https://github.com/SourceproStudio
16+
* E-mail Address : MasterDuner@yeah.net or Yucai.Wang-Public@outlook.com
17+
* QQ : 180261899
18+
*/
19+
20+
#endregion
21+
22+
using System;
23+
24+
namespace $rootnamespace$
25+
{
26+
/// <summary>
27+
/// <para>
28+
/// Description
29+
/// </para>
30+
/// <para>
31+
/// Namespace : <see cref="$rootnamespace$"/>
32+
/// </para>
33+
/// <para>
34+
/// Type : <see cref="$safeitemname$"/>
35+
/// </para>
36+
/// <para>
37+
/// The minimum .Net Framework version requirements : $targetframeworkversion$
38+
/// </para>
39+
/// </summary>
40+
/// <seealso cref="$rootnamespace$"/>
41+
public delegate void $safeitemname$();
42+
}
43+
44+
/*
45+
* Copyright © $year$ Wang Yucai. All rights reserved.
46+
*/

0 commit comments

Comments
 (0)