Click here to Skip to main content
15,892,298 members
Articles / Programming Languages / XML

Adaptive Console Framework - Build Your Console Application on the Fly

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
18 Sep 2008CDDL9 min read 31K   286   15  
Introduces the goal and use of the Adaptive Console Framework.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Parameter Type</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

</head>

<BODY>
<P><FONT face=Verdana size=2>All the arguments that is not the option should be 
considered as a parameter.</FONT></P>
<P><FONT face=Verdana size=2>Please refer to the following <FONT face=Courier 
color=#800000>catool</FONT>&nbsp;syntax:</FONT></P>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 
cellPadding=2 width="95%" border=1>
  <TBODY>
  <TR>
    <TD><FONT face=Courier color=#800000 size=2>D:\&gt;catool.exe /method:add 
      20 30</FONT></TD></TR></TBODY></TABLE></P>
<P><FONT face=Verdana size=2>Here <FONT face=Courier color=#800000>20</FONT> and 
<FONT face=Courier color=#800000>30</FONT> are the parameters.</FONT></P>
<P><FONT face=Verdana size=2>It is very easy to tell which arguments are options 
and which are parameters in ACF. You can use the LINQ below to get all the 
parameter arguments in a command line:</FONT></P>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellSpacing=0 
cellPadding=2 width="95%" border=1>
  <TBODY>
  <TR>
    <TD>
      <DIV 
      style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: Courier New">
      <P style="MARGIN: 0px"><SPAN style="COLOR: blue">var</SPAN> parameters = 
      </P>
      <P style="MARGIN: 0px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN 
      style="COLOR: blue">from</SPAN> arg <SPAN style="COLOR: blue">in</SPAN> 
      args</P>
      <P 
      style="MARGIN: 0px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
      style="COLOR: blue">where</SPAN> arg.Category == <SPAN 
      style="COLOR: #2b91af">ArgumentCategory</SPAN>.Parameter</P>
      <P 
      style="MARGIN: 0px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
      style="COLOR: blue">select</SPAN> arg.Argument;</P></DIV><!--EndFragment--></TD></TR></TBODY></TABLE></P></BODY>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
Architect Prosource Development
China China
I have more than 13 years' experience in software development and more than 5 years' working experience in software industry. I'm the National Certified System Analyst and now I'm the consultant of China System Analyst Institution. I also got the MCP/MCAD certificate on .NET technology in the year 2004.
I'm very interested in system architect and analysis, and also interested in .NET technologies. For my blog please refer to http://www.sunnychen.org.

Comments and Discussions