mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Merge dev => perf
--HG-- branch : perf
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1574
-1200
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+20855
-20824
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
/**********************************************************************/
|
||||
/* Install.SQL */
|
||||
/* Creates a login and makes the user a member of db roles */
|
||||
/* */
|
||||
/**********************************************************************/
|
||||
|
||||
-- Declare variables for database name, username and password
|
||||
DECLARE @dbName sysname,
|
||||
@dbUser sysname,
|
||||
@dbPwd nvarchar(max);
|
||||
|
||||
-- Set variables for database name, username and password
|
||||
SET @dbName = 'PlaceHolderForDb';
|
||||
SET @dbUser = 'PlaceHolderForUser';
|
||||
SET @dbPwd = 'PlaceHolderForPassword';
|
||||
|
||||
DECLARE @cmd nvarchar(max)
|
||||
|
||||
-- Create login
|
||||
IF( SUSER_SID(@dbUser) is null )
|
||||
BEGIN
|
||||
print '-- Creating login '
|
||||
SET @cmd = N'CREATE LOGIN ' + quotename(@dbUser) + N' WITH PASSWORD ='''+ replace(@dbPwd, '''', '''''') + N''''
|
||||
EXEC(@cmd)
|
||||
END
|
||||
|
||||
-- Create database user and map to login
|
||||
-- and add user to the datareader, datawriter, ddladmin and securityadmin roles
|
||||
--
|
||||
SET @cmd = N'USE ' + quotename(@DBName) + N';
|
||||
IF( NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = ''' + replace(@dbUser, '''', '''''') + N'''))
|
||||
BEGIN
|
||||
print ''-- Creating user'';
|
||||
CREATE USER ' + quotename(@dbUser) + N' FOR LOGIN ' + quotename(@dbUser) + N';
|
||||
print ''-- Adding user'';
|
||||
EXEC sp_addrolemember ''db_ddladmin'', ''' + replace(@dbUser, '''', '''''') + N''';
|
||||
print ''-- Adding user'';
|
||||
EXEC sp_addrolemember ''db_securityadmin'', ''' + replace(@dbUser, '''', '''''') + N''';
|
||||
print ''-- Adding user'';
|
||||
EXEC sp_addrolemember ''db_datareader'', ''' + replace(@dbUser, '''', '''''') + N''';
|
||||
print ''-- Adding user'';
|
||||
EXEC sp_addrolemember ''db_datawriter'', ''' + replace(@dbUser, '''', '''''') + N''';
|
||||
END'
|
||||
EXEC(@cmd)
|
||||
GO
|
||||
@@ -2,4 +2,7 @@
|
||||
<iisapp path="Orchard" managedRuntimeVersion="v4.0" />
|
||||
<setAcl path="Orchard/App_Data" setAclAccess="Modify" />
|
||||
<setAcl path="Orchard/Media" setAclAccess="Modify" />
|
||||
<setAcl path="Orchard/Modules" setAclAccess="Modify" />
|
||||
<setAcl path="Orchard/Themes" setAclAccess="Modify" />
|
||||
<dbFullSql path="install.sql" />
|
||||
</MSDeploy.iisApp>
|
||||
|
||||
@@ -1,15 +1,77 @@
|
||||
<parameters>
|
||||
|
||||
<!-- Prompts where to copy the content files and takes a web site path (such as "contoso.com/app") -->
|
||||
<parameter name="Application Path" description="Full site path where you would like to install your application (i.e., Default Web Site/orchard)" defaultValue="Default Web Site/orchard" tags="iisapp">
|
||||
<parameterEntry type="ProviderPath" scope="iisapp" match="Orchard" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="SetAclParameter1" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/App_Data" tags="Hidden, NoDatabase">
|
||||
<!-- This is the parameter that is used to set ACLs, it's set to the application path filled in by the user -->
|
||||
<parameter name="SetAclParameter1" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/App_Data" tags="Hidden">
|
||||
<parameterEntry type="ProviderPath" scope="setAcl" match="Orchard/App_Data" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="SetAclParameter2" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/Media" tags="Hidden, NoDatabase">
|
||||
<parameter name="SetAclParameter2" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/Media" tags="Hidden">
|
||||
<parameterEntry type="ProviderPath" scope="setAcl" match="Orchard/Media" />
|
||||
</parameter>
|
||||
|
||||
</parameters>
|
||||
<parameter name="SetAclParameter3" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/Modules" tags="Hidden">
|
||||
<parameterEntry type="ProviderPath" scope="setAcl" match="Orchard/Modules" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="SetAclParameter4" description="Hidden - automatically sets write access for the app" defaultValue="{Application Path}/Themes" tags="Hidden">
|
||||
<parameterEntry type="ProviderPath" scope="setAcl" match="Orchard/Themes" />
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for database server name, this is used in the connection string parameter later -->
|
||||
<parameter name="Database Server" description="Location of your database server (i.e. server name, IP address, or server\instance)" defaultValue=".\SQLEXPRESS" tags="SQL, dbServer">
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for the database name and fills it into the database scripts -->
|
||||
<parameter name="Database Name" description="Name of the database for Orchard." defaultValue="orchard" tags="SQL, dbName">
|
||||
<parameterEntry type="TextFile" scope="install.sql" match="PlaceHolderForDb" />
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for the database username and fills it into the database scripts.
|
||||
The SQL tag indicates it is a parameter required for SQL, the DbUsername tag indicates this is a Db username -->
|
||||
<parameter name="Database Username" description="User name to access you application database." defaultValue="orcharduser" tags="SQL, DbUsername">
|
||||
<parameterEntry type="TextFile" scope="install.sql" match="PlaceHolderForUser" />
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for the database password and fills it into the database scripts.
|
||||
The SQL tag indicates it is a parameter required for SQL, the DbUserPassword tag indicates this is a Db password -->
|
||||
<parameter name="Database Password" description="Password for the Database Username." tags="New, Password, SQL, DbUserPassword">
|
||||
<parameterEntry type="TextFile" scope="install.sql" match="PlaceHolderForPassword" />
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for the admin creds and uses it for the administrator connection string. This is used to create a login and assign permissions.
|
||||
The SQL tag indicates it is a parameter required for SQL. The DbAdminUsername tag indicates it should be used when the user is creating a new database.
|
||||
If they're not, it can be filled in with the DbUsername value. -->
|
||||
<parameter name="Database Administrator" description="Administrator user name for your database This is used to create the database and user if the don't already exist." defaultValue="sa" tags="SQL, dbAdminUsername">
|
||||
</parameter>
|
||||
|
||||
<!-- Prompts for the admin password and uses it for the administrator connection string.
|
||||
This is use to create a login and assign permissions. The SQL tag indicates it is a parameter required for SQL.
|
||||
The DbAdminPassword tag indicates it should be used when the user is creating a new database. If they're not, it can be filled in with the DbUserPassword value. -->
|
||||
<parameter name="Database Administrator Password" description="Password for the database administrator account." tags="New, Password, SQL, dbAdminPassword">
|
||||
</parameter>
|
||||
|
||||
<!-- This is the hidden admin connection string used to run the database scripts -->
|
||||
<parameter name="Connection String" description="Automatically sets the connection string for the connection request." defaultValue="Server={Database Server};Database={Database Name};uid={Database Administrator};Pwd={Database Administrator Password};" tags="Hidden, SQL">
|
||||
<parameterEntry type="ProviderPath" scope="dbfullsql" match="install.sql" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="Settings Data Provider for SQL" description="Orchard SQL Data Provider Setting" defaultValue="DataProvider: SqlServer" tags="Hidden, SQL">
|
||||
<parameterEntry kind="TextFile" scope="\\Settings\.txt$" match="DataProvider\s*:[^\r\n]*" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="Settings Data Connection String for SQL" description="Orchard SQL Data Connection String Setting" defaultValue="DataConnectionString: Server={Database Server};Database={Database Name};uid={Database Administrator};Pwd={Database Administrator Password};" tags="Hidden, SQL">
|
||||
<parameterEntry kind="TextFile" scope="\\Settings\.txt$" match="DataConnectionString\s*:[^\r\n]*" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="Settings Data Provider for SQLCE" description="Orchard SQLCE Data Provider Setting" defaultValue="DataProvider: SqlCe" tags="Hidden, SQLCE, NoStore">
|
||||
<parameterEntry kind="TextFile" scope="\\Settings\.txt$" match="DataProvider\s*:[^\r\n]*" />
|
||||
</parameter>
|
||||
|
||||
<parameter name="Settings Data Connection String for SQLCE" description="Orchard SQLCE Data Connection String Setting" defaultValue="DataConnectionString: " tags="Hidden, SQLCE, NoStore">
|
||||
<parameterEntry kind="TextFile" scope="\\Settings\.txt$" match="DataConnectionString\s*:[^\r\n]*" />
|
||||
</parameter>
|
||||
</parameters>
|
||||
@@ -0,0 +1,13 @@
|
||||
Copyright 2010 Outercurve Foundation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -0,0 +1,14 @@
|
||||
NuGet Project
|
||||
ASP.NET Open Source Gallery at Outercurve Foundation
|
||||
Copyright 2010 Outercurve Foundation
|
||||
|
||||
This product includes software developed at
|
||||
The Outercurve Foundation (http://www.outercurve.org/).
|
||||
|
||||
NuGet includes or is derivative of works distributed under the licenses listed below. The full text for most of the licenses listed below can be found in the LICENSE.txt file accompanying each work. The original copyright notices have been preserved within the respective files and or packages. Please refer to the specific files and/or packages for more detailed information about the authors, copyright notices, and licenses.
|
||||
|
||||
ProvideBindingPathAttribute (Visual Studio SDK)
|
||||
-----
|
||||
Website: http://msdn.microsoft.com/en-us/library/bb166441(VS.80).aspx
|
||||
Copyright: Copyright (c) 2010 Microsoft
|
||||
License: Apache 2.0
|
||||
@@ -0,0 +1,177 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+416
-432
@@ -4,30 +4,6 @@
|
||||
<name>YamlSerializer</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:System.Yaml.Serialization.EasyTypeConverter">
|
||||
<summary>
|
||||
Converts various types to / from string.<br/>
|
||||
I don't remember why this class was needed....
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
object obj = GetObjectToConvert();
|
||||
|
||||
// Check if the type has [TypeConverter] attribute.
|
||||
if( EasyTypeConverter.IsTypeConverterSpecified(type) ) {
|
||||
|
||||
// Convert the object to string.
|
||||
string s = EasyTypeConverter.ConvertToString(obj);
|
||||
|
||||
// Convert the string to an object of the spific type.
|
||||
object restored = EasyTypeConverter.ConvertFromString(s, type);
|
||||
|
||||
Assert.AreEqual(obj, restored);
|
||||
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.YamlRepresenter">
|
||||
<summary>
|
||||
Converts C# object to YamlNode
|
||||
@@ -141,18 +117,21 @@
|
||||
<param name="tag">Tag for the mapping.</param>
|
||||
<returns>Created mapping node.</returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.ParseErrorException">
|
||||
<member name="T:System.Yaml.YamlPresenter">
|
||||
<summary>
|
||||
<para>When <see cref="T:System.Yaml.Parser`1"/> reports syntax error by exception, this class is thrown.</para>
|
||||
Converts YamlNode tree into yaml text.
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
YamlNode node;
|
||||
YamlPresenter.ToYaml(node);
|
||||
|
||||
<para>Sytax errors can also be reported by simply returing false with giving some warnings.</para>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.ParseErrorException.#ctor(System.String)">
|
||||
<summary>
|
||||
Initialize an instance of <see cref="T:System.Yaml.ParseErrorException"/>
|
||||
</summary>
|
||||
<param name="message">Error message.</param>
|
||||
YamlNode node1;
|
||||
YamlNode node2;
|
||||
YamlNode node3;
|
||||
YamlPresenter.ToYaml(node1, node2, node3);
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Parser`1">
|
||||
<summary>
|
||||
@@ -855,24 +834,57 @@
|
||||
Column in a text.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagValidator">
|
||||
<member name="T:System.Yaml.StringUriEncodingExtention">
|
||||
<summary>
|
||||
Validates a text as a global tag in YAML.
|
||||
Add string class two methods: .UriEscape(), .UriUnescape()
|
||||
|
||||
<a href="http://www.faqs.org/rfcs/rfc4151.html">RFC4151 - The 'tag' URI Scheme</a>>
|
||||
Charset that is not escaped is represented NonUriChar member.
|
||||
|
||||
NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlTagValidator.IsValid(System.String)">
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriEscape(System.String)">
|
||||
<summary>
|
||||
Validates a text as a global tag in YAML.
|
||||
Escape the string in URI encoding format.
|
||||
</summary>
|
||||
<param name="tag">A candidate for a global tag in YAML.</param>
|
||||
<returns>True if <paramref name="tag"/> is a valid global tag.</returns>
|
||||
<param name="s">String to be escaped.</param>
|
||||
<returns>Escaped string.</returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagValidator.Status">
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriEscapeForTag(System.String)">
|
||||
<summary>
|
||||
Not used in this parser
|
||||
Escape the string in URI encoding format.
|
||||
</summary>
|
||||
<param name="s">String to be escaped.</param>
|
||||
<returns>Escaped string.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriUnescape(System.String)">
|
||||
<summary>
|
||||
Unescape the string escaped in URI encoding format.
|
||||
</summary>
|
||||
<param name="s">String to be unescape.</param>
|
||||
<returns>Unescaped string.</returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.UriEncoding">
|
||||
<summary>
|
||||
Escape / Unescape string in URI encoding format
|
||||
|
||||
Charset that is not escaped is represented NonUriChar member.
|
||||
|
||||
NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.ParseErrorException">
|
||||
<summary>
|
||||
<para>When <see cref="T:System.Yaml.Parser`1"/> reports syntax error by exception, this class is thrown.</para>
|
||||
|
||||
<para>Sytax errors can also be reported by simply returing false with giving some warnings.</para>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.ParseErrorException.#ctor(System.String)">
|
||||
<summary>
|
||||
Initialize an instance of <see cref="T:System.Yaml.ParseErrorException"/>
|
||||
</summary>
|
||||
<param name="message">Error message.</param>
|
||||
</member>
|
||||
<member name="T:System.Yaml.RehashableDictionary`2">
|
||||
<summary>
|
||||
@@ -942,159 +954,6 @@
|
||||
added to or removed from the dictionary.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlParser">
|
||||
<summary>
|
||||
<para>A text parser for<br/>
|
||||
YAML Ain’t Markup Language (YAML™) Version 1.2<br/>
|
||||
3rd Edition (2009-07-21)<br/>
|
||||
http://yaml.org/spec/1.2/spec.html </para>
|
||||
|
||||
<para>This class parse a YAML document and compose representing <see cref="T:System.Yaml.YamlNode"/> graph.</para>
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
string yaml = LoadYamlSource();
|
||||
YamlParser parser = new YamlParser();
|
||||
Node[] result = null;
|
||||
try {
|
||||
result = parser.Parse(yaml);
|
||||
...
|
||||
// you can reuse parser as many times you want
|
||||
...
|
||||
|
||||
} catch( ParseErrorException e ) {
|
||||
MessageBox.Show(e.Message);
|
||||
}
|
||||
if(result != null) {
|
||||
...
|
||||
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
<remarks>
|
||||
<para>Currently, this parser violates the YAML 1.2 specification in the following points.</para>
|
||||
<para>- line breaks are not normalized.</para>
|
||||
<para>- omission of the final line break is allowed in plain / literal / folded text.</para>
|
||||
<para>- ':' followed by ns-indicator is excluded from ns-plain-char.</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.#ctor">
|
||||
<summary>
|
||||
Initialize a YAML parser.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Parse(System.String)">
|
||||
<summary>
|
||||
Parse YAML text and returns a list of <see cref="T:System.Yaml.YamlNode"/>.
|
||||
</summary>
|
||||
<param name="yaml">YAML text to be parsed.</param>
|
||||
<returns>A list of <see cref="T:System.Yaml.YamlNode"/> parsed from the given text</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Parse(System.String,System.Yaml.YamlConfig)">
|
||||
<summary>
|
||||
Parse YAML text and returns a list of <see cref="T:System.Yaml.YamlNode"/>.
|
||||
</summary>
|
||||
<param name="yaml">YAML text to be parsed.</param>
|
||||
<param name="config"><see cref="T:System.Yaml.YamlConfig">YAML Configuration</see> to be used in parsing.</param>
|
||||
<returns>A list of <see cref="T:System.Yaml.YamlNode"/> parsed from the given text</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.StoreWarning(System.String)">
|
||||
<summary>
|
||||
Add message in <see cref="P:System.Yaml.YamlParser.Warnings"/> property.
|
||||
</summary>
|
||||
<param name="message"></param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.ReservedDirective(System.String,System.String[])">
|
||||
<summary>
|
||||
Invoked when unknown directive is found in YAML document.
|
||||
</summary>
|
||||
<param name="name">Name of the directive</param>
|
||||
<param name="args">Parameters for the directive</param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.YamlDirective(System.String)">
|
||||
<summary>
|
||||
Invoked when YAML directive is found in YAML document.
|
||||
</summary>
|
||||
<param name="version">Given version</param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Rewind">
|
||||
<summary>
|
||||
rewinding action
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.SetTag(System.String,System.String)">
|
||||
<summary>
|
||||
set status.tag with tag resolution
|
||||
</summary>
|
||||
<param name="tag_handle"></param>
|
||||
<param name="tag_suffix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.SetTag(System.String)">
|
||||
<summary>
|
||||
set status.tag with verbatim tag value
|
||||
</summary>
|
||||
<param name="verbatim_tag">verbatim tag</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.AutoDetectTag(System.String)">
|
||||
<summary>
|
||||
Used when the parser resolves a tag for a scalar node from its value.
|
||||
|
||||
New resolution rules can be add before calling <see cref="M:System.Yaml.YamlParser.Parse(System.String)"/> method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.eScalar">
|
||||
<summary>
|
||||
[105]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.eNode">
|
||||
<summary>
|
||||
[106]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:System.Yaml.YamlParser.Warnings">
|
||||
<summary>
|
||||
Warnings that are made while parsing a YAML text.
|
||||
This property is cleared by new call for <see cref="M:System.Yaml.YamlParser.Parse(System.String)"/> method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlParser.State">
|
||||
<summary>
|
||||
additional fields to be rewound
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.tag">
|
||||
<summary>
|
||||
tag for the next value (will be cleared when the next value is created)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.anchor">
|
||||
<summary>
|
||||
anchor for the next value (will be cleared when the next value is created)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.value">
|
||||
<summary>
|
||||
current value
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.anchor_depth">
|
||||
<summary>
|
||||
anchor rewinding position
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.Charsets.cIndicator">
|
||||
<summary>
|
||||
[22]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.Charsets.cFlowIndicator">
|
||||
<summary>
|
||||
[23]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.YamlConstructor">
|
||||
<summary>
|
||||
Construct YAML node tree that represents a given C# object.
|
||||
@@ -1117,109 +976,6 @@
|
||||
<param name="config"><see cref="T:System.Yaml.YamlConfig"/> to customize serialization.</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.StringUriEncodingExtention">
|
||||
<summary>
|
||||
Add string class two methods: .UriEscape(), .UriUnescape()
|
||||
|
||||
Charset that is not escaped is represented NonUriChar member.
|
||||
|
||||
NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriEscape(System.String)">
|
||||
<summary>
|
||||
Escape the string in URI encoding format.
|
||||
</summary>
|
||||
<param name="s">String to be escaped.</param>
|
||||
<returns>Escaped string.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriEscapeForTag(System.String)">
|
||||
<summary>
|
||||
Escape the string in URI encoding format.
|
||||
</summary>
|
||||
<param name="s">String to be escaped.</param>
|
||||
<returns>Escaped string.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.StringUriEncodingExtention.UriUnescape(System.String)">
|
||||
<summary>
|
||||
Unescape the string escaped in URI encoding format.
|
||||
</summary>
|
||||
<param name="s">String to be unescape.</param>
|
||||
<returns>Unescaped string.</returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.UriEncoding">
|
||||
<summary>
|
||||
Escape / Unescape string in URI encoding format
|
||||
|
||||
Charset that is not escaped is represented NonUriChar member.
|
||||
|
||||
NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagPrefixes">
|
||||
<summary>
|
||||
Reset();
|
||||
SetupDefaultTagPrefixes();
|
||||
Add(tag_handle, tag_prefix);
|
||||
verbatim_tag = Resolve(tag_handle, tag_name);
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlPresenter">
|
||||
<summary>
|
||||
Converts YamlNode tree into yaml text.
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
YamlNode node;
|
||||
YamlPresenter.ToYaml(node);
|
||||
|
||||
YamlNode node1;
|
||||
YamlNode node2;
|
||||
YamlNode node3;
|
||||
YamlPresenter.ToYaml(node1, node2, node3);
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.ObjectMemberAccessor">
|
||||
<summary>
|
||||
|
||||
object に代入されたクラスや構造体のメンバーに、リフレクションを
|
||||
解して簡単にアクセスできるようにしたクラス
|
||||
|
||||
アクセス方法をキャッシュするので、繰り返し使用する場合に高速化が
|
||||
期待できる
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.Serialization.ObjectMemberAccessor.MemberAccessors">
|
||||
<summary>
|
||||
Caches ObjectMemberAccessor instances for reuse.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.Serialization.ObjectMemberAccessor.FindFor(System.Type)">
|
||||
<summary>
|
||||
|
||||
指定した型へのアクセス方法を表すインスタンスを返す
|
||||
キャッシュに存在すればそれを返す
|
||||
キャッシュに存在しなければ新しく作って返す
|
||||
作った物はキャッシュされる
|
||||
</summary>
|
||||
<param name="type">クラスまたは構造体を表す型情報</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.Serialization.ObjectMemberAccessor.GetEnumerator">
|
||||
<summary>
|
||||
メンバ名と Accessor のペアを巡回する
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Yaml.Serialization.ObjectMemberAccessor.Item(System.Object,System.String)">
|
||||
<summary>
|
||||
メンバへの読み書きを行うことができる
|
||||
</summary>
|
||||
<param name="obj">オブジェクト</param>
|
||||
<param name="name">メンバの名前</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlConfig">
|
||||
<summary>
|
||||
<para>Configuration to customize YAML serialization.</para>
|
||||
@@ -2720,6 +2476,348 @@
|
||||
</summary>
|
||||
<value>The number of child nodes of the sequence.</value>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlParser">
|
||||
<summary>
|
||||
<para>A text parser for<br/>
|
||||
YAML Ain’t Markup Language (YAML™) Version 1.2<br/>
|
||||
3rd Edition (2009-07-21)<br/>
|
||||
http://yaml.org/spec/1.2/spec.html </para>
|
||||
|
||||
<para>This class parse a YAML document and compose representing <see cref="T:System.Yaml.YamlNode"/> graph.</para>
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
string yaml = LoadYamlSource();
|
||||
YamlParser parser = new YamlParser();
|
||||
Node[] result = null;
|
||||
try {
|
||||
result = parser.Parse(yaml);
|
||||
...
|
||||
// you can reuse parser as many times you want
|
||||
...
|
||||
|
||||
} catch( ParseErrorException e ) {
|
||||
MessageBox.Show(e.Message);
|
||||
}
|
||||
if(result != null) {
|
||||
...
|
||||
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
<remarks>
|
||||
<para>Currently, this parser violates the YAML 1.2 specification in the following points.</para>
|
||||
<para>- line breaks are not normalized.</para>
|
||||
<para>- omission of the final line break is allowed in plain / literal / folded text.</para>
|
||||
<para>- ':' followed by ns-indicator is excluded from ns-plain-char.</para>
|
||||
</remarks>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.#ctor">
|
||||
<summary>
|
||||
Initialize a YAML parser.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Parse(System.String)">
|
||||
<summary>
|
||||
Parse YAML text and returns a list of <see cref="T:System.Yaml.YamlNode"/>.
|
||||
</summary>
|
||||
<param name="yaml">YAML text to be parsed.</param>
|
||||
<returns>A list of <see cref="T:System.Yaml.YamlNode"/> parsed from the given text</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Parse(System.String,System.Yaml.YamlConfig)">
|
||||
<summary>
|
||||
Parse YAML text and returns a list of <see cref="T:System.Yaml.YamlNode"/>.
|
||||
</summary>
|
||||
<param name="yaml">YAML text to be parsed.</param>
|
||||
<param name="config"><see cref="T:System.Yaml.YamlConfig">YAML Configuration</see> to be used in parsing.</param>
|
||||
<returns>A list of <see cref="T:System.Yaml.YamlNode"/> parsed from the given text</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.StoreWarning(System.String)">
|
||||
<summary>
|
||||
Add message in <see cref="P:System.Yaml.YamlParser.Warnings"/> property.
|
||||
</summary>
|
||||
<param name="message"></param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.ReservedDirective(System.String,System.String[])">
|
||||
<summary>
|
||||
Invoked when unknown directive is found in YAML document.
|
||||
</summary>
|
||||
<param name="name">Name of the directive</param>
|
||||
<param name="args">Parameters for the directive</param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.YamlDirective(System.String)">
|
||||
<summary>
|
||||
Invoked when YAML directive is found in YAML document.
|
||||
</summary>
|
||||
<param name="version">Given version</param>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.Rewind">
|
||||
<summary>
|
||||
rewinding action
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.SetTag(System.String,System.String)">
|
||||
<summary>
|
||||
set status.tag with tag resolution
|
||||
</summary>
|
||||
<param name="tag_handle"></param>
|
||||
<param name="tag_suffix"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.SetTag(System.String)">
|
||||
<summary>
|
||||
set status.tag with verbatim tag value
|
||||
</summary>
|
||||
<param name="verbatim_tag">verbatim tag</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.AutoDetectTag(System.String)">
|
||||
<summary>
|
||||
Used when the parser resolves a tag for a scalar node from its value.
|
||||
|
||||
New resolution rules can be add before calling <see cref="M:System.Yaml.YamlParser.Parse(System.String)"/> method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.eScalar">
|
||||
<summary>
|
||||
[105]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlParser.eNode">
|
||||
<summary>
|
||||
[106]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:System.Yaml.YamlParser.Warnings">
|
||||
<summary>
|
||||
Warnings that are made while parsing a YAML text.
|
||||
This property is cleared by new call for <see cref="M:System.Yaml.YamlParser.Parse(System.String)"/> method.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlParser.State">
|
||||
<summary>
|
||||
additional fields to be rewound
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.tag">
|
||||
<summary>
|
||||
tag for the next value (will be cleared when the next value is created)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.anchor">
|
||||
<summary>
|
||||
anchor for the next value (will be cleared when the next value is created)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.value">
|
||||
<summary>
|
||||
current value
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.State.anchor_depth">
|
||||
<summary>
|
||||
anchor rewinding position
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.Charsets.cIndicator">
|
||||
<summary>
|
||||
[22]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.YamlParser.Charsets.cFlowIndicator">
|
||||
<summary>
|
||||
[23]
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.EasyTypeConverter">
|
||||
<summary>
|
||||
Converts various types to / from string.<br/>
|
||||
I don't remember why this class was needed....
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
object obj = GetObjectToConvert();
|
||||
|
||||
// Check if the type has [TypeConverter] attribute.
|
||||
if( EasyTypeConverter.IsTypeConverterSpecified(type) ) {
|
||||
|
||||
// Convert the object to string.
|
||||
string s = EasyTypeConverter.ConvertToString(obj);
|
||||
|
||||
// Convert the string to an object of the spific type.
|
||||
object restored = EasyTypeConverter.ConvertFromString(s, type);
|
||||
|
||||
Assert.AreEqual(obj, restored);
|
||||
|
||||
}
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagPrefixes">
|
||||
<summary>
|
||||
Reset();
|
||||
SetupDefaultTagPrefixes();
|
||||
Add(tag_handle, tag_prefix);
|
||||
verbatim_tag = Resolve(tag_handle, tag_name);
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.ObjectMemberAccessor">
|
||||
<summary>
|
||||
|
||||
object に代入されたクラスや構造体のメンバーに、リフレクションを
|
||||
解して簡単にアクセスできるようにしたクラス
|
||||
|
||||
アクセス方法をキャッシュするので、繰り返し使用する場合に高速化が
|
||||
期待できる
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:System.Yaml.Serialization.ObjectMemberAccessor.MemberAccessors">
|
||||
<summary>
|
||||
Caches ObjectMemberAccessor instances for reuse.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.Serialization.ObjectMemberAccessor.FindFor(System.Type)">
|
||||
<summary>
|
||||
|
||||
指定した型へのアクセス方法を表すインスタンスを返す
|
||||
キャッシュに存在すればそれを返す
|
||||
キャッシュに存在しなければ新しく作って返す
|
||||
作った物はキャッシュされる
|
||||
</summary>
|
||||
<param name="type">クラスまたは構造体を表す型情報</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.Serialization.ObjectMemberAccessor.GetEnumerator">
|
||||
<summary>
|
||||
メンバ名と Accessor のペアを巡回する
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="P:System.Yaml.Serialization.ObjectMemberAccessor.Item(System.Object,System.String)">
|
||||
<summary>
|
||||
メンバへの読み書きを行うことができる
|
||||
</summary>
|
||||
<param name="obj">オブジェクト</param>
|
||||
<param name="name">メンバの名前</param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.TypeUtils">
|
||||
<summary>
|
||||
Type 関連のユーティリティメソッド
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
Type type;
|
||||
AttributeType attr = type.GetAttribute<AttributeType>();
|
||||
|
||||
PropertyInfo propInfo;
|
||||
AttributeType attr = propInfo.GetAttribute<AttributeType>();
|
||||
|
||||
string name;
|
||||
Type type = TypeUtils.GetType(name); // search from all assembly loaded
|
||||
|
||||
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.GetAttribute``1(System.Reflection.MemberInfo)">
|
||||
<summary>
|
||||
Type や PropertyInfo, FieldInfo から指定された型の属性を取り出して返す
|
||||
複数存在した場合には最後の値を返す
|
||||
存在しなければ null を返す
|
||||
</summary>
|
||||
<typeparam name="AttributeType">取り出したい属性の型</typeparam>
|
||||
<returns>取り出した属性値</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.GetType(System.String)">
|
||||
<summary>
|
||||
現在ロードされているすべてのアセンブリから name という名の型を探して返す
|
||||
</summary>
|
||||
<param name="name"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsPureValueType(System.Type)">
|
||||
<summary>
|
||||
Check if the type is a ValueType and does not contain any non ValueType members.
|
||||
</summary>
|
||||
<param name="type"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsStruct(System.Type)">
|
||||
<summary>
|
||||
Returnes true if the specified <paramref name="type"/> is a struct type.
|
||||
</summary>
|
||||
<param name="type"><see cref="T:System.Type"/> to be analyzed.</param>
|
||||
<returns>true if the specified <paramref name="type"/> is a struct type; otehrwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.AreEqual(System.Object,System.Object)">
|
||||
<summary>
|
||||
Compare two objects to see if they are equal or not. Null is acceptable.
|
||||
</summary>
|
||||
<param name="a"></param>
|
||||
<param name="b"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsNumeric(System.Object)">
|
||||
<summary>
|
||||
Return if an object is a numeric value.
|
||||
</summary>
|
||||
<param name="obj">Any object to be tested.</param>
|
||||
<returns>True if object is a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.CastToNumericType(System.Object,System.Type)">
|
||||
<summary>
|
||||
Cast an object to a specified numeric type.
|
||||
</summary>
|
||||
<param name="obj">Any object</param>
|
||||
<param name="type">Numric type</param>
|
||||
<returns>Numeric value or null if the object is not a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.CastToDouble(System.Object)">
|
||||
<summary>
|
||||
Cast boxed numeric value to double
|
||||
</summary>
|
||||
<param name="obj">boxed numeric value</param>
|
||||
<returns>Numeric value in double. Double.Nan if obj is not a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsPublic(System.Type)">
|
||||
<summary>
|
||||
Check if type is fully public or not.
|
||||
Nested class is checked if all declared types are public.
|
||||
</summary>
|
||||
<param name="type"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.TypeUtils.EqualityComparerByRef`1">
|
||||
<summary>
|
||||
Equality comparer that uses Object.ReferenceEquals(x, y) to compare class values.
|
||||
</summary>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.EqualityComparerByRef`1.Equals(`0,`0)">
|
||||
<summary>
|
||||
Determines whether two objects of type T are equal by calling Object.ReferenceEquals(x, y).
|
||||
</summary>
|
||||
<param name="x">The first object to compare.</param>
|
||||
<param name="y">The second object to compare.</param>
|
||||
<returns>true if the specified objects are equal; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.EqualityComparerByRef`1.GetHashCode(`0)">
|
||||
<summary>
|
||||
Serves as a hash function for the specified object for hashing algorithms and
|
||||
data structures, such as a hash table.
|
||||
</summary>
|
||||
<param name="obj">The object for which to get a hash code.</param>
|
||||
<returns>A hash code for the specified object.</returns>
|
||||
<exception cref="T:System.ArgumentNullException"><paramref name="obj"/> is null.</exception>
|
||||
</member>
|
||||
<member name="P:System.Yaml.TypeUtils.EqualityComparerByRef`1.Default">
|
||||
<summary>
|
||||
Returns a default equality comparer for the type specified by the generic argument.
|
||||
</summary>
|
||||
<value>The default instance of the System.Collections.Generic.EqualityComparer<T>
|
||||
class for type T.</value>
|
||||
</member>
|
||||
<member name="T:System.Yaml.Serialization.YamlSerializer">
|
||||
<summary>
|
||||
<para><see cref="T:System.Yaml.Serialization.YamlSerializer"/> class has instance methods <see cref="M:System.Yaml.Serialization.YamlSerializer.Serialize(System.Object)"/> and <see cref="M:System.Yaml.Serialization.YamlSerializer.Deserialize(System.String,System.Type[])"/>,
|
||||
@@ -3518,139 +3616,6 @@
|
||||
|
||||
</param>
|
||||
</member>
|
||||
<member name="T:System.Yaml.TypeUtils">
|
||||
<summary>
|
||||
Type 関連のユーティリティメソッド
|
||||
</summary>
|
||||
<example>
|
||||
<code>
|
||||
Type type;
|
||||
AttributeType attr = type.GetAttribute<AttributeType>();
|
||||
|
||||
PropertyInfo propInfo;
|
||||
AttributeType attr = propInfo.GetAttribute<AttributeType>();
|
||||
|
||||
string name;
|
||||
Type type = TypeUtils.GetType(name); // search from all assembly loaded
|
||||
|
||||
|
||||
</code>
|
||||
</example>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.GetAttribute``1(System.Reflection.MemberInfo)">
|
||||
<summary>
|
||||
Type や PropertyInfo, FieldInfo から指定された型の属性を取り出して返す
|
||||
複数存在した場合には最後の値を返す
|
||||
存在しなければ null を返す
|
||||
</summary>
|
||||
<typeparam name="AttributeType">取り出したい属性の型</typeparam>
|
||||
<returns>取り出した属性値</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.GetType(System.String)">
|
||||
<summary>
|
||||
現在ロードされているすべてのアセンブリから name という名の型を探して返す
|
||||
</summary>
|
||||
<param name="name"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsPureValueType(System.Type)">
|
||||
<summary>
|
||||
Check if the type is a ValueType and does not contain any non ValueType members.
|
||||
</summary>
|
||||
<param name="type"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsStruct(System.Type)">
|
||||
<summary>
|
||||
Returnes true if the specified <paramref name="type"/> is a struct type.
|
||||
</summary>
|
||||
<param name="type"><see cref="T:System.Type"/> to be analyzed.</param>
|
||||
<returns>true if the specified <paramref name="type"/> is a struct type; otehrwise false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.AreEqual(System.Object,System.Object)">
|
||||
<summary>
|
||||
Compare two objects to see if they are equal or not. Null is acceptable.
|
||||
</summary>
|
||||
<param name="a"></param>
|
||||
<param name="b"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsNumeric(System.Object)">
|
||||
<summary>
|
||||
Return if an object is a numeric value.
|
||||
</summary>
|
||||
<param name="obj">Any object to be tested.</param>
|
||||
<returns>True if object is a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.CastToNumericType(System.Object,System.Type)">
|
||||
<summary>
|
||||
Cast an object to a specified numeric type.
|
||||
</summary>
|
||||
<param name="obj">Any object</param>
|
||||
<param name="type">Numric type</param>
|
||||
<returns>Numeric value or null if the object is not a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.CastToDouble(System.Object)">
|
||||
<summary>
|
||||
Cast boxed numeric value to double
|
||||
</summary>
|
||||
<param name="obj">boxed numeric value</param>
|
||||
<returns>Numeric value in double. Double.Nan if obj is not a numeric value.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.IsPublic(System.Type)">
|
||||
<summary>
|
||||
Check if type is fully public or not.
|
||||
Nested class is checked if all declared types are public.
|
||||
</summary>
|
||||
<param name="type"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.TypeUtils.EqualityComparerByRef`1">
|
||||
<summary>
|
||||
Equality comparer that uses Object.ReferenceEquals(x, y) to compare class values.
|
||||
</summary>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.EqualityComparerByRef`1.Equals(`0,`0)">
|
||||
<summary>
|
||||
Determines whether two objects of type T are equal by calling Object.ReferenceEquals(x, y).
|
||||
</summary>
|
||||
<param name="x">The first object to compare.</param>
|
||||
<param name="y">The second object to compare.</param>
|
||||
<returns>true if the specified objects are equal; otherwise, false.</returns>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.EqualityComparerByRef`1.GetHashCode(`0)">
|
||||
<summary>
|
||||
Serves as a hash function for the specified object for hashing algorithms and
|
||||
data structures, such as a hash table.
|
||||
</summary>
|
||||
<param name="obj">The object for which to get a hash code.</param>
|
||||
<returns>A hash code for the specified object.</returns>
|
||||
<exception cref="T:System.ArgumentNullException"><paramref name="obj"/> is null.</exception>
|
||||
</member>
|
||||
<member name="P:System.Yaml.TypeUtils.EqualityComparerByRef`1.Default">
|
||||
<summary>
|
||||
Returns a default equality comparer for the type specified by the generic argument.
|
||||
</summary>
|
||||
<value>The default instance of the System.Collections.Generic.EqualityComparer<T>
|
||||
class for type T.</value>
|
||||
</member>
|
||||
<member name="T:System.Yaml.TypeUtils.HashCodeByRef`1">
|
||||
<summary>
|
||||
Calculate hash code by reference.
|
||||
</summary>
|
||||
<typeparam name="T"></typeparam>
|
||||
</member>
|
||||
<member name="M:System.Yaml.TypeUtils.HashCodeByRef`1.#cctor">
|
||||
<summary>
|
||||
Initializes a new instance of the HashCodeByRef<T> class.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:System.Yaml.TypeUtils.HashCodeByRef`1.GetHashCode">
|
||||
<summary>
|
||||
Calculate hash code by reference.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagResolver">
|
||||
<summary>
|
||||
Represents the way to automatically resolve Tag from the Value of a YamlScalar.
|
||||
@@ -3766,5 +3731,24 @@
|
||||
Unescape control codes, double quotations, backslashes escape in the YAML double quoted string format
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagValidator">
|
||||
<summary>
|
||||
Validates a text as a global tag in YAML.
|
||||
|
||||
<a href="http://www.faqs.org/rfcs/rfc4151.html">RFC4151 - The 'tag' URI Scheme</a>>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:System.Yaml.YamlTagValidator.IsValid(System.String)">
|
||||
<summary>
|
||||
Validates a text as a global tag in YAML.
|
||||
</summary>
|
||||
<param name="tag">A candidate for a global tag in YAML.</param>
|
||||
<returns>True if <paramref name="tag"/> is a valid global tag.</returns>
|
||||
</member>
|
||||
<member name="T:System.Yaml.YamlTagValidator.Status">
|
||||
<summary>
|
||||
Not used in this parser
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user