热门标签 | 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"> 


推荐阅读
  • importjava.io.*;importjava.util.*;publicclass五子棋游戏{staticintm1;staticintn1;staticfinalintS ... [详细]
  • 本文通过一个具体的实例,介绍如何利用TensorFlow框架来计算神经网络模型在多分类任务中的Top-K准确率。代码中包含了随机种子设置、模拟预测结果生成、真实标签生成以及准确率计算等步骤。 ... [详细]
  • 使用Echarts for Weixin 小程序实现中国地图及区域点击事件
    本文介绍了如何使用Echarts for Weixin在微信小程序中构建中国地图,并实现区域点击事件。包括效果展示、条件准备和逻辑实现的具体步骤。 ... [详细]
  • 本文将详细介绍如何在二进制和十六进制之间进行准确的转换,并提供实际的代码示例来帮助理解这一过程。 ... [详细]
  • 嵌套列表的扁平化处理
    本文介绍了一种方法,用于遍历嵌套列表中的每个元素。如果元素是整数,则将其添加到结果数组中;如果元素是一个列表,则递归地遍历这个列表。此方法特别适用于处理复杂数据结构中的嵌套列表。 ... [详细]
  • 1#include2#defineM1000103#defineRGregister4#defineinf0x3f3f3f3f5usingnamespacestd;6boolrev ... [详细]
  • 在编程实践中,正确管理和释放资源是非常重要的。本文将探讨 Python 中的 'with' 关键字及其背后的上下文管理器机制,以及它们如何帮助我们更安全、高效地管理资源。 ... [详细]
  • 题目编号:2049 [SDOI2008]Cave Exploration。题目描述了一种动态图操作场景,涉及三种基本操作:断开两个节点间的连接(destroy(a,b))、建立两个节点间的连接(connect(a,b))以及查询两节点是否连通(query(a,b))。所有操作均确保图中无环存在。 ... [详细]
  • 如何在PHP中安装Xdebug扩展
    本文介绍了如何从PECL下载并编译安装Xdebug扩展,以及如何配置PHP和PHPStorm以启用调试功能。 ... [详细]
  • 本文探讨了在一个物理隔离的环境中构建数据交换平台所面临的挑战,包括但不限于数据加密、传输监控及确保文件交换的安全性和可靠性。同时,作者结合自身项目经验,分享了项目规划、实施过程中的关键决策及其背后的思考。 ... [详细]
  • 解决Visual Studio Code中PHP Intelephense误报问题
    PHP作为一种高度灵活的编程语言,其代码结构可能导致Intelephense插件在某些情况下报告不必要的错误或警告。自1.3.3版本起,Intelephense引入了多个配置选项,允许用户根据具体的工作环境和编程风格调整这些诊断信息的显示。 ... [详细]
  • 在 Django 模型中,ForeignKey 的 on_delete 参数定义了当关联对象被删除时,当前模型实例的行为。本文详细解释了 on_delete 的各个选项及其具体作用。 ... [详细]
  • 本文提供了《汇编语言 第3版》中检测点11.2的详细参考答案,包括了各指令执行后的状态标志分析。 ... [详细]
  • 本文介绍了一个使用mii-tool工具检查网络接口状态的Bash脚本,并将结果记录到日志文件中。 ... [详细]
  • 本文探讨了如何在Windows程序中实现高精度的定时控制,特别是针对需要精确控制发包频率的应用场景,如“小兵以太网测试仪”。 ... [详细]
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社区 版权所有