热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

CodeSmith使用总结下拉列表和文件夹对话框属性

上一篇有点短了,因为实在没有什么可说的,这一篇会多一点。O(∩_∩)O~一、下拉列表关于如何在CodeSmith中创建一个下拉列表的属性框其实很简单,是要使用C#中的枚举就行了,看

上一篇有点短了,因为实在没有什么可说的,这一篇会多一点。Times New Roman";‘>O(>∩Times New Roman";‘>_>∩Times New Roman";‘>)O~

一、下拉列表

关于如何在宋体"; font-size: 10.5pt; font-weight: bold; mso-spacerun: "yes";‘>CodeSmith宋体"; font-size: 10.5pt; font-weight: normal; mso-spacerun: "yes";‘>中创建一个下拉列表的属性框其实很简单,是要使用Times New Roman";‘>C#>中的枚举就行了,看操作。

首先定义一个枚举,跟定义方法一样,也要包含在Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘><Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘> Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>runatTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>="template">宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>……Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>>宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>标签中,代码语法就是我们在定义模板的时候选择的语法,这里我用的是宋体"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>C#>,如下:

<Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>runatTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="template">

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个下拉列表的枚举

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>enumTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> CollectionTypeEnum 

{

OneTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>, 

TwoTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>, 

Three,

Four,

Five

}

Times New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>scriptTimes New Roman"; font-size: 10.5pt; font-style: normal; font-weight: normal; mso-spacerun: "yes"; mso-shading: #ffffff;‘>>

Like This>,我们就定义好了一个枚举了。接下来就是我们在定义属性的时候,类型选择这个枚举。

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>DTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ropDownList"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="CollectionTypeEnum"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DefaultTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>OneTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=">这是一个下拉列表框"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>

编译一下就能看见效果了。

bubuko.com,布布扣src="https://img8.php1.cn/3cdc5/1e789/b64/31ef22ad3d07f472.jpeg"> 

调用的时候就像普通属性一样就行Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘><%=DropDownList %>宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>。

二、文件夹对话框

好了,定义好了下拉列表框后我们就开始下一个内容,文件夹对话框。

文件夹对话框有两种定义方式,一种是普通定义的那种,另一种就是用代码定义,不过我经常用第一种,谁让他简单呢。

首先我们要引用两个命名空间Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>System.Windows.Forms.Design宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>和Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>System.Drawing.Design宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>如下:

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

接下来只要在定义属性的时候,类型选择Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FolderNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>就行了

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="Test1"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="FolderNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

当然你也可以写全了,全路径如下:

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="Test2"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design.FileNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design.UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

编译一下就能看见了

bubuko.com,布布扣src="https://img8.php1.cn/3cdc5/1e789/b64/93be49d8ea8a86cf.jpeg"> 

第二种方法也要引用命名空间,然后不添加属性标签,直接在代码中写出来。具体代码如下:



#region 定义一个弹出选择文件夹获取路径的属性
private string _outputDirectory = String.Empty;
///


/// 调用文件夹对话框
///

[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[Optional, NotChecked]
[DefaultValue(
"")]
///
/// 属性名
///

public string OutputDirectory
{
get
{
return _outputDirectory;
}
set
{
if (value.EndsWith("\\")) value = value.Substring(0, value.Length -1);
_outputDirectory
= value;
}
}
#endregion

 

用这种方法的好处是如果我们要处理路径,在输出前处理就可以了,不用再单另的写代码了。呵呵

这里有一点Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FolderNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>是文件夹,那么相应的Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>FileNameEditor宋体"; font-size: 10.5pt; mso-spacerun: "yes";‘>就是文件了。

取值方法如同正常属性一样。

示例模板:

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>-- 

Name: >测试模板4

Author: GodFinal

Description: 

--Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TemplateTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>LanguageTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="C#"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TargetLanguageTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="C#"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=""Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

 

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="DropDownList"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="CollectionTypeEnum"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DefaultTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="One"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>DescriptionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>=">这是一个下拉列表框"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>%>

 

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ImportTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NamespaceTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

 

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="OutputDirectory1"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="FolderNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

 

<%Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>@Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>PropertyTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>NameTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="OutputDirectory2"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>TypeTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="String"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Windows.Forms.Design.FileNameEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>EditorBaseTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="System.Drawing.Design.UITypeEditor"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>OptionalTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="False"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> %>

 

<%=DropDownList %>

 

<%=OutputDirectory%>

 

<%=OutputDirectory1%>

 

<%=OutputDirectory2%>

<Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>runatTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>="template">

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个下拉列表的枚举

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>enumTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> CollectionTypeEnum 

{

    One, 

  Times New Roman";‘>Two, 

  Times New Roman";‘>Three,

  Times New Roman";‘>Four,

  Times New Roman";‘>Five

}

 

#regionTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 定义一个弹出选择文件夹对话框获取路劲的属性

privateTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>stringTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> _outputDirectory = String.Empty;

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 调用文件夹对话框

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

[Editor(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>typeofTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>(System.Windows.Forms.Design.FolderNameEditor), Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>typeofTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>(System.Drawing.Design.UITypeEditor))] 

[Optional, NotChecked]

[DefaultValue(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>""Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>)]

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> 属性名

///Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>

publicTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>stringTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> OutputDirectory

    Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>get

    {

        Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>returnTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> _outputDirectory;

    }

    Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>set

    {

        Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>ifTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘> (value.EndsWith(Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>"\\"Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>)) value = value.Substring(0, value.Length -1);

        _outputDirectory = value;

    } 

}

#endregion

Times New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>scriptTimes New Roman"; font-size: 10.5pt; mso-spacerun: "yes";‘>>

最终结果:

bubuko.com,布布扣src="https://img8.php1.cn/3cdc5/1e789/b64/b60ceb4322e6f01f.jpeg"> 

bubuko.com,布布扣src="https://img8.php1.cn/3cdc5/1e789/b64/5ce7509c5d337950.jpeg"> 


推荐阅读
  • 嵌入式开发环境搭建与文件传输指南
    本文详细介绍了如何为嵌入式应用开发搭建必要的软硬件环境,并提供了通过串口和网线两种方式将文件传输到开发板的具体步骤。适合Linux开发初学者参考。 ... [详细]
  • 解决TensorFlow CPU版本安装中的依赖问题
    本文记录了在安装CPU版本的TensorFlow过程中遇到的依赖问题及解决方案,特别是numpy版本不匹配和动态链接库(DLL)错误。通过详细的步骤说明和专业建议,帮助读者顺利安装并使用TensorFlow。 ... [详细]
  • 探讨 HDU 1536 题目,即 S-Nim 游戏的博弈策略。通过 SG 函数分析游戏胜负的关键,并介绍如何编程实现解决方案。 ... [详细]
  • 本文详细介绍了一种通过MySQL弱口令漏洞在Windows操作系统上获取SYSTEM权限的方法。该方法涉及使用自定义UDF DLL文件来执行任意命令,从而实现对远程服务器的完全控制。 ... [详细]
  • 深入理解ExtJS:从入门到精通
    本文详细介绍了ExtJS的功能及其在大型企业前端开发中的应用。通过实例和详细的文件结构解析,帮助初学者快速掌握ExtJS的核心概念,并提供实用技巧和最佳实践。 ... [详细]
  • Python自动化测试入门:Selenium环境搭建
    本文详细介绍如何在Python环境中安装和配置Selenium,包括开发工具PyCharm的安装、Python环境的设置以及Selenium包的安装方法。此外,还提供了编写和运行第一个自动化测试脚本的步骤。 ... [详细]
  • 本文详细介绍了在使用 SmartUpload 组件进行文件上传时,如何正确配置和查找文件保存路径。通过具体的代码示例和步骤说明,帮助开发者快速解决上传路径配置的问题。 ... [详细]
  • 鼠标悬停出现提示信息怎么做
    概述–提示:指启示,提起注意或给予提醒和解释。在excel中会经常用到给某个格子增加提醒信息,比如金额提示输入数值或最大长度值等等。设置方式也有多种,简单的,仅为单元格插入批注就可 ... [详细]
  • #print(34or4 ... [详细]
  • 在尝试使用C# Windows Forms客户端通过SignalR连接到ASP.NET服务器时,遇到了内部服务器错误(500)。本文将详细探讨问题的原因及解决方案。 ... [详细]
  • 深入解析动态代理模式:23种设计模式之三
    在设计模式中,动态代理模式是应用最为广泛的一种代理模式。它允许我们在运行时动态创建代理对象,并在调用方法时进行增强处理。本文将详细介绍动态代理的实现机制及其应用场景。 ... [详细]
  • 通常情况下,修改my.cnf配置文件后需要重启MySQL服务才能使新参数生效。然而,通过特定命令可以在不重启服务的情况下实现配置的即时更新。本文将详细介绍如何在线调整MySQL配置,并验证其有效性。 ... [详细]
  • 本文探讨了在 SQL Server 中使用 JDBC 插入数据时遇到的问题。通过详细分析代码和数据库配置,提供了解决方案并解释了潜在的原因。 ... [详细]
  • 深入解析Serverless架构模式
    本文将详细介绍Serverless架构模式的核心概念、工作原理及其优势。通过对比传统架构,探讨Serverless如何简化应用开发与运维流程,并介绍当前主流的Serverless平台。 ... [详细]
  • 如何使用Ping命令来测试网络连接?当网卡安装和有关参数配置完成后,可以使用ping命令来测试一下网络是否连接成功。以winXP为例1、打开XP下DOS窗口具体操作是点击“开始”菜 ... [详细]
author-avatar
小鱼儿r6K2
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有