--- /dev/null
+*.c crlf
+*.h crlf
+*.cs crlf
+*.sh crlf
+
+ChangeLog crlf
+*akefile* crlf
+*.sources crlf
+
+# don't do anything to line-endings. Let CRLFs go into the repo
+*.bat -crlf
+*.sln -crlf
+*.*proj* -crlf
+
+# CRLF Handling
+# -------------
+#
+# The ideal situation would be to do no EOL normalization. Each file
+# would have a default EOL, and tools on Windows and Linux would handle
+# both EOL formats.
+#
+# We're not in the ideal world. A popular editor on Windows (possibly
+# Visual Studio) silently introduces EOL corruption -- it displays an
+# LF-file normally, but any newly added lines have CRLF. On Linux,
+# Emacs and versions of VI handle LF-files and CRLF-files properly.
+# However, emacs doesn't like files with both LF and CRLF EOLs. Editing
+# the file without additional action will increase the EOL corruption
+# in the file.
+#
+# Another vector for mixed EOLs is scripts. We mostly don't have scripts
+# that add new lines -- so we rarely see this. However, one major event
+# in the tree was the addition of copyright headers using a script. That
+# script introduced EOL corruption.
+#
+# Any automated EOL normalization of files already in the repository will
+# cause difficulties in traversing histories, assigning blame, etc. So, we
+# don't want to change what's in the repository significantly, even if it
+# causes trouble.
+#
+# What we do now:
+#
+# a) we ensure that there's no further corruption of LF-files. So, we use
+# git's 'crlf' attribute on those files to ensure that things are fine
+# when we work on Windows. We could use 'crlf=input', but it doesn't buy
+# us much -- we might as well be working with consistent EOLs for files in
+# working directories as well as in the repository
+#
+# b) if the file already of CRLFs, we don't do any normalization. We use '-crlf'
+# so that git doesn't do any EOL-conversion of the file. As I said, this
+# is mostly harmless on Linux. We can't mark these files as 'crlf' or use
+# the new (git 1.7.2) 'eol=crlf' attribute, since it changes the contents
+# _inside_ the repository [1], and hence makes history traversal annoying.
+# So, we live with occasional EOL corruption.
+#
+# c) We can handle mixed-EOL files on a case-by-case basis, converting them to
+# LF- or CRLF-files based on which causes fewer lines to change
+#
+# d) We try to ensure no further headaches, by declaring EOL normalization on
+# code files, and Unix-flavoured files, like shell-scripts, makefiles, etc.
+#
+# [1] GIT use LFs as the normalized internal representation.
directory is automatically configured to share the
same prefix than this module gets.
+
+
--- /dev/null
+/Compat.browser -crlf
--- /dev/null
+/EncodingFoundException.cs -crlf
+/HtmlAttribute.cs -crlf
+/HtmlAttributeCollection.cs -crlf
+/HtmlCmdLine.cs -crlf
+/HtmlCommentNode.cs -crlf
+/HtmlConsoleListener.cs -crlf
+/HtmlDocument.cs -crlf
+/HtmlElementFlag.cs -crlf
+/HtmlEntity.cs -crlf
+/HtmlNameTable.cs -crlf
+/HtmlNode.cs -crlf
+/HtmlNodeCollection.cs -crlf
+/HtmlNodeNavigator.cs -crlf
+/HtmlNodeType.cs -crlf
+/HtmlParseError.cs -crlf
+/HtmlParseErrorCode.cs -crlf
+/HtmlTextNode.cs -crlf
+/HtmlWeb.cs -crlf
+/HtmlWebException.cs -crlf
+/IOLibrary.cs -crlf
+/LICENSE -crlf
+/MixedCodeDocument.cs -crlf
+/MixedCodeDocumentCodeFragment.cs -crlf
+/MixedCodeDocumentFragment.cs -crlf
+/MixedCodeDocumentFragmentList.cs -crlf
+/MixedCodeDocumentFragmentType.cs -crlf
+/MixedCodeDocumentTextFragment.cs -crlf
+/NameValuePair.cs -crlf
+/NameValuePairList.cs -crlf
+/crc32.cs -crlf
+2010-07-25 Zoltan Varga <vargaz@gmail.com>
+
+ * configure.ac src/eglib-config.h.in src/eglib-config.hw: Define G_GINT64_FORMAT.
+
2010-07-20 Zoltan Varga <vargaz@gmail.com>
* src/glib.h (G_LIKELY): Implement these for gcc properly.
GSIZE="long"
GSIZE_FORMAT='"lu"'
G_GUINT64_FORMAT='"lu"'
+ G_GINT64_FORMAT='"ld"'
else
GPOINTER_TO_INT="((gint) (ptr))"
GPOINTER_TO_UINT="((guint) (ptr))"
GSIZE="int"
GSIZE_FORMAT='"u"'
G_GUINT64_FORMAT='"llu"'
+ G_GINT64_FORMAT='"lld"'
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
AC_SUBST(GSIZE)
AC_SUBST(GSIZE_FORMAT)
AC_SUBST(G_GUINT64_FORMAT)
+AC_SUBST(G_GINT64_FORMAT)
AC_OUTPUT([
Makefile
#define G_GSIZE_FORMAT @GSIZE_FORMAT@
#define G_GUINT64_FORMAT @G_GUINT64_FORMAT@
+#define G_GINT64_FORMAT @G_GINT64_FORMAT@
#if @G_HAVE_ISO_VARARGS@ == 1
#define G_HAVE_ISO_VARARGS
#define G_SEARCHPATH_SEPARATOR ';'
#define G_GSIZE_FORMAT "d"
#define G_GUINT64_FORMAT "d"
+#define G_GINT64_FORMAT "d"
#define GPOINTER_TO_INT(ptr) ((gint)(intptr_t) (ptr))
#define GPOINTER_TO_UINT(ptr) ((guint)(intptr_t) (ptr))
#define GINT_TO_POINTER(v) ((gpointer)(intptr_t) (v))
--- /dev/null
+/BCC_MAKEFILE -crlf
+/digimars.mak -crlf
# else
# if (defined(_MSDOS) || defined(_MSC_VER)) && (_M_IX86 >= 300) \
|| defined(_WIN32) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
-# if defined(__LP64__) || defined(_WIN64)\r
-# define X86_64\r
-# else\r
-# define I386\r
-# endif\r
-# define MSWIN32 /* or Win64 */\r
-# define mach_type_known\r
-# endif\r
-# if defined(_MSC_VER) && defined(_M_IA64)\r
-# define IA64\r
-# define MSWIN32 /* Really win64, but we don't treat 64-bit */\r
- /* variants as a differnt platform. */\r
+# if defined(__LP64__) || defined(_WIN64)
+# define X86_64
+# else
+# define I386
+# endif
+# define MSWIN32 /* or Win64 */
+# define mach_type_known
+# endif
+# if defined(_MSC_VER) && defined(_M_IA64)
+# define IA64
+# define MSWIN32 /* Really win64, but we don't treat 64-bit */
+ /* variants as a differnt platform. */
# endif
# endif
# if defined(__DJGPP__)
# define STACKBOTTOM ((ptr_t) LMGetCurStackBase())
# define DATAEND /* not needed */
# endif
-\r
+
# ifdef LINUX
# if defined(__powerpc64__)
# define ALIGNMENT 8
# define PUSH4(r1,r2,r3,r4) PUSH2(r1,r2), PUSH2(r3,r4)
# if defined(I386)
PUSH4(Edi,Esi,Ebx,Edx), PUSH2(Ecx,Eax), PUSH1(Ebp);
- sp = (ptr_t)context.Esp;\r
-# elif defined(X86_64)\r
- PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);\r
- PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);\r
+ sp = (ptr_t)context.Esp;
+# elif defined(X86_64)
+ PUSH4(Rax,Rcx,Rdx,Rbx); PUSH2(Rbp, Rsi); PUSH1(Rdi);
+ PUSH4(R8, R9, R10, R11); PUSH4(R12, R13, R14, R15);
sp = (ptr_t)context.Rsp;
# elif defined(ARM32)
PUSH4(R0,R1,R2,R3),PUSH4(R4,R5,R6,R7),PUSH4(R8,R9,R10,R11),PUSH1(R12);
--- /dev/null
+/LICENSE.MSPL -crlf
+/ScalableMonoIcon.svg -crlf
--- /dev/null
+/Mono.Common.targets -crlf
+/Mono.Default.targets -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/README -crlf
--- /dev/null
+/RncTokenizer.cs -crlf
+/RncWriter.cs -crlf
if (p is RelaxngGrammar)
((RelaxngGrammar) p).IsSourceCompactSyntax = true;
return p;
- } catch (Exception ex) {\r
- throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);\r
- }\r
+ } catch (Exception ex) {
+ throw new RelaxngException (String.Format ("Tokenizer error at line {0}, column {1}: {2}", Line, Column, ex.Message), ex);
+ }
}
private void FillLocation (RelaxngElementBase el)
// (C)2003 Atsushi Enomoto\r
// (C)2004 Novell Inc.\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Collections;\r
}\r
\r
}\r
-}
+}\r
//\r
// (C)2005 Novell Inc.\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Collections;\r
}\r
#endregion\r
}\r
-}
+}\r
--- /dev/null
+/XmlDefaultReader.cs -crlf
//\r
// Copyright (c) 2004 Novell Inc.\r
// All rights reserved\r
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
//\r
// Similar to SAX DefaultHandler\r
--- /dev/null
+/ns-Commons.Xml.Nvdl.xml -crlf
+/ns-Commons.Xml.Relaxng.xml -crlf
--- /dev/null
+/Nvdl.xml -crlf
+/NvdlAction.xml -crlf
+/NvdlActionList.xml -crlf
+/NvdlAllow.xml -crlf
+/NvdlAnyNamespace.xml -crlf
+/NvdlAttach.xml -crlf
+/NvdlAttachPlaceHolder.xml -crlf
+/NvdlAttributable.xml -crlf
+/NvdlBuiltInValidationProvider.xml -crlf
+/NvdlCancelAction.xml -crlf
+/NvdlCompileException.xml -crlf
+/NvdlConfig.xml -crlf
+/NvdlContext.xml -crlf
+/NvdlContextList.xml -crlf
+/NvdlElementBase.xml -crlf
+/NvdlException.xml -crlf
+/NvdlIncludedMode.xml -crlf
+/NvdlMessage.xml -crlf
+/NvdlMessageEventArgs.xml -crlf
+/NvdlMessageEventHandler.xml -crlf
+/NvdlMessageList.xml -crlf
+/NvdlMode.xml -crlf
+/NvdlModeBase.xml -crlf
+/NvdlModeList.xml -crlf
+/NvdlModeUsage.xml -crlf
+/NvdlNamespace.xml -crlf
+/NvdlNestedMode.xml -crlf
+/NvdlNoCancelAction.xml -crlf
+/NvdlNoResultAction.xml -crlf
+/NvdlOption.xml -crlf
+/NvdlOptionList.xml -crlf
+/NvdlReader.xml -crlf
+/NvdlReject.xml -crlf
+/NvdlRelaxngValidatorProvider.xml -crlf
+/NvdlResultAction.xml -crlf
+/NvdlResultType.xml -crlf
+/NvdlRule.xml -crlf
+/NvdlRuleList.xml -crlf
+/NvdlRuleTarget.xml -crlf
+/NvdlRules.xml -crlf
+/NvdlTrigger.xml -crlf
+/NvdlTriggerList.xml -crlf
+/NvdlUnwrap.xml -crlf
+/NvdlValidate.xml -crlf
+/NvdlValidatingReader.xml -crlf
+/NvdlValidationException.xml -crlf
+/NvdlValidationProvider.xml -crlf
+/NvdlValidatorGenerator.xml -crlf
+/NvdlXsdValidatorProvider.xml -crlf
--- /dev/null
+/RncParser.xml -crlf
--- /dev/null
+/IGrammarContent.xml -crlf
+/RelaxngAnyName.xml -crlf
+/RelaxngAttribute.xml -crlf
+/RelaxngBinaryContentPattern.xml -crlf
+/RelaxngChoice.xml -crlf
+/RelaxngData.xml -crlf
+/RelaxngDataSupport.xml -crlf
+/RelaxngDatatype.xml -crlf
+/RelaxngDatatypeProvider.xml -crlf
+/RelaxngDefine.xml -crlf
+/RelaxngDiv.xml -crlf
+/RelaxngElement.xml -crlf
+/RelaxngElementBase.xml -crlf
+/RelaxngEmpty.xml -crlf
+/RelaxngExcept.xml -crlf
+/RelaxngExceptNameClass.xml -crlf
+/RelaxngException.xml -crlf
+/RelaxngExternalRef.xml -crlf
+/RelaxngGrammar.xml -crlf
+/RelaxngGrammarContentList.xml -crlf
+/RelaxngGroup.xml -crlf
+/RelaxngInclude.xml -crlf
+/RelaxngInterleave.xml -crlf
+/RelaxngList.xml -crlf
+/RelaxngMergedProvider.xml -crlf
+/RelaxngMixed.xml -crlf
+/RelaxngName.xml -crlf
+/RelaxngNameChoice.xml -crlf
+/RelaxngNameClass.xml -crlf
+/RelaxngNameClassList.xml -crlf
+/RelaxngNotAllowed.xml -crlf
+/RelaxngNsName.xml -crlf
+/RelaxngOneOrMore.xml -crlf
+/RelaxngOptional.xml -crlf
+/RelaxngParam.xml -crlf
+/RelaxngParamList.xml -crlf
+/RelaxngParentRef.xml -crlf
+/RelaxngPattern.xml -crlf
+/RelaxngPatternList.xml -crlf
+/RelaxngPatternType.xml -crlf
+/RelaxngReader.xml -crlf
+/RelaxngRef.xml -crlf
+/RelaxngSingleContentPattern.xml -crlf
+/RelaxngStart.xml -crlf
+/RelaxngString.xml -crlf
+/RelaxngText.xml -crlf
+/RelaxngToken.xml -crlf
+/RelaxngValidatingReader.xml -crlf
+/RelaxngValue.xml -crlf
+/RelaxngZeroOrMore.xml -crlf
--- /dev/null
+/XmlDefaultReader.xml -crlf
--- /dev/null
+/SimpleElementPattern1.rng -crlf
+/SimpleElementPattern1.xml -crlf
+/SimpleElementPattern2.rng -crlf
+/SimpleElementPattern2.xml -crlf
+/atom.rnc -crlf
+/relaxng.rnc -crlf
+/team.rng -crlf
--- /dev/null
+/README -crlf
+/anglia-test-runner.cs -crlf
+/relaxngtest.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/ZipException.cs -crlf
[assembly: AssemblyTrademark("")]\r
[assembly: AssemblyCulture("")]\r
\r
-#if NET_2_0
+#if NET_2_0\r
[assembly: AssemblyVersion("2.6.0.0")]\r
-#else
-// not worrying about the NET_1_0 profile for now.
+#else\r
+// not worrying about the NET_1_0 profile for now.\r
[assembly: AssemblyVersion("0.6.0.0")]\r
-#endif
+#endif\r
\r
[assembly: AssemblyDelaySign(true)]\r
[assembly: AssemblyKeyFile ("SharpZipLib.pub")]\r
--- /dev/null
+/BZip2.cs -crlf
+/BZip2Constants.cs -crlf
+/BZip2InputStream.cs -crlf
+/BZip2OutputStream.cs -crlf
--- /dev/null
+/Adler32.cs -crlf
+/Crc32.cs -crlf
+/IChecksum.cs -crlf
+/StrangeCrc.cs -crlf
--- /dev/null
+/GZipConstants.cs -crlf
+/GZipInputStream.cs -crlf
+/GZipOutputStream.cs -crlf
--- /dev/null
+/InvalidHeaderException.cs -crlf
+/TarArchive.cs -crlf
+/TarBuffer.cs -crlf
+/TarEntry.cs -crlf
+/TarHeader.cs -crlf
+/TarInputStream.cs -crlf
+/TarOutputStream.cs -crlf
--- /dev/null
+/ZipConstants.cs -crlf
+/ZipEntry.cs -crlf
+/ZipFile.cs -crlf
+/ZipInputStream.cs -crlf
+/ZipOutputStream.cs -crlf
--- /dev/null
+/Deflater.cs -crlf
+/DeflaterConstants.cs -crlf
+/DeflaterEngine.cs -crlf
+/DeflaterHuffman.cs -crlf
+/DeflaterPending.cs -crlf
+/Inflater.cs -crlf
+/InflaterDynHeader.cs -crlf
+/InflaterHuffmanTree.cs -crlf
+/PendingBuffer.cs -crlf
--- /dev/null
+/DeflaterOutputStream.cs -crlf
+/InflaterInputStream.cs -crlf
+/OutputWindow.cs -crlf
+/StreamManipulator.cs -crlf
("count", Strings.GetString("ArgRange_Array"));
}
- if (count == 0)\r
- return string.Empty;\r
-\r
- string s = new string ((char) 0, count);\r
-\r
- fixed (byte* bytePtr = bytes)\r
- fixed (char* charPtr = s)\r
- fixed (char* cvt = toChars) {\r
- byte* b = bytePtr + index;\r
- char* c = charPtr;\r
+ if (count == 0)
+ return string.Empty;
+
+ string s = new string ((char) 0, count);
+
+ fixed (byte* bytePtr = bytes)
+ fixed (char* charPtr = s)
+ fixed (char* cvt = toChars) {
+ byte* b = bytePtr + index;
+ char* c = charPtr;
while(count-- != 0)
*(c++) = cvt[*(b++)];
}
-\r
- return s;\r
+
+ return s;
}
public override String GetString(byte[] bytes)
{
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/DB2ClientUtils.cs -crlf
+/DB2Command.cs -crlf
+/DB2Connection.cs -crlf
+/DB2ConnectionPool.cs -crlf
+/DB2ConnectionSettings.cs -crlf
+/DB2Constants.cs -crlf
+/DB2DataReader.cs -crlf
+/DB2Environment.cs -crlf
+/DB2Error.cs -crlf
+/DB2ErrorCollection.cs -crlf
+/DB2Exception.cs -crlf
+/DB2InfoMessageEventHandler.cs -crlf
+/DB2OpenConnection.cs -crlf
+/DB2Parameter.cs -crlf
+/DB2ParameterCollection.cs -crlf
+/DB2Transaction.cs -crlf
+/DB2Type.cs -crlf
DataAdapter = adapter;
}
- public DB2DataAdapter DataAdapter \r
+ public DB2DataAdapter DataAdapter
{
get
{
}
}
- public string QuotePrefix \r
+ public string QuotePrefix
{
get
{
{ }
}
- public string QuoteSuffix \r
+ public string QuoteSuffix
{
get
{
values += ", ";
}
- if(!((bool)dr["IsAutoIncrement"]))\r
+ if(!((bool)dr["IsAutoIncrement"]))
{
fields += column.ColumnName;
//values += ":v_" + column.ColumnName;
{
//DataColumn column = dt.Columns[i];
DataRow dr = dt.Rows[i];
- DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));\r
- if (!((bool)dr["IsAutoIncrement"]))\r
+ DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
+ if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("v_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
string wheres = "";
for (int i = 0; i < dt.Rows.Count; i++)
{
- if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))\r
+ if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))
{
sets += ", ";
}
{
DataRow dr = dt.Rows[i];
DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
- if (!((bool)dr["IsAutoIncrement"]))\r
+ if (!((bool)dr["IsAutoIncrement"]))
{
DB2Parameter aux = new DB2Parameter("s_" + column.ColumnName, column.DataType);
aux.Direction = ParameterDirection.Input;
deleteCommand = null;
}
- private DataTable GetSchema()\r
+ private DataTable GetSchema()
{
dataAdapter.SelectCommand.Connection.Open();
DB2Command cmd = new DB2Command(dataAdapter.SelectCommand.CommandText, dataAdapter.SelectCommand.Connection);
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections;\r
using System.Text;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Runtime.InteropServices;\r
using System.Text;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace IBM.Data.DB2\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
-using System.Collections;
-using System.Data;
-using System.Runtime.InteropServices;
-using System.Globalization;
-using System.Text;
-
-namespace IBM.Data.DB2
-{
- /// <summary>
- /// Summary description for DB2ClientDataReader.
- /// DB2ClientDataReader.
- /// </summary>
- public sealed class DB2DataReader : MarshalByRefObject, IDataReader
- {
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+using System;\r
+using System.Collections;\r
+using System.Data;\r
+using System.Runtime.InteropServices;\r
+using System.Globalization;\r
+using System.Text;\r
+\r
+namespace IBM.Data.DB2\r
+{\r
+ /// <summary>\r
+ /// Summary description for DB2ClientDataReader.\r
+ /// DB2ClientDataReader. \r
+ /// </summary>\r
+ public sealed class DB2DataReader : MarshalByRefObject, IDataReader\r
+ {\r
private struct ColumnInfo\r
{\r
public string Colname;\r
public int Sqltype;\r
- }
-
+ }\r
+\r
private object[] _resultSet;\r
private ColumnInfo[] columnInfo;\r
private Hashtable columnsNames;\r
private CommandBehavior behavior;\r
private bool hasRows;\r
private bool skipReadOnce;\r
-
-
+ \r
+ \r
#region Constructors and destructors\r
/// <summary>\r
/// \r
}\r
\r
#endregion\r
-
+\r
private void GetFieldCountAndAffectedRows()\r
{\r
short sqlRet;\r
sqlRet = DB2CLIWrapper.SQLNumResultCols(hwndStmt, out colCount);\r
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols", db2Conn);\r
fieldCount = colCount;\r
- }
-
- #region Properties
-
- #region Depth property
- ///
- ///Depth of nesting for the current row, need to figure out what this translates into
- ///with DB2.
- ///
- private int depth = 0;
- public int Depth
- {
- get
- {
+ }\r
+\r
+ #region Properties\r
+\r
+ #region Depth property \r
+ ///\r
+ ///Depth of nesting for the current row, need to figure out what this translates into \r
+ ///with DB2.\r
+ ///\r
+ private int depth = 0;\r
+ public int Depth\r
+ {\r
+ get\r
+ {\r
if(isClosed)\r
{\r
throw new InvalidOperationException("Reader is closed");\r
- }
- return depth;
- }
- }
- #endregion
-
- #region IsClosed property
- /// <summary>
- /// True if the reader is closed.
- /// </summary>
- private bool isClosed = true;
- public bool IsClosed
- {
- get
- {
- return isClosed;
- }
- }
- #endregion
-
- #region RecordsAffected property
- ///
- /// Number of records affected by this operation. Will be zero until we close the
- /// reader
- ///
-
- public int RecordsAffected
- {
- get
- {
- return recordsAffected;
- }
- }
- #endregion
-
- #endregion
-
- #region Methods
-
-
-
+ }\r
+ return depth;\r
+ }\r
+ }\r
+ #endregion\r
+\r
+ #region IsClosed property\r
+ /// <summary>\r
+ /// True if the reader is closed.\r
+ /// </summary>\r
+ private bool isClosed = true;\r
+ public bool IsClosed\r
+ {\r
+ get\r
+ {\r
+ return isClosed;\r
+ }\r
+ }\r
+ #endregion\r
+\r
+ #region RecordsAffected property\r
+ ///\r
+ /// Number of records affected by this operation. Will be zero until we close the \r
+ /// reader\r
+ /// \r
+ \r
+ public int RecordsAffected\r
+ {\r
+ get\r
+ {\r
+ return recordsAffected;\r
+ }\r
+ }\r
+ #endregion\r
+\r
+ #endregion\r
+\r
+ #region Methods\r
+\r
+\r
+\r
#region Close method\r
\r
public void Close()\r
Dispose(false);\r
}\r
\r
- #endregion
-
- #region GetSchemaTable
-
+ #endregion\r
+\r
+ #region GetSchemaTable \r
+\r
public DataTable GetSchemaTable()\r
{\r
if(isClosed)\r
}\r
}\r
return _schemaTable;\r
- }
- #endregion
-
- #region NextResult
-
+ }\r
+ #endregion\r
+\r
+ #region NextResult \r
+\r
public bool NextResult()\r
{\r
hasRows = false;\r
return false;\r
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Db2ClientDataReader - SQLMoreResults", db2Conn);\r
return true;\r
- }
- #endregion
-
- #region Read
-
+ }\r
+ #endregion\r
+\r
+ #region Read\r
+\r
#if !NET_1_0\r
public bool HasRows\r
{\r
return hasRows;\r
}\r
}\r
-#endif
-
+#endif\r
+\r
public bool Read()\r
{\r
if (isClosed)\r
\r
hasData = true;\r
return true;\r
- }
- #endregion
-
- #region GetColumnInfo
+ }\r
+ #endregion\r
+\r
+ #region GetColumnInfo\r
private void GetColumnInfo()\r
{\r
if(isClosed)\r
\r
\r
}\r
- }
- #endregion
-
- #region Describe/Bind/Fetch functions
- ///
- ///Broke these out so that we can use different paths for Immediate executions and Prepared executions
- /// <summary>
- /// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries.
- /// </summary>
-
-/// <summary>
-/// FetchResults does what it says.
-/// </summary>
-/// <param name="dbVals"></param>
-/// <param name="sqlLen_or_IndPtr"></param>
-/// <param name="_resultSet"></param>
+ }\r
+ #endregion\r
+\r
+ #region Describe/Bind/Fetch functions\r
+ ///\r
+ ///Broke these out so that we can use different paths for Immediate executions and Prepared executions\r
+ /// <summary>\r
+ /// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries. \r
+ /// </summary>\r
+ \r
+/// <summary>\r
+/// FetchResults does what it says.\r
+/// </summary>\r
+/// <param name="dbVals"></param>\r
+/// <param name="sqlLen_or_IndPtr"></param>\r
+/// <param name="_resultSet"></param>\r
private int FieldNameLookup(DataTable _schemaTable, string name)\r
{\r
for(int i = 0; i < _schemaTable.Rows.Count; i++)\r
}\r
}\r
return -1;\r
- }
-
- #endregion
-
- #region IDataRecord Interface
- ///Code for the IDataRecord interface
- ///
- #region FieldCount
- ///
- ///
+ }\r
+ \r
+ #endregion\r
+\r
+ #region IDataRecord Interface\r
+ ///Code for the IDataRecord interface\r
+ ///\r
+ #region FieldCount\r
+ ///\r
+ ///\r
public int FieldCount\r
{\r
get\r
\r
return fieldCount;\r
}\r
- }
- #endregion
-
- #region Item accessors
+ }\r
+ #endregion\r
+\r
+ #region Item accessors\r
public object this[string name]\r
{\r
get\r
}\r
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);\r
}\r
- }
- #endregion
-
+ }\r
+ #endregion\r
+\r
#region GetBytes\r
///\r
/// GetBytes, return a stream of bytes\r
return sourceArray.LongLength;\r
#endif\r
}\r
- #endregion
-
+ #endregion\r
+\r
#region GetChars\r
///\r
///GetChars, returns char array\r
}\r
return (long)sourceString.Length;\r
}\r
- #endregion
-
- #region GetBoolean method
-
+ #endregion\r
+\r
+ #region GetBoolean method\r
+\r
public Boolean GetBoolean(int col)\r
{\r
return (Boolean)GetBooleanInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
+ }\r
+ #endregion\r
+\r
#region GetGuid\r
///\r
/// GetDateTime method\r
return _resultSet[col];\r
}\r
\r
- #endregion
-
- #region GetByte
- ///
- ///GetByte
- ///
+ #endregion\r
+\r
+ #region GetByte\r
+ ///\r
+ ///GetByte\r
+ ///\r
public Byte GetByte(int col)\r
{\r
return (Byte)GetByteInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
- #region GetChar
- ///
- ///GetChar, return column as a char
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetChar\r
+ ///\r
+ ///GetChar, return column as a char\r
+ ///\r
public Char GetChar(int col)\r
{\r
return (Char)GetCharInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
- #region GetData
- ///
- /// GetData method
- ///
- public IDataReader GetData(int col)
- {
- //Have to research this one, not quite sure what the docs mean
- //DB2 does have some structured data types, is that what this is for?
- throw new NotSupportedException();
- }
- #endregion
-
- #region GetDataTypeName
- ///
- ///GetDataTypeName return the type of data
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetData\r
+ ///\r
+ /// GetData method\r
+ /// \r
+ public IDataReader GetData(int col)\r
+ {\r
+ //Have to research this one, not quite sure what the docs mean\r
+ //DB2 does have some structured data types, is that what this is for?\r
+ throw new NotSupportedException();\r
+ }\r
+ #endregion\r
+\r
+ #region GetDataTypeName\r
+ ///\r
+ ///GetDataTypeName return the type of data\r
+ ///\r
public string GetDataTypeName(int col)\r
{\r
if(columnInfo == null)\r
return "VARBINARY";\r
}\r
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);\r
- }
- #endregion
-
- #region GetDateTime
- ///
- /// GetDateTime method
- ///
-
+ }\r
+ #endregion\r
+\r
+ #region GetDateTime\r
+ ///\r
+ /// GetDateTime method\r
+ /// \r
+\r
public DateTime GetDateTime(int col)\r
{\r
return (DateTime)GetDateTimeInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
+ }\r
+ #endregion\r
+\r
#region GetDate\r
///\r
/// GetDate method\r
return _resultSet[col];\r
}\r
\r
- #endregion
-
+ #endregion\r
+\r
#region GetTime\r
///\r
/// GetTime method\r
return _resultSet[col];\r
}\r
\r
- #endregion
-
-
- #region GetDecimal
- ///
- ///GetDecimal method
- ///
+ #endregion\r
+\r
+\r
+ #region GetDecimal\r
+ ///\r
+ ///GetDecimal method\r
+ ///\r
\r
public Decimal GetDecimal(int col)\r
{\r
// }\r
// } \r
return _resultSet[col];\r
- }
- #endregion
-
- #region GetDouble
- ///
- /// GetDouble
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetDouble \r
+ ///\r
+ /// GetDouble \r
+ /// \r
public Double GetDouble(int col)\r
{\r
return (Double)GetDoubleInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
- #region GetFieldType
- ///
- /// Type GetFieldType
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetFieldType\r
+ ///\r
+ /// Type GetFieldType\r
+ ///\r
public Type GetFieldType(int col)\r
{\r
if(columnInfo == null)\r
GetColumnInfo();\r
}\r
return GetManagedType(columnInfo[col].Sqltype);\r
- }
- #endregion
-
- #region GetFloat
- ///
- /// GetFloat
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetFloat\r
+ ///\r
+ /// GetFloat\r
+ /// \r
public float GetFloat(int col)\r
{\r
return (float)GetFloatInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
- #region The GetInt?? series
- ///
- ///GetInt16
- ///
+ }\r
+ #endregion\r
+\r
+ #region The GetInt?? series\r
+ ///\r
+ ///GetInt16\r
+ ///\r
public short GetInt16(int col)\r
{\r
return (short)GetInt16Internal(col);\r
} \r
return _resultSet[col];\r
}\r
-
- #endregion
-
- #region GetName
- ///
- ///GetName, returns the name of the field
- ///
+\r
+ #endregion\r
+\r
+ #region GetName\r
+ ///\r
+ ///GetName, returns the name of the field\r
+ ///\r
public string GetName(int col)\r
{\r
if(columnInfo == null)\r
GetColumnInfo();\r
}\r
return columnInfo[col].Colname;\r
- }
- #endregion
-
- #region GetOrdinal
- ///
- /// GetOrdinal, return the index of the named column
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetOrdinal\r
+ ///\r
+ /// GetOrdinal, return the index of the named column\r
+ /// \r
public int GetOrdinal(string name)\r
{\r
if(columnInfo == null)\r
throw new IndexOutOfRangeException("name");\r
}\r
return (int)ordinal;\r
- }
- #endregion
-
- #region GetString
- ///
- /// GetString returns a string
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetString\r
+ ///\r
+ /// GetString returns a string\r
+ /// \r
public string GetString(int col)\r
{\r
return (string)GetStringInternal(col);\r
}\r
} \r
return _resultSet[col];\r
- }
- #endregion
-
- #region GetValue
- ///
- /// GetVCalue, returns an object
- ///
- public object GetValue(int col)
- {
- return this[col];
- }
- #endregion
-
- #region GetValues
- ///
- /// GetValues returns all columns in the row through the argument, and the number of columns in the return value
- ///
+ }\r
+ #endregion\r
+\r
+ #region GetValue\r
+ ///\r
+ /// GetVCalue, returns an object\r
+ /// \r
+ public object GetValue(int col)\r
+ {\r
+ return this[col];\r
+ }\r
+ #endregion\r
+\r
+ #region GetValues\r
+ ///\r
+ /// GetValues returns all columns in the row through the argument, and the number of columns in the return value\r
+ /// \r
public int GetValues(object[] values)\r
{\r
int count = Math.Min(fieldCount, values.Length);\r
}\r
\r
return count;\r
- }
- #endregion
-
- #region IsDBNull
- ///
- /// IsDBNull Is the column null
- ///
+ }\r
+ #endregion\r
+\r
+ #region IsDBNull\r
+ ///\r
+ /// IsDBNull Is the column null\r
+ /// \r
public bool IsDBNull(int col)\r
{\r
//Proper implementation once I get the SQLDescribe/SQLBind/SQLFetch stuff in place\r
return Convert.IsDBNull(this[col]);\r
- }
- #endregion
-
- #endregion ///For IDataRecord
-
- #region private methods
-
+ }\r
+ #endregion\r
+\r
+ #endregion ///For IDataRecord\r
+\r
+ #region private methods\r
+ \r
private DataTable BuildNewSchemaTable()\r
{\r
DataTable schemaTable = new DataTable("SchemaTable");\r
schemaTable.Columns.Add(new DataColumn("BaseColumnName", typeof(string)));\r
\r
return schemaTable;\r
- }
- #endregion
-
- private void InitMem(int memSize, ref IntPtr ptr){
- if (ptr.ToInt32() == 0){
- unsafe{
- fixed(byte* arr = new byte[memSize]){
- ptr = new IntPtr(arr);
- }
- }
- }
- }
-
+ }\r
+ #endregion\r
+ \r
+ private void InitMem(int memSize, ref IntPtr ptr){\r
+ if (ptr.ToInt32() == 0){\r
+ unsafe{\r
+ fixed(byte* arr = new byte[memSize]){\r
+ ptr = new IntPtr(arr); \r
+ }\r
+ }\r
+ } \r
+ }\r
+ \r
private Type GetManagedType(int sql_type)\r
{\r
switch(sql_type)\r
return typeof(byte[]);\r
}\r
throw new NotImplementedException("Unknown SQL type " + sql_type);\r
- }
-
+ }\r
+ \r
private bool IsLong(short sql_type)\r
{\r
switch(sql_type)\r
return true;\r
}\r
return false;\r
- }
+ }\r
private object GetBlobDataInternal(int col)\r
{\r
if((col < 0) || (col >= fieldCount))\r
}\r
} \r
return _resultSet[col];\r
- }
- }
-
-}
-#endregion
+ }\r
+ }\r
+\r
+}\r
+#endregion\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections;\r
using System.Text;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections;\r
using System.Runtime.InteropServices;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Data;\r
using System.Runtime.InteropServices;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Data;\r
using System.Collections;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Data;\r
using System.Runtime.InteropServices;\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace IBM.Data.DB2\r
--- /dev/null
+/AssemblyInfo.cs -crlf
+/ICSharpCode.SharpZLib.prjx -crlf
+/Main.cs -crlf
+/SharpZipBaseException.cs -crlf
--- /dev/null
+/BZip2.cs -crlf
+/BZip2Constants.cs -crlf
+/BZip2Exception.cs -crlf
+/BZip2InputStream.cs -crlf
+/BZip2OutputStream.cs -crlf
--- /dev/null
+/Adler32.cs -crlf
+/CRC32.cs -crlf
+/IChecksum.cs -crlf
+/StrangeCRC.cs -crlf
--- /dev/null
+/FileSystemScanner.cs -crlf
+/INameTransform.cs -crlf
+/NameFilter.cs -crlf
+/PathFilter.cs -crlf
--- /dev/null
+/PkzipClassic.cs -crlf
--- /dev/null
+/GZIPConstants.cs -crlf
+/GZipException.cs -crlf
+/GzipInputStream.cs -crlf
+/GzipOutputStream.cs -crlf
--- /dev/null
+/InvalidHeaderException.cs -crlf
+/TarArchive.cs -crlf
+/TarBuffer.cs -crlf
+/TarEntry.cs -crlf
+/TarException.cs -crlf
+/TarHeader.cs -crlf
+/TarInputStream.cs -crlf
+/TarOutputStream.cs -crlf
--- /dev/null
+/FastZip.cs -crlf
+/ZipConstants.cs -crlf
+/ZipEntry.cs -crlf
+/ZipException.cs -crlf
+/ZipFile.cs -crlf
+/ZipInputStream.cs -crlf
+/ZipNameTransform.cs -crlf
+/ZipOutputStream.cs -crlf
--- /dev/null
+/Deflater.cs -crlf
+/DeflaterConstants.cs -crlf
+/DeflaterEngine.cs -crlf
+/DeflaterHuffman.cs -crlf
+/DeflaterPending.cs -crlf
+/Inflater.cs -crlf
+/InflaterDynHeader.cs -crlf
+/InflaterHuffmanTree.cs -crlf
+/PendingBuffer.cs -crlf
--- /dev/null
+/DeflaterOutputStream.cs -crlf
+/InflaterInputStream.cs -crlf
+/OutputWindow.cs -crlf
+/StreamManipulator.cs -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/MainsoftWebSectionGroup.cs -crlf
+/PagesSection.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/Web.config -crlf
+/Web.config.bak -crlf
+/makefile.build -crlf
--- /dev/null
+/GlobalResource.resx -crlf
--- /dev/null
+/CreateRole.aspx.resx -crlf
+/CreateUser.aspx.resx -crlf
+/Default.aspx.resx -crlf
+/EditUser.aspx.resx -crlf
+/ManageRole.aspx.resx -crlf
+/ManageUser.aspx.resx -crlf
+/Util.Master.resx -crlf
--- /dev/null
+/Searcher.ascx -crlf
+/Searcher.ascx.cs -crlf
+/Searcher.ascx.cs.bak -crlf
+/Searcher.ascx.designer.cs -crlf
+/Searcher.ascx.designer.cs.bak -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/AssemblyInfo.cs.bak -crlf
--- /dev/null
+/faces-config.xml -crlf
+/web.xml -crlf
--- /dev/null
+/CreateRole.aspx -crlf
+/CreateRole.aspx.cs -crlf
+/CreateRole.aspx.designer.cs -crlf
+/CreateUser.aspx -crlf
+/CreateUser.aspx.cs -crlf
+/CreateUser.aspx.designer.cs -crlf
+/Default.aspx -crlf
+/Default.aspx.cs -crlf
+/Default.aspx.designer.cs -crlf
+/EditUser.aspx -crlf
+/EditUser.aspx.cs -crlf
+/EditUser.aspx.designer.cs -crlf
+/Error.aspx -crlf
+/Error.aspx.cs -crlf
+/Error.aspx.designer.cs -crlf
+/GridButton.cs -crlf
+/GridCheckBox.cs -crlf
+/Mainsoft.Web.AspnetConfig.css -crlf
+/ManageRole.aspx -crlf
+/ManageRole.aspx.cs -crlf
+/ManageRole.aspx.designer.cs -crlf
+/ManageUser.aspx -crlf
+/ManageUser.aspx.cs -crlf
+/ManageUser.aspx.designer.cs -crlf
+/RolesDS.cs -crlf
+/SecurError.aspx -crlf
+/SecurError.aspx.cs -crlf
+/SecurError.aspx.designer.cs -crlf
+/StrUtils.cs -crlf
+/Util.Master -crlf
+/Util.Master.cs -crlf
+/Util.Master.designer.cs -crlf
using System.Collections;
using System.Configuration;
using System.Xml;
-using System.Globalization;\r
-using System;\r
-\r
+using System.Globalization;
+using System;
+
namespace Mainsoft.Web.Configuration
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System.Web.SessionState;\r
-using System.Web;\r
+using System.Web.SessionState;
+using System.Web;
using System;
namespace Mainsoft.Web.Util {
--- /dev/null
+/AbstractAttributeMap.cs -crlf
+/AspNetFacesContext.cs -crlf
+/BaseExternalContext.cs -crlf
+/BaseFacesPageHandlerFactory.cs -crlf
+/BaseFacesStateManager.cs -crlf
+/BaseFacesViewHandler.cs -crlf
+/ChangeLog -crlf
+/IExtendedViewHandler.cs -crlf
+/OutputStreamWrapper.cs -crlf
+/RequestParameterMap.cs -crlf
+/RequestParameterValuesMap.cs -crlf
+/ServletFacesContext.cs -crlf
+/ServletFacesPageHandler.cs -crlf
+/ServletFacesPageHandlerFactory.cs -crlf
+/ServletFacesStateManager.cs -crlf
+/ServletFacesViewHandler.cs -crlf
+/ServletIncludeUtils.cs -crlf
+/ServletResourceLoader.cs -crlf
+/SessionWrapper.cs -crlf
namespace Mainsoft.Web.Hosting
{
- /// <summary>\r
- /// <para>This class supports the Framework infrastructure and is not intended to be used directly from your code.</para>\r
+ /// <summary>
+ /// <para>This class supports the Framework infrastructure and is not intended to be used directly from your code.</para>
/// </summary>
public class IncludeHelperServlet : HttpServlet
{
namespace System.Web.GH
{
- /// <summary>\r
- /// <para>This class supports the Framework infrastructure and is not intended to be used directly from your code.</para>\r
+ /// <summary>
+ /// <para>This class supports the Framework infrastructure and is not intended to be used directly from your code.</para>
/// </summary>
public class IncludeHelperServlet : Mainsoft.Web.Hosting.IncludeHelperServlet
{
return _HttpServletRequest.getServerPort ();
}
- public override string GetPathInfo () {\r
+ public override string GetPathInfo () {
return base.GetPathInfo () ?? String.Empty;
}
--- /dev/null
+/ChangeLog -crlf
+/CloudscapeProfileProvider.cs -crlf
+/DerbyProfileHelper.cs -crlf
+/DerbyProfileProvider.cs -crlf
return 0;\r
\r
string queryDelete = @"DELETE FROM aspnet_Profile WHERE UserId IN ( " +\r
- "SELECT UserId FROM aspnet_Users WHERE ApplicationId = ? AND LastActivityDate <= ? " +
+ "SELECT UserId FROM aspnet_Users WHERE ApplicationId = ? AND LastActivityDate <= ? " + \r
GetProfileAuthOptions (profileAuthOptions) + ")";\r
OleDbCommand cmdDelete = new OleDbCommand (queryDelete, (OleDbConnection) connection);\r
AddParameter (cmdDelete, "ApplicationId", appId);\r
if (appId == null)\r
return 0;\r
\r
- string querySelect = @"SELECT COUNT(*) FROM aspnet_Users usr, aspnet_Profile prf WHERE ApplicationId = ? " +
+ string querySelect = @"SELECT COUNT(*) FROM aspnet_Users usr, aspnet_Profile prf WHERE ApplicationId = ? " +\r
"AND usr.UserId = prf.UserId AND LastActivityDate <= ? " + GetProfileAuthOptions(profileAuthOptions);\r
OleDbCommand cmdSelect = new OleDbCommand (querySelect, (OleDbConnection) connection);\r
AddParameter (cmdSelect, "ApplicationId", appId);\r
//\r
-// Mainsoft.Web.Profile.DerbyProfileProvider
-//
-// Authors:
-// Vladimir Krasnov (vladimirk@mainsoft.com)
-//
-// (C) 2006 Mainsoft
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-#if NET_2_0
-
+// Mainsoft.Web.Profile.DerbyProfileProvider\r
+//\r
+// Authors:\r
+// Vladimir Krasnov (vladimirk@mainsoft.com)\r
+//\r
+// (C) 2006 Mainsoft\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+\r
+#if NET_2_0\r
+\r
using System;\r
using System.Data.OleDb;\r
using System.Data.Common;\r
-using System.Collections;
+using System.Collections;\r
using System.Configuration;\r
using System.Globalization;\r
using System.Web.Profile;\r
-using System.Web.Configuration;
+using System.Web.Configuration;\r
using System.Collections.Specialized;\r
using System.Text;\r
using System.IO;\r
using Mainsoft.Web.Security;\r
using System.Configuration.Provider;\r
\r
-namespace Mainsoft.Web.Profile
-{
+namespace Mainsoft.Web.Profile\r
+{\r
/// <summary>\r
/// <para>This class supports the Framework infrastructure and is not intended to be used directly from your code.</para>\r
/// <para>Manages storage of profile information for an ASP.NET application in a Derby database.</para>\r
- /// </summary>
- public class DerbyProfileProvider : ProfileProvider
+ /// </summary>\r
+ public class DerbyProfileProvider : ProfileProvider\r
{\r
ConnectionStringSettings _connectionString;\r
- string _applicationName = string.Empty;
+ string _applicationName = string.Empty;\r
bool _schemaChecked = false;\r
- DerbyUnloadManager.DerbyShutDownPolicy _shutDownPolicy = DerbyUnloadManager.DerbyShutDownPolicy.Default;
-
- public DerbyProfileProvider ()
- {
+ DerbyUnloadManager.DerbyShutDownPolicy _shutDownPolicy = DerbyUnloadManager.DerbyShutDownPolicy.Default;\r
+\r
+ public DerbyProfileProvider ()\r
+ {\r
}\r
\r
public override string ApplicationName\r
OleDbConnection connection = new OleDbConnection (_connectionString.ConnectionString);\r
connection.Open ();\r
return connection;\r
- }
-
- public override int DeleteInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
+ }\r
+ \r
+ public override int DeleteInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)\r
{\r
using (DbConnection connection = CreateConnection ()) {\r
return DerbyProfileHelper.Profile_DeleteInactiveProfiles (connection, ApplicationName, (int) authenticationOption, userInactiveSinceDate);\r
- }
+ }\r
}\r
\r
public override int DeleteProfiles (ProfileInfoCollection profiles)\r
}\r
\r
return DeleteProfilesInternal (usernames);\r
- }
-
- private int DeleteProfilesInternal (string[] usernames)
+ }\r
+\r
+ private int DeleteProfilesInternal (string[] usernames)\r
{\r
using (DbConnection connection = CreateConnection ()) {\r
return DerbyProfileHelper.Profile_DeleteProfiles (connection, ApplicationName, usernames);\r
return BuildProfileInfoCollection (reader, pageIndex, pageSize, out totalRecords);\r
}\r
}\r
- }
-
- public override ProfileInfoCollection GetAllInactiveProfiles (ProfileAuthenticationOption authenticationOption,
- DateTime userInactiveSinceDate,
- int pageIndex,
- int pageSize,
- out int totalRecords)
+ }\r
+\r
+ public override ProfileInfoCollection GetAllInactiveProfiles (ProfileAuthenticationOption authenticationOption,\r
+ DateTime userInactiveSinceDate,\r
+ int pageIndex,\r
+ int pageSize,\r
+ out int totalRecords)\r
{\r
if (pageIndex < 0)\r
throw new ArgumentException ("pageIndex is less than zero");\r
return BuildProfileInfoCollection (reader, pageIndex, pageSize, out totalRecords);\r
}\r
}\r
- }
-
- public override ProfileInfoCollection GetAllProfiles (ProfileAuthenticationOption authenticationOption,
- int pageIndex,
- int pageSize,
- out int totalRecords)
+ }\r
+\r
+ public override ProfileInfoCollection GetAllProfiles (ProfileAuthenticationOption authenticationOption,\r
+ int pageIndex,\r
+ int pageSize,\r
+ out int totalRecords)\r
{\r
if (pageIndex < 0)\r
throw new ArgumentException ("pageIndex is less than zero");\r
return BuildProfileInfoCollection (reader, pageIndex, pageSize, out totalRecords);\r
}\r
}\r
- }
-
- public override int GetNumberOfInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)
+ }\r
+\r
+ public override int GetNumberOfInactiveProfiles (ProfileAuthenticationOption authenticationOption, DateTime userInactiveSinceDate)\r
{\r
using (DbConnection connection = CreateConnection ()) {\r
return DerbyProfileHelper.Profile_GetNumberOfInactiveProfiles (\r
connection, ApplicationName, (int) authenticationOption, userInactiveSinceDate);\r
}\r
- }
-
- public override SettingsPropertyValueCollection GetPropertyValues (SettingsContext sc, SettingsPropertyCollection properties)
+ }\r
+\r
+ public override SettingsPropertyValueCollection GetPropertyValues (SettingsContext sc, SettingsPropertyCollection properties)\r
{\r
SettingsPropertyValueCollection settings = new SettingsPropertyValueCollection ();\r
\r
buf, username, authenticated, DateTime.UtcNow);\r
}\r
}\r
-
- public override void Initialize (string name, NameValueCollection config)
+\r
+ public override void Initialize (string name, NameValueCollection config)\r
{\r
if (config == null)\r
throw new ArgumentNullException ("config");\r
int size = reader.GetInt32 (4);\r
\r
return new ProfileInfo (username, anonymous, lastActivity, lastUpdate, size);\r
- }
+ }\r
\r
// Helper methods\r
private void DecodeProfileData (string allnames, string values, byte [] buf, SettingsPropertyValueCollection properties)\r
throw new ArgumentException (String.Format ("invalid format for {0}", pName));\r
}\r
\r
-
- }
-}
-
-#endif
+\r
+ }\r
+}\r
+\r
+#endif\r
--- /dev/null
+/ChangeLog -crlf
+/CloudscapeMembershipProvider.cs -crlf
+/CloudscapeRoleProvider.cs -crlf
+/DerbyApplicationsHelper.cs -crlf
+/DerbyMembershipHelper.cs -crlf
+/DerbyMembershipProvider.cs -crlf
+/DerbyRoleProvider.cs -crlf
+/DerbyRolesHelper.cs -crlf
\r
public static int Membership_GetNumberOfUsersOnline (DbConnection connection, string applicationName, int minutesSinceLastInActive, DateTime currentTimeUtc)\r
{\r
- string queryUsersActive = "SELECT COUNT(*) FROM aspnet_Users usr, aspnet_Applications app, aspnet_Membership mbr " +
- "WHERE usr.ApplicationId = app.ApplicationId AND usr.LastActivityDate > ? AND " +
+ string queryUsersActive = "SELECT COUNT(*) FROM aspnet_Users usr, aspnet_Applications app, aspnet_Membership mbr " +\r
+ "WHERE usr.ApplicationId = app.ApplicationId AND usr.LastActivityDate > ? AND " +\r
"app.LoweredApplicationName = ? AND usr.UserId = mbr.UserId";\r
\r
\r
return 1; // user not found\r
}\r
\r
- string querySelect = "SELECT usr.UserName, mbr.UserId, mbr.Email, mbr.PasswordQuestion, mbr.Comment, mbr.IsApproved, " +
- "mbr.IsLockedOut, mbr.CreateDate, mbr.LastLoginDate, usr.LastActivityDate, mbr.LastPasswordChangedDate, mbr.LastLockoutDate " +
- "FROM aspnet_Users usr, aspnet_Membership mbr " +
+ string querySelect = "SELECT usr.UserName, mbr.UserId, mbr.Email, mbr.PasswordQuestion, mbr.Comment, mbr.IsApproved, " + \r
+ "mbr.IsLockedOut, mbr.CreateDate, mbr.LastLoginDate, usr.LastActivityDate, mbr.LastPasswordChangedDate, mbr.LastLockoutDate " +\r
+ "FROM aspnet_Users usr, aspnet_Membership mbr " +\r
"WHERE usr.UserId = ? AND usr.UserId = mbr.UserId";\r
OleDbCommand cmdSelect = new OleDbCommand (querySelect, (OleDbConnection) connection);\r
AddParameter (cmdSelect, "UserId", userId);\r
if (roleId == null)\r
return 2;\r
\r
- string querySelect = "SELECT usr.UserName FROM aspnet_Users usr, aspnet_UsersInRoles uir " +
- "WHERE usr.UserId = uir.UserId AND usr.ApplicationId = ? AND uir.RoleId = ? AND LoweredUserName LIKE ? " +
+ string querySelect = "SELECT usr.UserName FROM aspnet_Users usr, aspnet_UsersInRoles uir " +\r
+ "WHERE usr.UserId = uir.UserId AND usr.ApplicationId = ? AND uir.RoleId = ? AND LoweredUserName LIKE ? " +\r
"ORDER BY usr.UserName";\r
OleDbCommand cmdSelect = new OleDbCommand (querySelect, (OleDbConnection) connection);\r
AddParameter (cmdSelect, "ApplicationId", appId);\r
--- /dev/null
+/ObjectInputStream.cs -crlf
+/ObjectOutputStream.cs -crlf
+/ServletSessionIDManager.cs -crlf
+/ServletSessionStateItemCollection.cs -crlf
+/ServletSessionStateStoreProvider.cs -crlf
--- /dev/null
+/BaseHttpContext.cs -crlf
+/J2EEConsts.cs -crlf
+/J2EEUtils.cs -crlf
+/ServletHttpContext.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/MembershipTests.cs -crlf
using System.Collections.Specialized;\r
using System.Text;\r
using Mainsoft.Web.Security;\r
-using NUnit.Framework;
+using NUnit.Framework;\r
\r
\r
namespace Mainsoft.Web.Security.Tests\r
--- /dev/null
+/System.Windows.Forms.xml -crlf
--- /dev/null
+/ToolStripItemDesignerAvailability.cs -crlf
+/ToolStripItemDesignerAvailabilityAttribute.cs -crlf
--- /dev/null
+/TableLayoutSettingsTypeConverter.cs -crlf
--- /dev/null
+/ChangeLog -crlf
+/ThemeElements.cs -crlf
+/ThemeElementsClearlooks.cs -crlf
+/ThemeElementsDefault.cs -crlf
+/ThemeElementsGtk.cs -crlf
+/ThemeElementsNice.cs -crlf
--- /dev/null
+/ButtonPainter.cs -crlf
+/ChangeLog -crlf
+/CheckBoxPainter.cs -crlf
+/RadioButtonPainter.cs -crlf
+/TabControlPainter.cs -crlf
+/ToolStripPainter.cs -crlf
-// Permission is hereby granted, free of charge, to any person obtaining\r
-// a copy of this software and associated documentation files (the\r
-// "Software"), to deal in the Software without restriction, including\r
-// without limitation the rights to use, copy, modify, merge, publish,\r
-// distribute, sublicense, and/or sell copies of the Software, and to\r
-// permit persons to whom the Software is furnished to do so, subject to\r
-// the following conditions:\r
-//\r
-// The above copyright notice and this permission notice shall be\r
-// included in all copies or substantial portions of the Software.\r
-//\r
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
-//\r
-// Copyright (c) 2007 Novell, Inc.\r
-//\r
-// Authors:\r
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2007 Novell, Inc.
+//
+// Authors:
// Everaldo Canuto (ecanuto@novell.com)
-using System;\r
-using System.Drawing;\r
-using System.Drawing.Drawing2D;\r
+using System;
+using System.Drawing;
+using System.Drawing.Drawing2D;
namespace System.Windows.Forms.Theming.Default
{
--- /dev/null
+/ChangeLog -crlf
+/TabControlPainter.cs -crlf
//\r
// Authors:\r
// Jonathan Pobst (monkey@jpobst.com)\r
-// Everaldo Canuto <ecanuto@novell.com>
+// Everaldo Canuto <ecanuto@novell.com>\r
\r
using System;\r
using System.Drawing;\r
{\r
theme.ButtonPainter.DrawPopup (g, bounds, state, backColor, foreColor);\r
}\r
- #endregion
-
- #region Painters
-
+ #endregion\r
+ \r
+ #region Painters\r
+\r
public virtual Default.ButtonPainter ButtonPainter {\r
get { return theme.ButtonPainter; }\r
}\r
-
- public static Default.LabelPainter LabelPainter {
- get { return theme.LabelPainter; }
+\r
+ public static Default.LabelPainter LabelPainter {\r
+ get { return theme.LabelPainter; }\r
}\r
-
- public static Default.LinkLabelPainter LinkLabelPainter {
- get { return theme.LinkLabelPainter; }
+\r
+ public static Default.LinkLabelPainter LinkLabelPainter {\r
+ get { return theme.LinkLabelPainter; }\r
}\r
-
+\r
public virtual Default.TabControlPainter TabControlPainter {\r
get { return theme.TabControlPainter; }\r
}\r
-
+\r
#if NET_2_0\r
public virtual Default.CheckBoxPainter CheckBoxPainter {\r
get { return theme.CheckBoxPainter; }\r
public virtual Default.RadioButtonPainter RadioButtonPainter {\r
get { return theme.RadioButtonPainter; }\r
}\r
-
+\r
public virtual Default.ToolStripPainter ToolStripPainter {\r
get { return theme.ToolStripPainter; }\r
}\r
#endif\r
-
+\r
#endregion\r
}\r
\r
return buttonPainter;\r
}\r
}\r
-
+\r
protected Default.LabelPainter labelPainter;\r
public virtual Default.LabelPainter LabelPainter {\r
get {\r
return labelPainter;\r
}\r
}\r
-
+\r
protected Default.LinkLabelPainter linklabelPainter;\r
public virtual Default.LinkLabelPainter LinkLabelPainter {\r
get {\r
--- /dev/null
+/AlertCheck.cs -crlf
+/ChangeLog -crlf
+/ConfirmCheck.cs -crlf
+/Generic.cs -crlf
+/Prompt.cs -crlf
--- /dev/null
+/ColumnHeaderConverter.cs -crlf
+/DataGridViewLinkCell.cs -crlf
+/DataGridViewLinkColumn.cs -crlf
+/HtmlElement.cs -crlf
+/HtmlElementCollection.cs -crlf
+/HtmlElementErrorEventArgs.cs -crlf
+/HtmlElementErrorEventHandler.cs -crlf
+/HtmlElementEventArgs.cs -crlf
+/HtmlElementEventHandler.cs -crlf
+/HtmlWindowCollection.cs -crlf
+/ImageKeyConverter.cs -crlf
+/Line.cs -crlf
+/LineTag.cs -crlf
+/LinkConverter.cs -crlf
+/MdiControlStrip.cs -crlf
+/NumericUpDownAcceleration.cs -crlf
+/NumericUpDownAccelerationCollection.cs -crlf
+/PowerStatus.cs -crlf
+/TextBoxTextRenderer.cs -crlf
+/ToolStripDropDownItemAccessibleObject.cs -crlf
+/ToolStripSystemRenderer.cs -crlf
+/TreeViewImageKeyConverter.cs -crlf
+/WebBrowser.cs -crlf
+/WebBrowserBase.cs -crlf
+/WebBrowserSiteBase.cs -crlf
+/WindowsFormsSynchronizationContext.cs -crlf
--- /dev/null
+/ChangeLog -crlf
--- /dev/null
+/ButtonBaseTest.cs -crlf
+/DataObjectTest.cs -crlf
+/EventArgsTest.cs -crlf
+/EventLogger.cs -crlf
+/FlowPanelTests.cs -crlf
+/FormHandleTest.cs -crlf
+/HScrollPropertiesTest.cs -crlf
+/ImageKeyConverterTest.cs -crlf
+/KeysConverterTest.cs -crlf
+/LinkConverterTest.cs -crlf
+/LinkLabelTest.cs -crlf
+/LogGenerator.cs -crlf
+/MaskedTextBoxTest.cs -crlf
+/MdiFormHandleTest.cs -crlf
+/NumericUpDownTest.cs -crlf
+/PanelTest.cs -crlf
+/SendKeysTest.cs -crlf
+/SplitContainerTests.cs -crlf
+/StatusStripTest.cs -crlf
+/TableLayoutTest.cs -crlf
+/TimerTest.cs -crlf
+/ToolStripContainerTest.cs -crlf
+/ToolStripContentPanelTest.cs -crlf
+/ToolStripDropDownTest.cs -crlf
+/ToolStripManagerTest.cs -crlf
+/ToolStripOverflowButtonTest.cs -crlf
+/ToolStripOverflowTest.cs -crlf
+/ToolStripPanelTest.cs -crlf
+/ToolStripStatusLabelTest.cs -crlf
+/TreeViewImageIndexConverterTest.cs -crlf
+/TreeViewImageKeyConverterTest.cs -crlf
+/UpDownTest.cs -crlf
+/VScrollPropertiesTest.cs -crlf
if (child2 != null) {\r
child2.Dispose ();\r
child2 = null;\r
- }
+ }\r
base.TearDown ();\r
}\r
\r
\r
[SetUp]\r
protected override void SetUp () {\r
- keys.Clear();
+ keys.Clear();\r
base.SetUp ();\r
}\r
\r
{\r
[SetUp]\r
protected override void SetUp () {\r
- Reset ();
+ Reset ();\r
base.SetUp ();\r
}\r
\r
--- /dev/null
+/ChangeLog -crlf
+/MonoTODOAttribute.cs -crlf
--- /dev/null
+/System.Windows.Forms.de.resx -crlf
+/System.Windows.Forms.en.resx -crlf
+/System.Windows.Forms.resx -crlf
<data name="Restore" xml:space="preserve">\r
<value>Restore</value>\r
</data>\r
-</root>
+</root>\r
/r:Microsoft.Build.Framework.dll \
/r:Microsoft.Build.Utilities$(NAME_SUFFIX).dll
-EXTRA_DISTFILES = \\r
- Test/resources/TestTasks.cs \\r
+EXTRA_DISTFILES = \
+ Test/resources/TestTasks.cs \
Test/resources/*.*proj \
Test/test-config-file*
+2010-07-24 Ankit Jain <jankit@novell.com>
+
+ * ConsoleLogger.cs: Collect and dump timing information.
+
+2010-07-24 Ankit Jain <jankit@novell.com>
+
+ * ConsoleLogger.cs: Honor LoggerVerbosity.Quiet .
+
2010-07-22 Ankit Jain <jankit@novell.com>
* ConsoleLogger.cs: Add support for parameter 'NoItemAndPropertyList'.
using System.Collections;
using System.Collections.Generic;
using System.IO;
+using System.Linq;
using System.Security;
using System.Text;
using Microsoft.Build.Framework;
List<BuildStatusEventArgs> events;
Dictionary<string, List<string>> errorsTable;
Dictionary<string, List<string>> warningsTable;
+ SortedDictionary<string, PerfInfo> targetPerfTable, tasksPerfTable;
string current_events_string;
public ConsoleLogger ()
events = new List<BuildStatusEventArgs> ();
errorsTable = new Dictionary<string, List<string>> ();
warningsTable = new Dictionary<string, List<string>> ();
+ targetPerfTable = new SortedDictionary<string, PerfInfo> ();
+ tasksPerfTable = new SortedDictionary<string, PerfInfo> ();
//defaults
errorColor = ConsoleColor.DarkRed;
public void BuildStartedHandler (object sender, BuildStartedEventArgs args)
{
- WriteLine (String.Empty);
- WriteLine (String.Format ("Build started {0}.", args.Timestamp));
- WriteLine ("__________________________________________________");
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal)) {
+ WriteLine (String.Empty);
+ WriteLine (String.Format ("Build started {0}.", args.Timestamp));
+ WriteLine ("__________________________________________________");
+ }
buildStart = args.Timestamp;
PushEvent (args);
public void BuildFinishedHandler (object sender, BuildFinishedEventArgs args)
{
+ if (!IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal)) {
+ PopEvent ();
+ return;
+ }
+
+ TimeSpan timeElapsed = args.Timestamp - buildStart;
+ if (performanceSummary || verbosity == LoggerVerbosity.Diagnostic)
+ DumpPerformanceSummary ();
+
if (args.Succeeded == true && !projectFailed) {
WriteLine ("Build succeeded.");
} else {
WriteLine ("Build FAILED.");
}
- if (performanceSummary == true) {
- }
-
if (warnings.Count > 0) {
WriteLine (Environment.NewLine + "Warnings:");
SetColor (warningColor);
}
if (showSummary == true){
- TimeSpan timeElapsed = args.Timestamp - buildStart;
WriteLine (String.Format ("\t {0} Warning(s)", warningCount));
WriteLine (String.Format ("\t {0} Error(s)", errorCount));
WriteLine (String.Empty);
public void ProjectStartedHandler (object sender, ProjectStartedEventArgs args)
{
- SetColor (eventColor);
- WriteLine (String.Format ("Project \"{0}\" ({1} target(s)):", args.ProjectFile,
- String.IsNullOrEmpty (args.TargetNames) ? "default" : args.TargetNames));
- ResetColor ();
- WriteLine (String.Empty);
- DumpProperties (args.Properties);
- DumpItems (args.Items);
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal)) {
+ SetColor (eventColor);
+ WriteLine (String.Format ("Project \"{0}\" ({1} target(s)):", args.ProjectFile,
+ String.IsNullOrEmpty (args.TargetNames) ? "default" : args.TargetNames));
+ ResetColor ();
+ WriteLine (String.Empty);
+ DumpProperties (args.Properties);
+ DumpItems (args.Items);
+ }
PushEvent (args);
}
public void TargetStartedHandler (object sender, TargetStartedEventArgs args)
{
- indent++;
- SetColor (eventColor);
- WriteLine (String.Format ("Target {0}:",args.TargetName));
- ResetColor ();
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal)) {
+ indent++;
+ SetColor (eventColor);
+ WriteLine (String.Format ("Target {0}:",args.TargetName));
+ ResetColor ();
+ }
PushEvent (args);
}
public void TargetFinishedHandler (object sender, TargetFinishedEventArgs args)
{
- if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Detailed) || !args.Succeeded) {
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Detailed) ||
+ (!args.Succeeded && IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal))) {
SetColor (eventColor);
WriteLine (String.Format ("Done building target \"{0}\" in project \"{1}\".{2}",
args.TargetName, args.ProjectFile,
args.Succeeded ? String.Empty : "-- FAILED"));
ResetColor ();
+ WriteLine (String.Empty);
}
indent--;
- WriteLine (String.Empty);
PopEvent ();
}
public void TaskFinishedHandler (object sender, TaskFinishedEventArgs args)
{
indent--;
- if (this.verbosity == LoggerVerbosity.Detailed || !args.Succeeded) {
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Detailed) ||
+ (!args.Succeeded && IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal))) {
SetColor (eventColor);
if (args.Succeeded)
WriteLine (String.Format ("Done executing task \"{0}\"", args.TaskName));
public void WarningHandler (object sender, BuildWarningEventArgs args)
{
string msg = FormatWarningEvent (args);
- if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Normal)) {
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Quiet)) {
SetColor (warningColor);
WriteLineWithoutIndent (msg);
ResetColor ();
public void ErrorHandler (object sender, BuildErrorEventArgs args)
{
string msg = FormatErrorEvent (args);
- if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Minimal)) {
+ if (IsVerbosityGreaterOrEqual (LoggerVerbosity.Quiet)) {
SetColor (errorColor);
WriteLineWithoutIndent (msg);
ResetColor ();
void PopEvent ()
{
+ if (performanceSummary || verbosity == LoggerVerbosity.Diagnostic) {
+ var args = events [events.Count - 1];
+ TargetStartedEventArgs tgt_args = args as TargetStartedEventArgs;
+ if (tgt_args != null) {
+ AddPerfInfo (tgt_args.TargetName, args.Timestamp, targetPerfTable);
+ } else {
+ TaskStartedEventArgs tsk_args = args as TaskStartedEventArgs;
+ if (tsk_args != null)
+ AddPerfInfo (tsk_args.TaskName, args.Timestamp, tasksPerfTable);
+ }
+ }
+
events.RemoveAt (events.Count - 1);
current_events_string = null;
}
string last_imported_target_file = String.Empty;
for (int i = 0; i < events.Count; i ++) {
- BuildStatusEventArgs args = events [i];
+ var args = events [i];
ProjectStartedEventArgs pargs = args as ProjectStartedEventArgs;
if (pargs != null) {
sb.AppendFormat ("{0} ({1}) ->\n", pargs.ProjectFile,
return sb.ToString ();
}
+
+ void AddPerfInfo (string name, DateTime start, IDictionary<string, PerfInfo> perf_table)
+ {
+ PerfInfo pi;
+ if (!perf_table.TryGetValue (name, out pi)) {
+ pi = new PerfInfo ();
+ perf_table [name] = pi;
+ }
+
+ pi.Time += DateTime.Now - start;
+ pi.NumberOfCalls ++;
+ }
+
+ void DumpPerformanceSummary ()
+ {
+ SetColor (eventColor);
+ WriteLine ("Target perfomance summary:");
+ ResetColor ();
+
+ foreach (var pi in targetPerfTable.OrderBy (pair => pair.Value.Time))
+ WriteLine (String.Format ("{0,10:0.000} ms {1,-50} {2,5} calls", pi.Value.Time.TotalMilliseconds, pi.Key, pi.Value.NumberOfCalls));
+
+ WriteLine (String.Empty);
+
+ SetColor (eventColor);
+ WriteLine ("Tasks perfomance summary:");
+ ResetColor ();
+
+ foreach (var pi in tasksPerfTable.OrderBy (pair => pair.Value.Time))
+ WriteLine (String.Format ("{0,10:0.000} ms {1,-50} {2,5} calls", pi.Value.Time.TotalMilliseconds, pi.Key, pi.Value.NumberOfCalls));
+
+ WriteLine (String.Empty);
+ }
private void WriteLineWithoutIndent (string message)
{
set { writeHandler = value; }
}
}
+
+ class PerfInfo {
+ public TimeSpan Time;
+ public int NumberOfCalls;
+ }
}
#endif
--- /dev/null
+/License.htm -crlf
+/Readme.htm -crlf
--- /dev/null
+/MicrosoftAjax.debug.js -crlf
+/MicrosoftAjax.debug.jvm.js -crlf
+/MicrosoftAjax.js -crlf
+/MicrosoftAjaxTimer.debug.js -crlf
+/MicrosoftAjaxTimer.js -crlf
+/MicrosoftAjaxWebForms.debug.js -crlf
+/MicrosoftAjaxWebForms.debug.jvm.js -crlf
+/MicrosoftAjaxWebForms.js -crlf
--- /dev/null
+/af-ZA.js -crlf
+/ar-AE.js -crlf
+/ar-BH.js -crlf
+/ar-DZ.js -crlf
+/ar-EG.js -crlf
+/ar-IQ.js -crlf
+/ar-JO.js -crlf
+/ar-KW.js -crlf
+/ar-LB.js -crlf
+/ar-LY.js -crlf
+/ar-MA.js -crlf
+/ar-OM.js -crlf
+/ar-QA.js -crlf
+/ar-SA.js -crlf
+/ar-SY.js -crlf
+/ar-TN.js -crlf
+/ar-YE.js -crlf
+/az-AZ-Cyrl.js -crlf
+/az-AZ-Latn.js -crlf
+/be-BY.js -crlf
+/bg-BG.js -crlf
+/ca-ES.js -crlf
+/cs-CZ.js -crlf
+/da-DK.js -crlf
+/de-AT.js -crlf
+/de-CH.js -crlf
+/de-DE.js -crlf
+/de-LI.js -crlf
+/de-LU.js -crlf
+/div-MV.js -crlf
+/el-GR.js -crlf
+/en-AU.js -crlf
+/en-BZ.js -crlf
+/en-CA.js -crlf
+/en-CB.js -crlf
+/en-GB.js -crlf
+/en-IE.js -crlf
+/en-JM.js -crlf
+/en-NZ.js -crlf
+/en-PH.js -crlf
+/en-TT.js -crlf
+/en-US.js -crlf
+/en-ZA.js -crlf
+/en-ZW.js -crlf
+/es-AR.js -crlf
+/es-BO.js -crlf
+/es-CL.js -crlf
+/es-CO.js -crlf
+/es-CR.js -crlf
+/es-DO.js -crlf
+/es-EC.js -crlf
+/es-ES.js -crlf
+/es-GT.js -crlf
+/es-HN.js -crlf
+/es-MX.js -crlf
+/es-NI.js -crlf
+/es-PA.js -crlf
+/es-PE.js -crlf
+/es-PR.js -crlf
+/es-PY.js -crlf
+/es-SV.js -crlf
+/es-UY.js -crlf
+/es-VE.js -crlf
+/et-EE.js -crlf
+/eu-ES.js -crlf
+/fa-IR.js -crlf
+/fi-FI.js -crlf
+/fo-FO.js -crlf
+/fr-BE.js -crlf
+/fr-CA.js -crlf
+/fr-CH.js -crlf
+/fr-FR.js -crlf
+/fr-LU.js -crlf
+/fr-MC.js -crlf
+/gl-ES.js -crlf
+/gu-IN.js -crlf
+/he-IL.js -crlf
+/hi-IN.js -crlf
+/hr-HR.js -crlf
+/hu-HU.js -crlf
+/hy-AM.js -crlf
+/id-ID.js -crlf
+/is-IS.js -crlf
+/it-CH.js -crlf
+/it-IT.js -crlf
+/ja-JP.js -crlf
+/ka-GE.js -crlf
+/kk-KZ.js -crlf
+/kn-IN.js -crlf
+/ko-KR.js -crlf
+/kok-IN.js -crlf
+/ky-KG.js -crlf
+/lt-LT.js -crlf
+/lv-LV.js -crlf
+/mk-MK.js -crlf
+/mn-MN.js -crlf
+/mr-IN.js -crlf
+/ms-BN.js -crlf
+/ms-MY.js -crlf
+/nb-NO.js -crlf
+/nl-BE.js -crlf
+/nl-NL.js -crlf
+/nn-NO.js -crlf
+/pa-IN.js -crlf
+/pl-PL.js -crlf
+/pt-BR.js -crlf
+/pt-PT.js -crlf
+/ro-RO.js -crlf
+/ru-RU.js -crlf
+/sa-IN.js -crlf
+/sk-SK.js -crlf
+/sl-SI.js -crlf
+/sq-AL.js -crlf
+/sr-SP-Cyrl.js -crlf
+/sr-SP-Latn.js -crlf
+/sv-FI.js -crlf
+/sv-SE.js -crlf
+/sw-KE.js -crlf
+/syr-SY.js -crlf
+/ta-IN.js -crlf
+/te-IN.js -crlf
+/th-TH.js -crlf
+/tr-TR.js -crlf
+/tt-RU.js -crlf
+/uk-UA.js -crlf
+/ur-PK.js -crlf
+/uz-UZ-Cyrl.js -crlf
+/uz-UZ-Latn.js -crlf
+/vi-VN.js -crlf
+/zh-CN.js -crlf
+/zh-HK.js -crlf
+/zh-MO.js -crlf
+/zh-SG.js -crlf
+/zh-TW.js -crlf
--- /dev/null
+/MicrosoftAjax.debug.en-US.js -crlf
+/MicrosoftAjax.debug.js -crlf
+/MicrosoftAjax.debug.jvm.js -crlf
+/MicrosoftAjax.en-US.js -crlf
+/MicrosoftAjax.js -crlf
+/MicrosoftAjax.jvm.js -crlf
+/MicrosoftAjaxTimer.debug.en-US.js -crlf
+/MicrosoftAjaxTimer.debug.js -crlf
+/MicrosoftAjaxTimer.en-US.js -crlf
+/MicrosoftAjaxTimer.js -crlf
+/MicrosoftAjaxWebForms.debug.en-US.js -crlf
+/MicrosoftAjaxWebForms.debug.js -crlf
+/MicrosoftAjaxWebForms.en-US.js -crlf
+/MicrosoftAjaxWebForms.js -crlf
--- /dev/null
+/af-ZA.js -crlf
+/ar-AE.js -crlf
+/ar-BH.js -crlf
+/ar-DZ.js -crlf
+/ar-EG.js -crlf
+/ar-IQ.js -crlf
+/ar-JO.js -crlf
+/ar-KW.js -crlf
+/ar-LB.js -crlf
+/ar-LY.js -crlf
+/ar-MA.js -crlf
+/ar-OM.js -crlf
+/ar-QA.js -crlf
+/ar-SA.js -crlf
+/ar-SY.js -crlf
+/ar-TN.js -crlf
+/ar-YE.js -crlf
+/arn-CL.js -crlf
+/az-Cyrl-AZ.js -crlf
+/az-Latn-AZ.js -crlf
+/be-BY.js -crlf
+/bg-BG.js -crlf
+/bs-Cyrl-BA.js -crlf
+/bs-Latn-BA.js -crlf
+/ca-ES.js -crlf
+/cs-CZ.js -crlf
+/cy-GB.js -crlf
+/da-DK.js -crlf
+/de-AT.js -crlf
+/de-CH.js -crlf
+/de-DE.js -crlf
+/de-LI.js -crlf
+/de-LU.js -crlf
+/dv-MV.js -crlf
+/el-GR.js -crlf
+/en-029.js -crlf
+/en-AU.js -crlf
+/en-BZ.js -crlf
+/en-CA.js -crlf
+/en-GB.js -crlf
+/en-IE.js -crlf
+/en-JM.js -crlf
+/en-NZ.js -crlf
+/en-PH.js -crlf
+/en-TT.js -crlf
+/en-US.js -crlf
+/en-ZA.js -crlf
+/en-ZW.js -crlf
+/es-AR.js -crlf
+/es-BO.js -crlf
+/es-CL.js -crlf
+/es-CO.js -crlf
+/es-CR.js -crlf
+/es-DO.js -crlf
+/es-EC.js -crlf
+/es-ES.js -crlf
+/es-GT.js -crlf
+/es-HN.js -crlf
+/es-MX.js -crlf
+/es-NI.js -crlf
+/es-PA.js -crlf
+/es-PE.js -crlf
+/es-PR.js -crlf
+/es-PY.js -crlf
+/es-SV.js -crlf
+/es-UY.js -crlf
+/es-VE.js -crlf
+/et-EE.js -crlf
+/eu-ES.js -crlf
+/fa-IR.js -crlf
+/fi-FI.js -crlf
+/fil-PH.js -crlf
+/fo-FO.js -crlf
+/fr-BE.js -crlf
+/fr-CA.js -crlf
+/fr-CH.js -crlf
+/fr-FR.js -crlf
+/fr-LU.js -crlf
+/fr-MC.js -crlf
+/fy-NL.js -crlf
+/ga-IE.js -crlf
+/gl-ES.js -crlf
+/gu-IN.js -crlf
+/he-IL.js -crlf
+/hi-IN.js -crlf
+/hr-BA.js -crlf
+/hr-HR.js -crlf
+/hu-HU.js -crlf
+/hy-AM.js -crlf
+/id-ID.js -crlf
+/is-IS.js -crlf
+/it-CH.js -crlf
+/it-IT.js -crlf
+/iu-Latn-CA.js -crlf
+/ja-JP.js -crlf
+/ka-GE.js -crlf
+/kk-KZ.js -crlf
+/kn-IN.js -crlf
+/ko-KR.js -crlf
+/kok-IN.js -crlf
+/ky-KG.js -crlf
+/lb-LU.js -crlf
+/lt-LT.js -crlf
+/lv-LV.js -crlf
+/mi-NZ.js -crlf
+/mk-MK.js -crlf
+/mn-MN.js -crlf
+/moh-CA.js -crlf
+/mr-IN.js -crlf
+/ms-BN.js -crlf
+/ms-MY.js -crlf
+/mt-MT.js -crlf
+/nb-NO.js -crlf
+/nl-BE.js -crlf
+/nl-NL.js -crlf
+/nn-NO.js -crlf
+/ns-ZA.js -crlf
+/pa-IN.js -crlf
+/pl-PL.js -crlf
+/pt-BR.js -crlf
+/pt-PT.js -crlf
+/quz-BO.js -crlf
+/quz-EC.js -crlf
+/quz-PE.js -crlf
+/rm-CH.js -crlf
+/ro-RO.js -crlf
+/ru-RU.js -crlf
+/sa-IN.js -crlf
+/se-FI.js -crlf
+/se-NO.js -crlf
+/se-SE.js -crlf
+/sk-SK.js -crlf
+/sl-SI.js -crlf
+/sma-NO.js -crlf
+/sma-SE.js -crlf
+/smj-NO.js -crlf
+/smj-SE.js -crlf
+/smn-FI.js -crlf
+/sms-FI.js -crlf
+/sq-AL.js -crlf
+/sr-Cyrl-BA.js -crlf
+/sr-Cyrl-CS.js -crlf
+/sr-Latn-BA.js -crlf
+/sr-Latn-CS.js -crlf
+/sv-FI.js -crlf
+/sv-SE.js -crlf
+/sw-KE.js -crlf
+/syr-SY.js -crlf
+/ta-IN.js -crlf
+/te-IN.js -crlf
+/th-TH.js -crlf
+/tn-ZA.js -crlf
+/tr-TR.js -crlf
+/tt-RU.js -crlf
+/uk-UA.js -crlf
+/ur-PK.js -crlf
+/uz-Cyrl-UZ.js -crlf
+/uz-Latn-UZ.js -crlf
+/vi-VN.js -crlf
+/xh-ZA.js -crlf
+/zh-CN.js -crlf
+/zh-HK.js -crlf
+/zh-MO.js -crlf
+/zh-SG.js -crlf
+/zh-TW.js -crlf
+/zu-ZA.js -crlf
--- /dev/null
+/Makefile -crlf
--- /dev/null
+/SQLite3.cs -crlf
+/SQLite3_UTF16.cs -crlf
+/SQLiteBase.cs -crlf
+/SQLiteCommand.cs -crlf
+/SQLiteCommandBuilder.cs -crlf
+/SQLiteConnection.cs -crlf
+/SQLiteConnectionPool.cs -crlf
+/SQLiteConnectionStringBuilder.cs -crlf
+/SQLiteConvert.cs -crlf
+/SQLiteDataAdapter.cs -crlf
+/SQLiteDataReader.cs -crlf
+/SQLiteEnlistment.cs -crlf
+/SQLiteException.cs -crlf
+/SQLiteFactory.cs -crlf
+/SQLiteFunction.cs -crlf
+/SQLiteFunctionAttribute.cs -crlf
+/SQLiteKeyReader.cs -crlf
+/SQLiteMetaDataCollectionNames.cs -crlf
+/SQLiteParameter.cs -crlf
+/SQLiteParameterCollection.cs -crlf
+/SQLiteStatement.cs -crlf
+/SQLiteTransaction.cs -crlf
+/SR.Designer.cs -crlf
+/UnsafeNativeMethods.cs -crlf
2007-06-03 Kamil Skalski <nazgul@nemerle.org>
- * SQLiteConvert.cs: Port function for converting native UTF8 string\r
- into managed string from the old SqliteClient implementation.\r
+ * SQLiteConvert.cs: Port function for converting native UTF8 string
+ into managed string from the old SqliteClient implementation.
Use it instead of PtrToStrAuto, which fails on Windows.
2007-02-20 Marek Habersack <grendello@gmail.com>
--- /dev/null
+/SQLiteConnection_Linq.cs -crlf
+/SQLiteFactory_Linq.cs -crlf
--- /dev/null
+/SqliteTest.cs -crlf
--- /dev/null
+/DataTypes.xml -crlf
+/MetaDataCollections.xml -crlf
+/SR.resx -crlf
--- /dev/null
+/ChangeLog -crlf
--- /dev/null
+/MessageEnumeratorExceptionTest.cs -crlf
--- /dev/null
+/CompletedEventArgs.cs -crlf
--- /dev/null
+/UnixConnectionPool.cs -crlf
_nextInChain.AsyncProcessRequest (stack, msg, transportHeaders, stream);
// FIXME: No idea about how to implement IMessageCtrl
- return null; \r
+ return null;
}
public IMessage SyncProcessMessage (IMessage msg)
//\r
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Collections;\r
}\r
\r
\r
-}
+}\r
<remarks>
<example>
<code lang="C#">
-using System;\r
-using System.IO;\r
-using System.Net;\r
-using System.Net.Sockets;\r
-using System.Text;\r
-\r
-using Mono.Security.Authenticode;\r
-using Mono.Security.Protocol.Tls;\r
-using System.Security.Cryptography;\r
-using System.Security.Cryptography.X509Certificates;\r
-\r
-namespace SslHttpServer\r
-{\r
- class SslHttpServer\r
- {\r
+using System;
+using System.IO;
+using System.Net;
+using System.Net.Sockets;
+using System.Text;
+
+using Mono.Security.Authenticode;
+using Mono.Security.Protocol.Tls;
+using System.Security.Cryptography;
+using System.Security.Cryptography.X509Certificates;
+
+namespace SslHttpServer
+{
+ class SslHttpServer
+ {
private static X509Certificate _certificate;
private static string certfile;
- private static string keyfile;\r
-\r
- static void Main (string [] args)\r
+ private static string keyfile;
+
+ static void Main (string [] args)
{
certfile = (args.Length > 0) ? args [0] : "ssl.cer";
keyfile = (args.Length > 0) ? args [0] : "ssl.pvk";
-\r
- Socket listenSocket = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);\r
- IPEndPoint localEndPoint = new IPEndPoint (IPAddress.Any, 1888);\r
- Socket requestSocket;\r
-\r
- listenSocket.Bind (localEndPoint);\r
- listenSocket.Listen (10);\r
-\r
- while (true) {\r
- try {\r
- requestSocket = listenSocket.Accept ();\r
- using (NetworkStream ns = new NetworkStream (requestSocket, FileAccess.ReadWrite, true)) {\r
- using (SslServerStream s = new SslServerStream (ns, Certificate, false, false)) {\r
- s.PrivateKeyCertSelectionDelegate += new PrivateKeySelectionCallback (GetPrivateKey);\r
- StreamReader reader = new StreamReader (s);\r
- StreamWriter writer = new StreamWriter (s, Encoding.ASCII);\r
-\r
- string line;\r
- string answer =\r
- "HTTP/1.0 200\r\n" +\r
- "Connection: close\r\n" +\r
- "Content-Type: text/html\r\n" +\r
- "Content-Encoding: " + Encoding.ASCII.WebName + "\r\n" +\r
- "\r\n" +\r
- "<html><body><h1>Hello World!</h1></body></html>\r\n";\r
-\r
- // Read request header\r
- do {\r
- line = reader.ReadLine ();\r
- if (line != null)\r
- Console.WriteLine (line);\r
- }\r
- while (line != null && line.Length > 0);\r
-\r
- // Send response\r
- writer.Write (answer);\r
-\r
- writer.Flush ();\r
- s.Flush ();\r
- ns.Flush ();\r
- }\r
- }\r
- }\r
- catch (Exception ex) {\r
- Console.WriteLine ("---------------------------------------------------------");\r
- Console.WriteLine (ex.ToString ());\r
- }\r
- }\r
- }\r
-\r
- private static X509Certificate Certificate {\r
- get {\r
- if (_certificate == null)\r
- _certificate = X509Certificate.CreateFromCertFile (certfile);\r
- return _certificate;\r
- }\r
- }\r
-\r
- // note: makecert creates the private key in the PVK format\r
- private static AsymmetricAlgorithm GetPrivateKey (X509Certificate certificate, string targetHost)\r
- {\r
- PrivateKey key = PrivateKey.CreateFromFile (keyfile);\r
- return key.RSA;\r
- }\r
- }\r
-}\r
+
+ Socket listenSocket = new Socket (AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
+ IPEndPoint localEndPoint = new IPEndPoint (IPAddress.Any, 1888);
+ Socket requestSocket;
+
+ listenSocket.Bind (localEndPoint);
+ listenSocket.Listen (10);
+
+ while (true) {
+ try {
+ requestSocket = listenSocket.Accept ();
+ using (NetworkStream ns = new NetworkStream (requestSocket, FileAccess.ReadWrite, true)) {
+ using (SslServerStream s = new SslServerStream (ns, Certificate, false, false)) {
+ s.PrivateKeyCertSelectionDelegate += new PrivateKeySelectionCallback (GetPrivateKey);
+ StreamReader reader = new StreamReader (s);
+ StreamWriter writer = new StreamWriter (s, Encoding.ASCII);
+
+ string line;
+ string answer =
+ "HTTP/1.0 200\r\n" +
+ "Connection: close\r\n" +
+ "Content-Type: text/html\r\n" +
+ "Content-Encoding: " + Encoding.ASCII.WebName + "\r\n" +
+ "\r\n" +
+ "<html><body><h1>Hello World!</h1></body></html>\r\n";
+
+ // Read request header
+ do {
+ line = reader.ReadLine ();
+ if (line != null)
+ Console.WriteLine (line);
+ }
+ while (line != null && line.Length > 0);
+
+ // Send response
+ writer.Write (answer);
+
+ writer.Flush ();
+ s.Flush ();
+ ns.Flush ();
+ }
+ }
+ }
+ catch (Exception ex) {
+ Console.WriteLine ("---------------------------------------------------------");
+ Console.WriteLine (ex.ToString ());
+ }
+ }
+ }
+
+ private static X509Certificate Certificate {
+ get {
+ if (_certificate == null)
+ _certificate = X509Certificate.CreateFromCertFile (certfile);
+ return _certificate;
+ }
+ }
+
+ // note: makecert creates the private key in the PVK format
+ private static AsymmetricAlgorithm GetPrivateKey (X509Certificate certificate, string targetHost)
+ {
+ PrivateKey key = PrivateKey.CreateFromFile (keyfile);
+ return key.RSA;
+ }
+ }
+}
</code>
</example>
<para>
+2010-07-23 Sebastien Pouliot <sebastien@ximian.com>
+
+ * ClientSessionCache.cs: Do not let the ValidityInterval be
+ controlled by an environment variable for Moonlight
+ * HttpsClientStream.cs: Simplify code for Moonlight profile
+
2010-05-10 Sebastien Pouliot <sebastien@ximian.com>
* CipherSuite.cs:
static ClientSessionInfo ()
{
+#if MOONLIGHT
+ ValidityInterval = DefaultValidityInterval;
+#else
string user_cache_timeout = Environment.GetEnvironmentVariable ("MONO_TLS_SESSION_CACHE_TIMEOUT");
if (user_cache_timeout == null) {
ValidityInterval = DefaultValidityInterval;
ValidityInterval = DefaultValidityInterval;
}
}
+#endif
}
public ClientSessionInfo (string hostname, byte[] id)
_status = 0;
if (buffer != null)
InputBuffer.Write (buffer, 0, buffer.Length);
-#if !NET_1_0
+#if !MOONLIGHT
// also saved from reflection
base.CheckCertRevocationStatus = ServicePointManager.CheckCertificateRevocationList;
-#endif
+
ClientCertSelection += delegate (X509CertificateCollection clientCerts, X509Certificate serverCertificate,
string targetHost, X509CertificateCollection serverRequestedCertificates) {
return ((clientCerts == null) || (clientCerts.Count == 0)) ? null : clientCerts [0];
X509Certificate2 cert = (certificate as X509Certificate2);
return (cert == null) ? null : cert.PrivateKey;
};
+#endif
}
public bool TrustFailure {
}
}
+#if MOONLIGHT
+ internal override bool RaiseServerCertificateValidation (X509Certificate certificate, int[] certificateErrors)
+ {
+ return true;
+ }
+#else
internal override bool RaiseServerCertificateValidation (X509Certificate certificate, int[] certificateErrors)
{
bool failed = (certificateErrors.Length > 0);
}
return failed;
}
+#endif
}
}
--- /dev/null
+/ca.pem -crlf
+/client.pem -crlf
+/mutual.cs -crlf
ssl.ClientCertSelectionDelegate += new CertificateSelectionCallback (ClientCertificateSelection);\r
ssl.PrivateKeyCertSelectionDelegate += new PrivateKeySelectionCallback (PrivateKeySelection);\r
\r
- StreamWriter sw = new StreamWriter (ssl, System.Text.Encoding.ASCII);
- sw.WriteLine ("GET /clientcert.aspx{0}", Environment.NewLine);
- sw.Flush ();
+ StreamWriter sw = new StreamWriter (ssl, System.Text.Encoding.ASCII);\r
+ sw.WriteLine ("GET /clientcert.aspx{0}", Environment.NewLine);\r
+ sw.Flush ();\r
\r
- StreamReader sr = new StreamReader (ssl);
+ StreamReader sr = new StreamReader (ssl);\r
Console.WriteLine (sr.ReadToEnd ());\r
}\r
\r
--- /dev/null
+/sendback.asp -crlf
--- /dev/null
+/managed.xml -crlf
--- /dev/null
+/XPathNavigatorReader.cs -crlf
--- /dev/null
+/XQueryArithmeticOperator.cs -crlf
+/XQueryCliFunction.cs -crlf
+/XQueryComparisonOperator.cs -crlf
+/XQueryDefaultFunctionCall.cs -crlf
+/XQueryFunctionTable.cs -crlf
+/XmlQueryCompileException.cs -crlf
+/XmlQueryException.cs -crlf
--- /dev/null
+/SubtreeXmlReader.cs -crlf
+/XmlChar.cs -crlf
+/XmlStoredResolver.cs -crlf
--- /dev/null
+/makefile.build -crlf
+/net_1_1_java_Novell.Directory.Ldap.dll.sources -crlf
--- /dev/null
+/RfcLdapSuperDN.cs -crlf
--- /dev/null
+/AuthenticationCallbackHandler.cs -crlf
+/CreateContextPrivilegedAction.cs -crlf
+/ExchangeTokenPrivilegedAction.cs -crlf
+/Krb5Helper.cs -crlf
+/SecureStream.cs -crlf
+/UnwrapPrivilegedAction.cs -crlf
+/WrapPrivilegedAction.cs -crlf
-//
-// Novell.Directory.Ldap.Security.Krb5Helper.cs
-//
-// Authors:
-// Boris Kirzner <borsk@mainsoft.com>
-// Konstantin Triger <kostat@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// \r
+// Novell.Directory.Ldap.Security.Krb5Helper.cs\r
+//\r
+// Authors:\r
+// Boris Kirzner <borsk@mainsoft.com>\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
internal class Krb5Helper : IDisposable\r
{\r
enum QOP {\r
- NO_PROTECTION = 1,
- INTEGRITY_ONLY_PROTECTION = 2,
+ NO_PROTECTION = 1,\r
+ INTEGRITY_ONLY_PROTECTION = 2,\r
PRIVACY_PROTECTION = 4\r
}\r
\r
\r
//int rawSendSize = Context.getWrapSizeLimit(0, _encryption, srvMaxBufSize);\r
\r
- byte [] gssInToken = new byte [4];
+ byte [] gssInToken = new byte [4];\r
gssInToken [0] = (byte) myCop;\r
\r
SecureStream.IntToNetworkByteOrder (srvMaxBufSize, gssInToken, 1, 3);\r
-//
-// Novell.Directory.Ldap.Security.SecureStream.cs
-//
-// Authors:
-// Boris Kirzner <borsk@mainsoft.com>
-// Konstantin Triger <kostat@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// \r
+// Novell.Directory.Ldap.Security.SecureStream.cs\r
+//\r
+// Authors:\r
+// Boris Kirzner <borsk@mainsoft.com>\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
--- /dev/null
+/ExceptionMessages.resx -crlf
+/ExceptionMessages.txt -crlf
+/ResultCodeMessages.resx -crlf
public static System.String getMessage(System.String messageOrKey, System.Object[] arguments, System.Globalization.CultureInfo locale)
{
if (defaultMessages == null)
- {\r
+ {
defaultMessages = new ResourceManager ("ExceptionMessages", Assembly.GetExecutingAssembly ());
}
if (defaultResultCodes == null)
{
/*
- defaultResultCodes = ResourceManager.CreateFileBasedResourceManager("ResultCodeMessages", "Resources", null);*/\r
+ defaultResultCodes = ResourceManager.CreateFileBasedResourceManager("ResultCodeMessages", "Resources", null);*/
defaultResultCodes = new ResourceManager ("ResultCodeMessages", Assembly.GetExecutingAssembly ());
}
--- /dev/null
+/AuthenticationTypes.cs -crlf
+/MessageVector.cs -crlf
--- /dev/null
+/Cache.cs -crlf
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "IndexOf", parameterName);
// Iterate values to see what is the index of parameter.
- Int32 index = 0;\r
- if ((parameterName[0] == ':') || (parameterName[0] == '@'))\r
- parameterName = parameterName.Remove(0, 1);\r
-\r
- foreach (NpgsqlParameter parameter in this)\r
- {\r
- if (parameter.ParameterName.Remove(0, 1) == parameterName)\r
- return index;\r
+ Int32 index = 0;
+ if ((parameterName[0] == ':') || (parameterName[0] == '@'))
+ parameterName = parameterName.Remove(0, 1);
+
+ foreach (NpgsqlParameter parameter in this)
+ {
+ if (parameter.ParameterName.Remove(0, 1) == parameterName)
+ return index;
index++;
}
return -1;
NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "Contains", value);
CheckType(value);
return this.InternalList.Contains(value);
- }\r
-\r
- /// <summary>\r
- /// Gets a value indicating whether a <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> with the specified parameter name exists in the collection.\r
- /// </summary>\r
- /// <param name="parameterName">The name of the <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> object to find.</param>\r
- /// <param name="parameter">A reference to the requested parameter is returned in this out param if it is found in the list. This value is null if the parameter is not found.</param>\r
- /// <returns><b>true</b> if the collection contains the parameter and param will contain the parameter; otherwise, <b>false</b>.</returns>\r
- public bool TryGetValue(string parameterName, out NpgsqlParameter parameter)\r
- {\r
- NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "TryGetValue", parameterName);\r
- int index = IndexOf(parameterName);\r
- if (index != -1)\r
- {\r
- parameter = this[index];\r
- return true;\r
- }\r
- else\r
- {\r
- parameter = null;\r
- return false;\r
- }\r
- }\r
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether a <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> with the specified parameter name exists in the collection.
+ /// </summary>
+ /// <param name="parameterName">The name of the <see cref="Npgsql.NpgsqlParameter">NpgsqlParameter</see> object to find.</param>
+ /// <param name="parameter">A reference to the requested parameter is returned in this out param if it is found in the list. This value is null if the parameter is not found.</param>
+ /// <returns><b>true</b> if the collection contains the parameter and param will contain the parameter; otherwise, <b>false</b>.</returns>
+ public bool TryGetValue(string parameterName, out NpgsqlParameter parameter)
+ {
+ NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, "TryGetValue", parameterName);
+ int index = IndexOf(parameterName);
+ if (index != -1)
+ {
+ parameter = this[index];
+ return true;
+ }
+ else
+ {
+ parameter = null;
+ return false;
+ }
+ }
/// <summary>
/// Removes all items from the collection.
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
- -->\r
+ -->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
--- /dev/null
+/README.txt -crlf
--- /dev/null
+/PossibleAuthenticationFailureException.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/StringsTests.cs -crlf
--- /dev/null
+/AssumesTests.cs -crlf
--- /dev/null
+/ConditionalWeakTableTests.cs -crlf
+/ReadOnlyDictionaryDebuggerProxyTests.cs -crlf
+/ReadOnlyDictionaryTests.cs -crlf
+/WeakReferenceCollectionTests.cs -crlf
--- /dev/null
+/LazyOfTTMetadataTests.cs -crlf
--- /dev/null
+/AdvancedValueComposition.cs -crlf
+/AggregateExportProviderTest.cs -crlf
+/AttributedModelServicesTests.cs -crlf
+/CardinalityMismatchExceptionTests.cs -crlf
+/ComponentModelTestTypes.cs -crlf
+/ComponentServicesTests.cs -crlf
+/ComposablePartCatalogExtensions.cs -crlf
+/ComposablePartDefinitionTests.cs -crlf
+/ComposablePartExceptionTests.cs -crlf
+/ComposablePartExtensibilityTests.cs -crlf
+/ComposablePartTests.cs -crlf
+/CompositionContainerCollectionTests.cs -crlf
+/CompositionContainerExtensibilityTests.cs -crlf
+/CompositionContainerExtensions.cs -crlf
+/CompositionContainerImportTests.cs -crlf
+/CompositionContainerTests.cs -crlf
+/CompositionErrorDebuggerProxyTests.cs -crlf
+/CompositionErrorIdTests.cs -crlf
+/CompositionErrorTests.cs -crlf
+/CompositionExceptionTests.cs -crlf
+/CompositionResultOfTTest.cs -crlf
+/CompositionResultTest.cs -crlf
+/CompositionServiceExtensionsTests.cs -crlf
+/CompositionServiceProxy.cs -crlf
+/CompositionServicesTests.cs -crlf
+/ConcreteComposablePart.cs -crlf
+/ConstraintServicesTests.cs -crlf
+/ContractBasedImportDefinitionTests.cs -crlf
+/ContractMismatchExceptionTests.cs -crlf
+/DynamicMetadata.cs -crlf
+/Expectations.cs -crlf
+/ExportAttributeTests.cs -crlf
+/ExportCollectionTests.cs -crlf
+/ExportDefinitionTests.cs -crlf
+/ExportMetadataAttributeTests.cs -crlf
+/ExportProviderTests.cs -crlf
+/ExportTests.cs -crlf
+/ExportableAttributeTests.cs -crlf
+/GenerationServicesTests.cs -crlf
+/ImportAttributeTests.cs -crlf
+/ImportDefinitionTests.cs -crlf
+/ImportingComposablePart.cs -crlf
+/ImportingConstructorAttributeTests.cs -crlf
+/InitializationScopeTests.cs -crlf
+/MetadataAttributeAttributeTests.cs -crlf
+/MetadataTests.cs -crlf
+/MetadataViewProviderTests.cs -crlf
+/MicroExport.cs -crlf
+/PartCreationPolicyAttributeTests.cs -crlf
+/PartMetadataAttributeTests.cs -crlf
+/SampleComponents.cs -crlf
--- /dev/null
+/AllowNonPublicCompositionTests.cs -crlf
+/AttributedModelCompositionTests.cs -crlf
+/AttributedModelDiscoveryTests.cs -crlf
+/INotifyImportTests.cs -crlf
--- /dev/null
+/CompositionTraceIdTests.cs -crlf
+/CompositionTraceSourceTests.cs -crlf
--- /dev/null
+/CustomImportAttribute.cs -crlf
+/CustomImportManyAttribute.cs -crlf
--- /dev/null
+/CatalogFactory.DerivedComposablePartCatalog.cs -crlf
+/CatalogFactory.DisposableComposablePartCatalog.cs -crlf
+/CatalogFactory.FilteredComposablePartCatalog.cs -crlf
+/CatalogFactory.MutableComposablePartCatalog.cs -crlf
+/CatalogFactory.NoOverridesComposablePartCatalog.cs -crlf
+/CatalogFactory.NonFilteringTypeCatalog.cs -crlf
+/CatalogFactory.cs -crlf
+/ConstraintFactory.cs -crlf
+/ContainerFactory.DisposableCompositionContainer.cs -crlf
+/ContainerFactory.NoOverridesCompositionContainer.cs -crlf
+/ContainerFactory.cs -crlf
+/ElementFactory.CompositionElement.cs -crlf
+/ElementFactory.cs -crlf
+/ErrorFactory.cs -crlf
+/ExportDefinitionFactory.DerivedExportDefinition.cs -crlf
+/ExportDefinitionFactory.cs -crlf
+/ExportFactory.cs -crlf
+/ExportProviderFactory.NoOverridesExportProvider.cs -crlf
+/ExportProviderFactory.RecomposableExportProvider.cs -crlf
+/ExportProviderFactory.cs -crlf
+/ImportDefinitionFactory.DerivedContractBasedImportDefinition.cs -crlf
+/ImportDefinitionFactory.DerivedImportDefinition.cs -crlf
+/ImportDefinitionFactory.cs -crlf
+/PartDefinitionFactory.DerivedComposablePartDefinition.cs -crlf
+/PartDefinitionFactory.NoOverridesComposablePartDefinition.cs -crlf
+/PartDefinitionFactory.cs -crlf
+/PartFactory.DisposableComposablePart.cs -crlf
+/PartFactory.NoOverridesComposablePart.cs -crlf
+/PartFactory.cs -crlf
+/ReflectionFactory.MockParameterInfo.cs -crlf
+/ReflectionFactory.cs -crlf
--- /dev/null
+/AggregateCatalogTest.cs -crlf
+/AssemblyCatalogDebuggerProxyTests.cs -crlf
+/AssemblyCatalogTests.cs -crlf
+/CatalogExportProviderTests.cs -crlf
+/CompositionBatchTests.cs -crlf
+/CompositionTransactionTests.cs -crlf
+/DirectoryCatalogDebuggerProxyTests.cs -crlf
+/DirectoryCatalogTests.cs -crlf
+/ImportEngineTests.cs -crlf
+/TypeCatalogTests.cs -crlf
--- /dev/null
+/ComposablePartCatalogDebuggerProxyTests.cs -crlf
+/ComposablePartCatalogTests.cs -crlf
+/CompositionElementDebuggerProxyTests.cs -crlf
+/CompositionElementTests.cs -crlf
+/SerializableCompositionElementTests.cs -crlf
--- /dev/null
+/LazyMemberInfoTests.cs -crlf
+/ReflectionComposablePartDefinitionTests.cs -crlf
+/ReflectionComposablePartTests.cs -crlf
+/ReflectionMemberExportDefinitionTests.cs -crlf
+/ReflectionMemberImportDefinitionTests.cs -crlf
+/ReflectionModelServicesTests.cs -crlf
+/ReflectionParameterImportDefinitionTests.cs -crlf
--- /dev/null
+/ConstraintAssert.cs -crlf
--- /dev/null
+/AdaptingCollectionTests.cs -crlf
+/CatalogFilteringTests.cs -crlf
+/CompositionContainerAttributedModelCycleTests.cs -crlf
+/ConstructorInjectionTests.cs -crlf
+/DelayLoadingTests.cs -crlf
+/DelegateCompositionTests.cs -crlf
+/DiscoveryTests.cs -crlf
+/ExportProviderEventTests.cs -crlf
+/LifetimeTests.cs -crlf
+/PartCreatorTests.cs -crlf
+/RecompositionTests.cs -crlf
+/RejectionTests.cs -crlf
+/RequiredCreationPolicyTests.cs -crlf
--- /dev/null
+/ReflectionItemAssert.cs -crlf
+/TestUtilities.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/DisposableObject.cs -crlf
+/EnumExtensions.cs -crlf
+/ReferenceTracker.cs -crlf
+/TypeExtensions.cs -crlf
--- /dev/null
+/EnumerableExtensions.cs -crlf
--- /dev/null
+/DictionaryExtensions.cs -crlf
--- /dev/null
+/ConstraintParser.cs -crlf
--- /dev/null
+/TraceContext.TraceContextTraceListener.cs -crlf
+/TraceContext.cs -crlf
+/TraceEventDetails.cs -crlf
+/TraceId.cs -crlf
--- /dev/null
+/CompositionHostTestService.cs -crlf
--- /dev/null
+/ReflectionModelServicesEx.cs -crlf
--- /dev/null
+/CompositionAssert.cs -crlf
+/ElementAssert.cs -crlf
+/ErrorId.cs -crlf
+/ExportsAssert.cs -crlf
--- /dev/null
+/CurrentCultureContext.cs -crlf
--- /dev/null
+/FileIO.cs -crlf
+/TemporaryDirectory.cs -crlf
+/TemporaryFile.cs -crlf
+/TemporaryFileCopier.cs -crlf
--- /dev/null
+/SerializationTestServices.cs -crlf
+/StrictFormatterConverter.cs -crlf
--- /dev/null
+/EnumerableAssert.cs -crlf
+/ExceptionAssert.cs -crlf
+/ExpectationCollectionOfI.cs -crlf
+/ExpectationCollectionOfIO.cs -crlf
+/ExpectationOfI.cs -crlf
+/ExpectationOfIO.cs -crlf
+/ExtendedAssert.cs -crlf
+/ReflectionAssert.cs -crlf
+/RetryMode.cs -crlf
+/TestServices.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/SilverlightAdditions.cs -crlf
+/Strings.Designer.cs -crlf
+/Strings.resx -crlf
+/SuppressMessages.cs -crlf
+/SuppressMessagesBaselined.cs -crlf
--- /dev/null
+/Assumes.InternalErrorException.cs -crlf
+/Assumes.cs -crlf
+/AttributeServices.cs -crlf
+/ContractServices.cs -crlf
+/GenerationServices.cs -crlf
+/LazyServices.cs -crlf
+/Lock.Reader.cs -crlf
+/Lock.Writer.cs -crlf
+/Lock.cs -crlf
+/ReflectionInvoke.cs -crlf
+/ReflectionServices.cs -crlf
+/Requires.cs -crlf
+/SilverlightReflectionInvoke.cs -crlf
+/StringComparers.cs -crlf
--- /dev/null
+/CollectionServices.CollectionOfObject.cs -crlf
+/CollectionServices.cs -crlf
+/ConditionalWeakTable.cs -crlf
+/EnumerableCardinality.cs -crlf
+/ReadOnlyDictionary.cs -crlf
+/ReadOnlyDictionaryDebuggerProxy.cs -crlf
+/WeakReferenceCollection.cs -crlf
--- /dev/null
+/SerializationServices.cs -crlf
--- /dev/null
+/Lazy.cs -crlf
+/LazyOfTTMetadata.cs -crlf
+/Tuple.cs -crlf
--- /dev/null
+/AttributedModelServices.cs -crlf
+/ChangeRejectedException.cs -crlf
+/CompositionContractMismatchException.cs -crlf
+/CompositionError.cs -crlf
+/CompositionErrorDebuggerProxy.cs -crlf
+/CompositionErrorId.cs -crlf
+/CompositionException.cs -crlf
+/CompositionResult.cs -crlf
+/CompositionResultOfT.cs -crlf
+/ConstraintServices.cs -crlf
+/ContractNameServices.cs -crlf
+/CreationPolicy.cs -crlf
+/ErrorBuilder.cs -crlf
+/ExceptionBuilder.cs -crlf
+/ExportAttribute.cs -crlf
+/ExportCardinalityCheckResult.cs -crlf
+/ExportMetadataAttribute.cs -crlf
+/ExportServices.DisposableLazy.cs -crlf
+/ExportServices.cs -crlf
+/IAttributedImport.cs -crlf
+/ICompositionError.cs -crlf
+/ICompositionService.cs -crlf
+/IPartImportsSatisfiedNotification.cs -crlf
+/ImportAttribute.cs -crlf
+/ImportCardinalityMismatchException.cs -crlf
+/ImportManyAttribute.cs -crlf
+/ImportingConstructorAttribute.cs -crlf
+/InheritedExportAttribute.cs -crlf
+/MetadataAttributeAttribute.cs -crlf
+/MetadataServices.cs -crlf
+/MetadataViewGenerator.cs -crlf
+/MetadataViewProvider.cs -crlf
+/PartCreationPolicyAttribute.cs -crlf
+/PartCreatorOfT.cs -crlf
+/PartCreatorOfTTMetadata.cs -crlf
+/PartLifetimeContextOfT.cs -crlf
+/PartMetadataAttribute.cs -crlf
+/PartNotDiscoverableAttribute.cs -crlf
--- /dev/null
+/AttributedExportDefinition.cs -crlf
+/AttributedModelDiscovery.cs -crlf
+/AttributedPartCreationInfo.cs -crlf
--- /dev/null
+/CompositionTrace.cs -crlf
+/CompositionTraceId.cs -crlf
+/CompositionTraceSource.cs -crlf
+/SilverlightTraceWriter.cs -crlf
+/TraceSourceTraceWriter.cs -crlf
+/TraceWriter.cs -crlf
--- /dev/null
+/AggregateCatalog.cs -crlf
+/AggregateExportProvider.cs -crlf
+/AssemblyCatalog.cs -crlf
+/AssemblyCatalogDebuggerProxy.cs -crlf
+/AtomicComposition.cs -crlf
+/AtomicCompositionExtensions.cs -crlf
+/CatalogExportProvider.CatalogChangeProxy.cs -crlf
+/CatalogExportProvider.CatalogExport.cs -crlf
+/CatalogExportProvider.PartCreatorExport.cs -crlf
+/CatalogExportProvider.cs -crlf
+/ComposablePartCatalogChangeEventArgs.cs -crlf
+/ComposablePartCatalogCollection.cs -crlf
+/ComposablePartExportProvider.cs -crlf
+/CompositionBatch.SingleExportComposablePart.cs -crlf
+/CompositionBatch.cs -crlf
+/CompositionConstants.cs -crlf
+/CompositionContainer.cs -crlf
+/CompositionLock.cs -crlf
+/CompositionServices.cs -crlf
+/DirectoryCatalog.DirectoryCatalogDebuggerProxy.cs -crlf
+/DirectoryCatalog.cs -crlf
+/ExportProvider.GetExportOverrides.cs -crlf
+/ExportProvider.cs -crlf
+/ExportsChangeEventArgs.cs -crlf
+/INotifyComposablePartCatalogChanged.cs -crlf
+/ImportEngine.EngineContext.cs -crlf
+/ImportEngine.PartManager.cs -crlf
+/ImportEngine.RecompositionManager.cs -crlf
+/ImportEngine.cs -crlf
+/TypeCatalog.cs -crlf
--- /dev/null
+/ComposablePart.cs -crlf
+/ComposablePartCatalog.cs -crlf
+/ComposablePartCatalogDebuggerProxy.cs -crlf
+/ComposablePartDefinition.cs -crlf
+/ComposablePartException.cs -crlf
+/CompositionElement.cs -crlf
+/CompositionElementDebuggerProxy.cs -crlf
+/CompositionElementExtensions.cs -crlf
+/ContractBasedImportDefinition.cs -crlf
+/Export.cs -crlf
+/ExportDefinition.cs -crlf
+/ExportedDelegate.cs -crlf
+/ICompositionElement.cs -crlf
+/IPartCreatorImportDefinition.cs -crlf
+/ImportCardinality.cs -crlf
+/ImportDefinition.cs -crlf
+/SerializableCompositionElement.cs -crlf
--- /dev/null
+/DisposableReflectionComposablePart.cs -crlf
+/ExportingMember.cs -crlf
+/IReflectionPartCreationInfo.cs -crlf
+/ImportType.cs -crlf
+/ImportingItem.cs -crlf
+/ImportingMember.cs -crlf
+/ImportingParameter.cs -crlf
+/LazyMemberInfo.cs -crlf
+/PartCreatorExportDefinition.cs -crlf
+/PartCreatorMemberImportDefinition.cs -crlf
+/PartCreatorParameterImportDefinition.cs -crlf
+/ReflectionComposablePart.cs -crlf
+/ReflectionComposablePartDefinition.cs -crlf
+/ReflectionExtensions.cs -crlf
+/ReflectionField.cs -crlf
+/ReflectionImportDefinition.cs -crlf
+/ReflectionItem.cs -crlf
+/ReflectionItemType.cs -crlf
+/ReflectionMember.cs -crlf
+/ReflectionMemberExportDefinition.cs -crlf
+/ReflectionMemberImportDefinition.cs -crlf
+/ReflectionMethod.cs -crlf
+/ReflectionModelServices.cs -crlf
+/ReflectionParameter.cs -crlf
+/ReflectionParameterImportDefinition.cs -crlf
+/ReflectionProperty.cs -crlf
+/ReflectionType.cs -crlf
+/ReflectionWritableMember.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Strings.Designer.cs -crlf
+/Strings.resx -crlf
+/SuppressMessages.cs -crlf
--- /dev/null
+/Lock.Reader.cs -crlf
+/Lock.Writer.cs -crlf
+/Lock.cs -crlf
+/Requires.cs -crlf
--- /dev/null
+/CompositionInitializer.AssemblyList.cs -crlf
+/CompositionInitializer.cs -crlf
+/ExportFactoryOfT.cs -crlf
+/ExportFactoryOfTTMetadata.cs -crlf
+/ExportLifetimeContextOfT.cs -crlf
--- /dev/null
+/CompositionHost.cs -crlf
+/DeploymentCatalog.cs -crlf
+/Package.cs -crlf
--- /dev/null
+/System.Configuration.Install.xml -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/ConfigurationPropertyTest.cs -crlf
--- /dev/null
+/t11.exe.expected -crlf
+/t32.exe.expected -crlf
+/t33.exe.expected -crlf
+/t34.exe.expected -crlf
+/t35.exe.config -crlf
+/t35.exe.expected -crlf
+/t36.exe.expected -crlf
+/t38.exe.expected -crlf
+/t39.exe.expected -crlf
+/t40.exe.expected -crlf
+/t41.exe.expected -crlf
+/t42.exe.config -crlf
+/t42.exe.expected -crlf
+/t45.exe.expected -crlf
{
try {
NameValueCollection AppSettings = ConfigurationManager.AppSettings;
- Assert.Fail ("#1:" + AppSettings);\r
+ Assert.Fail ("#1:" + AppSettings);
} catch (ConfigurationErrorsException ex) {
// Configuration system failed to initialize
Assert.AreEqual (typeof (ConfigurationErrorsException), ex.GetType (), "#2");
Assert.AreEqual (3, inner.Line, "#12");
Assert.IsNotNull (inner.Message, "#13");
Assert.IsTrue (inner.Message.IndexOf ("<location>") != -1, "#14:" + inner.Message);
- Assert.IsTrue (inner.Message.IndexOf ("<configuration>") != -1, "#15:" + inner.Message);\r
-\r
- Console.WriteLine ("configuration exception thrown.");\r
+ Assert.IsTrue (inner.Message.IndexOf ("<configuration>") != -1, "#15:" + inner.Message);
+
+ Console.WriteLine ("configuration exception thrown.");
}
}
}
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/Aes.cs -crlf
+
+Fri Jul 23 16:46:38 CEST 2010 Paolo Molaro <lupus@ximian.com>
+
+ * Funcs.cs: Fixed typo in Func`15.
+
2010-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
* TimeZoneInfo.cs: avoid nullref when there are no adjustment rules.
T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, out TResult> (
- T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T4 arg14);
+ T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14);
public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9, in T10, in T11, in T12, in T13, in T14, in T15, out TResult> (
T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14, T15 arg15);
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/Employee.cs -crlf
+/Northwind.cs -crlf
+/ObjectDumper.cs -crlf
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/Northwind.cs -crlf
--- /dev/null
+/create_Northwind.sql -crlf
--- /dev/null
+/Program.cs -crlf
--- /dev/null
+/demodb.cs -crlf
--- /dev/null
+/Northwind.cs -crlf
--- /dev/null
+/create_Northwind.sql -crlf
+/create_User.sql -crlf
--- /dev/null
+/Program.cs -crlf
+/nwind.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/Northwind.cs -crlf
+/NorthwindCustom.cs -crlf
+/originalMSNorthwind.dbml -crlf
+/originalMSNorthwind.dbml.layout -crlf
+/originalMSNorthwind.designer.cs -crlf
--- /dev/null
+/create_Northwind.sql -crlf
--- /dev/null
+/ObjectDumper.cs -crlf
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/AllTypes.cs -crlf
+/Andrus.cs -crlf
+/DbLinq_EnumTest.cs -crlf
+/Northwind.cs -crlf
+/Northwind_from_mysql.dbml -crlf
}\r
\r
#endregion\r
- #warning L189 table t2 has no primary key. Multiple c# objects will refer to the same row.
+ #warning L189 table t2 has no primary key. Multiple c# objects will refer to the same row.\r
\r
#region childtables\r
#endregion\r
--- /dev/null
+/createDB_AllTypes.sql -crlf
+/createDB_Andrus.sql -crlf
+/create_Northwind.sql -crlf
+/create_User.sql -crlf
--- /dev/null
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/Northwind.cs -crlf
--- /dev/null
+/create_Northwind_ora.sql -crlf
+/drop_Northwind_ora.sql -crlf
--- /dev/null
+/PgAndrusClient.cs -crlf
+/ProgramPg.cs -crlf
--- /dev/null
+/Adrus_Employee_Types.cs -crlf
+/AndrusDB.cs -crlf
+/Northwind.cs -crlf
--- /dev/null
+/NorthWindRegular.sql -crlf
+/createDB_Andrus.sql -crlf
+/createDB_Northwind_pg.sql -crlf
+/install_readme.txt -crlf
--- /dev/null
+/ObjectDumper.cs -crlf
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/DbLinq_EnumTest.cs -crlf
+/Northwind.cs -crlf
--- /dev/null
+/create_AllTypes.sql -crlf
+/create_Northwind.sql -crlf
+/create_User.sql -crlf
--- /dev/null
+/Build?Northwind?parameters.txt -crlf
+/DbLinq.ProductInfo.cs -crlf
+/DbLinq.fxcop -crlf
+/DbLinq.vsmdi -crlf
+/DbLinq1.vsmdi -crlf
+/DbLinq2.vsmdi -crlf
+/DbLinq3.vsmdi -crlf
+/LocalTestRun.testrunconfig -crlf
+/readme.txt -crlf
--- /dev/null
+/FirebirdDataContext.cs -crlf
+/FirebirdExpressionTranslator.cs -crlf
+/FirebirdSchemaLoader.Columns.cs -crlf
+/FirebirdSchemaLoader.Constraints.cs -crlf
+/FirebirdSchemaLoader.StoredProcedures.cs -crlf
+/FirebirdSchemaLoader.Tables.cs -crlf
+/FirebirdSchemaLoader.cs -crlf
+/FirebirdSqlProvider.cs -crlf
+/FirebirdVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/TestBase.cs -crlf
--- /dev/null
+/IngresDataContext.cs -crlf
+/IngresSchemaLoader.Columns.cs -crlf
+/IngresSchemaLoader.Constraints.cs -crlf
+/IngresSchemaLoader.StoredProcedures.cs -crlf
+/IngresSchemaLoader.Tables.cs -crlf
+/IngresSchemaLoader.cs -crlf
+/IngresSqlProvider.cs -crlf
+/IngresVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/NorthwindIngres.dbml -crlf
+/TestBase.cs -crlf
--- /dev/null
+/MySqlDataContext.cs -crlf
+/MySqlSchemaLoader.Columns.cs -crlf
+/MySqlSchemaLoader.Constraints.cs -crlf
+/MySqlSchemaLoader.StoredProcedures.cs -crlf
+/MySqlSchemaLoader.Tables.cs -crlf
+/MySqlSchemaLoader.cs -crlf
+/MySqlSqlProvider.cs -crlf
+/MySqlVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/NorthwindMySql.dbml -crlf
+/TestBase.cs -crlf
--- /dev/null
+/Application.Designer.vb -crlf
+/Application.myapp -crlf
+/AssemblyInfo.vb -crlf
+/Resources.Designer.vb -crlf
+/Resources.resx -crlf
+/Settings.Designer.vb -crlf
+/Settings.settings -crlf
--- /dev/null
+/OracleDataContext.cs -crlf
+/OracleSchemaLoader.Columns.cs -crlf
+/OracleSchemaLoader.Constraints.cs -crlf
+/OracleSchemaLoader.StoredProcedures.cs -crlf
+/OracleSchemaLoader.Tables.cs -crlf
+/OracleSchemaLoader.cs -crlf
+/OracleSqlProvider.cs -crlf
+/OracleVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/NorthwindOraODP.dbml -crlf
+/NorthwindOracle.dbml -crlf
+/TestBase.cs -crlf
+/TestBase_odp.cs -crlf
--- /dev/null
+/PgsqlDataContext.cs -crlf
+/PgsqlSchemaLoader.Columns.cs -crlf
+/PgsqlSchemaLoader.Constraints.cs -crlf
+/PgsqlSchemaLoader.StoredProcedures.cs -crlf
+/PgsqlSchemaLoader.Tables.cs -crlf
+/PgsqlSchemaLoader.cs -crlf
+/PgsqlSqlProvider.cs -crlf
+/PgsqlVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/NorthwindPgsql.dbml -crlf
+/TestBase.cs -crlf
--- /dev/null
+/SqlServerDataContext.cs -crlf
+/SqlServerExpressionTranslator.cs -crlf
+/SqlServerSchemaLoader.cs -crlf
+/SqlServerSqlProvider.cs -crlf
+/SqlServerTypeConversions.cs -crlf
+/SqlServerVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/MsSqlDataContextTest.cs -crlf
+/TestBase.cs -crlf
--- /dev/null
+/SqliteDataContext.cs -crlf
+/SqliteSchemaLoader.Columns.cs -crlf
+/SqliteSchemaLoader.Constraints.cs -crlf
+/SqliteSchemaLoader.Tables.cs -crlf
+/SqliteSchemaLoader.cs -crlf
+/SqliteSqlProvider.cs -crlf
+/SqliteVendor.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/DataCommand.cs -crlf
--- /dev/null
+/DirectDataContext.cs -crlf
+/NorthwindSqlite.dbml -crlf
+/TestBase.cs -crlf
+/TestBase_mono.cs -crlf
--- /dev/null
+/DbLinqToDoAttribute.cs -crlf
+/MonoTODOAttribute.cs -crlf
--- /dev/null
+/ChangeAction.cs -crlf
+/ChangeSet.cs -crlf
+/DBLinqExtendedAttributte.cs -crlf
+/DataContext.Extended.cs -crlf
+/DataContext.cs -crlf
+/DataLoadOptions.cs -crlf
+/EntityRef.cs -crlf
+/EntitySet.cs -crlf
+/IExecuteResult.cs -crlf
+/IMemberModificationHandler.cs -crlf
+/ITable.Extended.cs -crlf
+/ITable.cs -crlf
+/IVendorProvider.cs -crlf
+/ReadMe.txt -crlf
+/RefreshMode.cs -crlf
+/Table.Extended.cs -crlf
+/Table.cs -crlf
--- /dev/null
+/IDatabaseContext.cs -crlf
+/IDatabaseTransaction.cs -crlf
+/ITransactionalCommand.cs -crlf
--- /dev/null
+/DatabaseConnection.cs -crlf
+/DatabaseContext.cs -crlf
+/DatabaseTransaction.cs -crlf
+/TransactionalCommand.cs -crlf
--- /dev/null
+/IIdentityProvider.cs -crlf
+/IIdentityReader.cs -crlf
+/IIdentityReaderFactory.cs -crlf
+/IdentityKey.cs -crlf
--- /dev/null
+/IdentityProviderReader.cs -crlf
+/IdentityReader.cs -crlf
+/IdentityReaderFactory.cs -crlf
--- /dev/null
+/DisabledEntityTracker.cs -crlf
+/EntityState.cs -crlf
+/EntityTrack.cs -crlf
+/EntityTracker.cs -crlf
+/IEntityTracker.cs -crlf
+/MemberModificationHandler.cs -crlf
+/QueryProvider.cs -crlf
+/VendorProvider.cs -crlf
--- /dev/null
+/AttributeMappingSource.cs -crlf
+/AttributedAbstractMetaDataMember.cs -crlf
+/AttributedAssociationMetaDataMember.cs -crlf
+/AttributedColumnMetaDataMember.cs -crlf
+/AttributedMetaAssociation.cs -crlf
+/AttributedMetaFunction.cs -crlf
+/AttributedMetaModel.cs -crlf
+/AttributedMetaTable.cs -crlf
+/AttributedMetaType.cs -crlf
+/LambdaMetaAccessor.cs -crlf
+/MappingContext.cs -crlf
+/XmlMappingSource.cs -crlf
--- /dev/null
+/SqlLiteralPart.cs -crlf
+/SqlParameterPart.cs -crlf
+/SqlPart.cs -crlf
+/SqlStatement.cs -crlf
+/SqlStatementBuilder.cs -crlf
--- /dev/null
+/FirebirdProvider.cs -crlf
+/IngresProvider.cs -crlf
+/MySqlProvider.cs -crlf
+/OracleProvider.cs -crlf
+/PostgreSqlProvider.cs -crlf
+/Sql2000Provider.cs -crlf
+/Sql2005Provider.cs -crlf
+/Sql2008Provider.cs -crlf
+/SqlServerProvider.cs -crlf
+/SqliteProvider.cs -crlf
--- /dev/null
+/AbstractQuery.cs -crlf
+/BuilderContext.cs -crlf
+/DeleteQuery.cs -crlf
+/DirectQuery.cs -crlf
+/Error.cs -crlf
+/ExpressionChain.cs -crlf
+/ExpressionPrecedence.cs -crlf
+/ExpressionQuery.cs -crlf
+/ExpressionTier.cs -crlf
+/IDataMapper.cs -crlf
+/IDataRecordReader.cs -crlf
+/IExpressionDispatcher.cs -crlf
+/IExpressionLanguageParser.cs -crlf
+/IExpressionOptimizer.cs -crlf
+/IExpressionQualifier.cs -crlf
+/IPrequelAnalyzer.cs -crlf
+/IQueryBuilder.cs -crlf
+/IQueryCache.cs -crlf
+/IQueryRunner.cs -crlf
+/ISpecialExpressionTranslator.cs -crlf
+/ISqlBuilder.cs -crlf
+/Notes.txt -crlf
+/ParameterizedQuery.cs -crlf
+/QueryContext.cs -crlf
+/SelectQuery.cs -crlf
+/UpsertQuery.cs -crlf
--- /dev/null
+/ExpressionMutatorExtensions.cs -crlf
+/ExpressionMutatorFactory.cs -crlf
--- /dev/null
+/BinaryExpressionMutator.cs -crlf
+/ConditionalExpressionMutator.cs -crlf
+/ConstantExpressionMutator.cs -crlf
+/IMemberBindingMutator.cs -crlf
+/InvocationExpressionMutator.cs -crlf
+/LambdaExpressionMutator.cs -crlf
+/ListInitExpressionMutator.cs -crlf
+/MemberAssignmentMutator.cs -crlf
+/MemberBindingMutatorFactory.cs -crlf
+/MemberExpressionMutator.cs -crlf
+/MemberInitExpressionMutator.cs -crlf
+/MemberListBindingMutator.cs -crlf
+/MemberMemberBindingMutator.cs -crlf
+/MethodCallExpressionMutator.cs -crlf
+/NewArrayExpressionMutator.cs -crlf
+/NewExpressionMutator.cs -crlf
+/ParameterExpressionMutator.cs -crlf
+/TypeBinaryExpressionMutator.cs -crlf
+/UnaryExpressionMutator.cs -crlf
--- /dev/null
+/ColumnExpression.cs -crlf
+/CustomExpressionType.cs -crlf
+/EntitySetExpression.cs -crlf
+/ExpressionTranslator.cs -crlf
+/GroupByExpression.cs -crlf
+/GroupExpression.cs -crlf
+/IExecutableExpression.cs -crlf
+/IMutableExpression.cs -crlf
+/InputParameterExpression.cs -crlf
+/MetaTableExpression.cs -crlf
+/MutableExpression.cs -crlf
+/ObjectInputParameterExpression.cs -crlf
+/ObjectOutputParameterExpression.cs -crlf
+/OperandsMutableExpression.cs -crlf
+/OrderByExpression.cs -crlf
+/ScopeExpression.cs -crlf
+/SelectExpression.cs -crlf
+/SelectOperatorType.cs -crlf
+/SpecialExpression.cs -crlf
+/SpecialExpressionType.cs -crlf
+/StartIndexOffsetExpression.cs -crlf
+/SubSelectExpression.cs -crlf
+/TableExpression.cs -crlf
+/TableJoinType.cs -crlf
--- /dev/null
+/DataMapper.cs -crlf
+/DataRecordReader.cs -crlf
+/ExpressionDispatcher.Analyzer.cs -crlf
+/ExpressionDispatcher.Registrar.cs -crlf
+/ExpressionDispatcher.cs -crlf
+/ExpressionLanguageParser.cs -crlf
+/ExpressionOptimizer.cs -crlf
+/ExpressionQualifier.cs -crlf
+/LineGrouping.cs -crlf
+/PrequelAnalyzer.cs -crlf
+/QueryBuilder.Upsert.cs -crlf
+/QueryBuilder.cs -crlf
+/QueryCache.cs -crlf
+/QueryRunner.cs -crlf
+/SpecialExpressionTranslator.cs -crlf
+/SqlBuilder.cs -crlf
--- /dev/null
+/DbLinqAttribute.cs -crlf
+/IObjectFactory.cs -crlf
+/ObjectFactory.cs -crlf
--- /dev/null
+/ReflectionObjectFactory.cs -crlf
--- /dev/null
+/ILanguageWords.cs -crlf
+/ILanguages.cs -crlf
--- /dev/null
+/AbstractEndPluralWords.cs -crlf
+/AbstractWords.cs -crlf
+/Languages.cs -crlf
+/NoLanguageWords.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/AssociationName.cs -crlf
+/Case.cs -crlf
+/ColumnName.cs -crlf
+/INameFormatter.cs -crlf
+/Name.cs -crlf
+/NameFormat.cs -crlf
+/ParameterName.cs -crlf
+/ProcedureName.cs -crlf
+/SchemaName.cs -crlf
+/TableName.cs -crlf
+/WordsExtraction.cs -crlf
--- /dev/null
+/DbmlSchema.Adapter.cs -crlf
+/DbmlSchema.cs -crlf
+/DbmlSerializer.cs -crlf
--- /dev/null
+/ArrayAdapter.cs -crlf
+/CsvArrayAdapter.cs -crlf
+/EnumType.cs -crlf
+/INamedType.cs -crlf
+/ISimpleList.cs -crlf
+/SpecifiedPropertyUpdater.cs -crlf
--- /dev/null
+/NameFormatter.cs -crlf
--- /dev/null
+/Binary.cs -crlf
+/ChangeConflictCollection.cs -crlf
+/ChangeConflictException.cs -crlf
+/CompiledQuery.cs -crlf
+/ConflictMode.cs -crlf
+/DBConvert.cs -crlf
+/DuplicateKeyException.cs -crlf
+/EntitySet.cs -crlf
+/ForeignKeyReferenceAlreadyHasValueException.cs -crlf
+/IFunctionResult.cs -crlf
+/IMultipleResults.cs -crlf
+/ISingleResult.cs -crlf
+/Link.cs -crlf
+/Makefile -crlf
+/MemberChangeConflict.cs -crlf
+/ModifiedMemberInfo.cs -crlf
+/ObjectChangeConflict.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/AssociationAttribute.cs -crlf
+/AutoSync.cs -crlf
+/ColumnAttribute.cs -crlf
+/DataAttribute.cs -crlf
+/DatabaseAttribute.cs -crlf
+/FunctionAttribute.cs -crlf
+/InheritanceMappingAttribute.cs -crlf
+/MappingSource.cs -crlf
+/MetaAccessor.cs -crlf
+/MetaAccessor_2.cs -crlf
+/MetaAssociation.cs -crlf
+/MetaDataMember.cs -crlf
+/MetaFunction.cs -crlf
+/MetaModel.cs -crlf
+/MetaParameter.cs -crlf
+/MetaTable.cs -crlf
+/MetaType.cs -crlf
+/ParameterAttribute.cs -crlf
+/ProviderAttribute.cs -crlf
+/ResultTypeAttribute.cs -crlf
+/TableAttribute.cs -crlf
+/UpdateCheck.cs -crlf
--- /dev/null
+/ObjectMaterializer.cs -crlf
--- /dev/null
+/Sql2000Provider.cs -crlf
+/Sql2005Provider.cs -crlf
+/SqlHelpers.cs -crlf
+/SqlMethods.cs -crlf
+/SqlProvider.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/AttributeMappingSourceTest.cs -crlf
+/BinaryTest.cs -crlf
+/CsvArrayAdapterTest.cs -crlf
+/DataContextTest.cs -crlf
+/EntitySetTest.cs -crlf
+/ExpressionEqualityComparerTest.cs -crlf
+/IDataTypeExtensionsTest.cs -crlf
+/PeopleTable.cs -crlf
+/TableTest.cs -crlf
+/TypeContextTest.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/App.config -crlf
+/Attach.cs -crlf
+/CompositePK_Test.cs -crlf
+/DataContext.cs -crlf
+/DataContextTestBase.cs -crlf
+/DataLoadOptions_Test.cs -crlf
+/DynamicLinqTest.cs -crlf
+/ExecuteCommand_Test.cs -crlf
+/ExecuteQuery_Test.cs -crlf
+/MetalTest.cs -crlf
+/Program2Ing.cs -crlf
+/Program2Mysql.cs -crlf
+/Program2Pg.cs -crlf
+/Program2SQLite.cs -crlf
+/Program3Ora.cs -crlf
+/ReadTest.cs -crlf
+/ReadTest_AllTypes_MySql.cs -crlf
+/ReadTest_Complex.cs -crlf
+/ReadTest_GroupBy.cs -crlf
+/ReadTest_Operands.cs -crlf
+/ReadTest_Subquery.cs -crlf
+/ReadTests_AnyCountFirst.cs -crlf
+/ReadTests_Conversions.cs -crlf
+/ReadTests_DateTimeFunctions.cs -crlf
+/ReadTests_EntitySet.cs -crlf
+/ReadTests_Join.cs -crlf
+/ReadTests_Maths.cs -crlf
+/ReadTests_ReferenceLoading.cs -crlf
+/ReadTests_StringFunctions.cs -crlf
+/StoredProcTest.cs -crlf
+/Table.cs -crlf
+/TestBase.cs -crlf
+/Transactions.cs -crlf
+/VerticalPartitioningTest.cs -crlf
+/WriteTest.cs -crlf
+/WriteTest_BulkInsert.cs -crlf
--- /dev/null
+/ReflectionTest.cs -crlf
--- /dev/null
+/101_readme.htm -crlf
+/Advanced.cs -crlf
+/Conversion_Operators.cs -crlf
+/Count_Sum_Min_Max_Avg.cs -crlf
+/ExsistIn_Any_All.cs -crlf
+/GroupBy_Having.cs -crlf
+/Inheritance.cs -crlf
+/Insert_Update_Delete.cs -crlf
+/Join.cs -crlf
+/Linq101SamplesModifiedAttribute.cs -crlf
+/Null.cs -crlf
+/Object?Loading.cs -crlf
+/Object_Identity.cs -crlf
+/OptimisticConcurrence.cs -crlf
+/OrderBy.cs -crlf
+/Paging.cs -crlf
+/Select_Distinct.cs -crlf
+/String_Date_functions.cs -crlf
+/Top_Bottom.cs -crlf
+/UnionAll_Union_Intersect.cs -crlf
+/Views.cs -crlf
+/Where.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/ColumnAttributeTest.cs -crlf
--- /dev/null
+/DbLinq.accessor -crlf
--- /dev/null
+/CacheChecker.cs -crlf
+/DataCommand.cs -crlf
+/DbmlExtensions.cs -crlf
+/ExpressionChainEqualityComparer.cs -crlf
+/ExpressionEqualityComparer.cs -crlf
+/IDataRecordExtensions.cs -crlf
+/IDataTypeExtensions.cs -crlf
+/IDbDataParameterExtensions.cs -crlf
+/IThreadSafeDictionary.cs -crlf
+/LambdaComparer.cs -crlf
+/MemberInfoExtensions.cs -crlf
+/Output.cs -crlf
+/OutputLevel.cs -crlf
+/Page.cs -crlf
+/Profiler.cs -crlf
+/QuotesHelper.cs -crlf
+/ReferenceEqualityComparer.cs -crlf
+/ReflectionExtensions.cs -crlf
+/ReflectionUtility.cs -crlf
+/StringExtensions.cs -crlf
+/TextWriterExtension.cs -crlf
+/ThreadSafeDictionary.cs -crlf
+/TypeConvert.cs -crlf
+/TypeExtensions.cs -crlf
+/TypeLoader.cs -crlf
--- /dev/null
+/DbSchemaLoader.cs -crlf
+/IDataName.cs -crlf
+/IDataTableColumn.cs -crlf
+/IDataType.cs -crlf
+/INameAliases.cs -crlf
+/ISchemaLoader.cs -crlf
+/ISqlProvider.cs -crlf
+/IVendor.cs -crlf
+/VendorAttribute.cs -crlf
--- /dev/null
+/SchemaLoader.Columns.cs -crlf
+/SchemaLoader.DataName.cs -crlf
+/SchemaLoader.DataTableColumn.cs -crlf
+/SchemaLoader.ForeignKey.cs -crlf
+/SchemaLoader.Name.cs -crlf
+/SchemaLoader.StoredProcedures.cs -crlf
+/SchemaLoader.Tables.cs -crlf
+/SchemaLoader.TypeMapping.cs -crlf
+/SchemaLoader.cs -crlf
+/SqlProvider.cs -crlf
+/Vendor.ProcedureResult.cs -crlf
+/Vendor.cs -crlf
--- /dev/null
+/AbstractParameters.cs -crlf
+/AllTypes?all?to?Cs.txt -crlf
+/AllTypes?to?Cs.txt -crlf
+/App.config -crlf
+/DB?all?to?Cs.txt -crlf
+/DB?all?to?DBML.txt -crlf
+/DB?to?Cs.txt -crlf
+/DB?to?DBML.txt -crlf
+/NorthwindRename.dbml -crlf
+/Parameters.cs -crlf
+/Program.cs -crlf
+/Reference.cs -crlf
+/oraFieldRenames.xml -crlf
+/pgsqlFieldRenames.xml -crlf
+/sqlmetal.exe.config -crlf
--- /dev/null
+/ProvidersSection.cs -crlf
--- /dev/null
+/AttributeDefinition.cs -crlf
+/CodeDomGenerator.cs -crlf
+/CodeWriter.cs -crlf
+/GenerationContext.cs -crlf
+/ICodeGenerator.cs -crlf
+/IProcessor.cs -crlf
+/ISchemaLoaderFactory.cs -crlf
+/ParameterDefinition.cs -crlf
+/SpecificationDefinition.cs -crlf
--- /dev/null
+/IImplementation.cs -crlf
--- /dev/null
+/IModifiedImplementation.cs -crlf
+/INotifyPropertyChangedImplementation.cs -crlf
+/INotifyPropertyChangingImplementation.cs -crlf
+/InterfaceImplementation.cs -crlf
--- /dev/null
+/Processor.cs -crlf
+/SchemaLoaderFactory.cs -crlf
--- /dev/null
+/AbstractCodeDomGenerator.cs -crlf
+/CSharpCodeDomGenerator.cs -crlf
+/VisualBasicCodeDomGenerator.cs -crlf
--- /dev/null
+/CSCodeGenerator.cs -crlf
+/CSCodeWriter.cs -crlf
+/CodeGenerator.Class.cs -crlf
+/CodeGenerator.Context.Ctor.cs -crlf
+/CodeGenerator.Procedure.cs -crlf
+/CodeGenerator.cs -crlf
--- /dev/null
+/EnglishWords.cs -crlf
+/EnglishWords.txt -crlf
+/FrenchWords.cs -crlf
+/GermanWords.cs -crlf
+/GermanWords.txt -crlf
zythums
#pluriels irréguliers
-# http://fr.wikipedia.org/wiki/Pluriels_irr%C3%A9guliers_en_fran%C3%A7ais\r
-\r
-banal=>banals\r
-bancal=>bancals\r
-fatal=>fatals\r
-fractalmorfal=>fractalmorfals\r
-naval=>navals\r
-aéronaval=>aéronavals\r
-natal=>natals\r
-anténatal=>anténatals\r
-néonatal=>néonatals\r
-périnatal=>périnatals\r
-postnatal=>postnatals\r
-prénatal=>prénatals\r
-tonal=>tonals\r
-atonal=>atonals\r
-bitonal=>bitonals\r
-polytonal=>polytonals\r
-acétal=>acétals\r
-ammonal=>ammonals\r
-aval=>avals\r
-bal=>bals\r
-barbital=>barbitals\r
-cal=>cals\r
-captal=>captals\r
-carnaval=>carnavals\r
-cérémonial=>cérémonials\r
-chloral=>chlorals\r
-chrysocal=>chrysocals\r
-copal=>copals\r
-dial=>dials\r
-dispersal=>dispersals\r
-éthanal=>éthanals\r
-festival=>festivals\r
-foiral=>foirals\r
-furfural=>furfurals\r
-futal=>futals\r
-gal=>gals\r
-galgal=>galgals\r
-gardénal=>gardénals\r
-graal=>graals\r
-joual=>jouals\r
-kraal=>kraals\r
-kursaal=>kursaals\r
-matorral=>matorrals\r
-mescal=>mescals\r
-mezcal=>mezcals\r
-méthanal=>méthanals\r
-minerval=>minervals\r
-mistral=>mistrals\r
-nopal=>nopals\r
-pal=>pals\r
-pascal=>pascals\r
-hectopascal=>hectopascals\r
-kilopascal=>kilopascals\r
-penthotal=>penthotals\r
-phénobarbital=>phénobarbitals\r
-pipéronal=>pipéronals\r
-raval=>ravals\r
-récital=>récitals\r
-régal=>régals\r
-rétinal=>rétinals\r
-rital=>ritals\r
-roberval=>robervals\r
-roseval=>rosevals\r
-salicional=>salicionals\r
-sal=>sals\r
-santal=>santals\r
-saroual=>sarouals\r
-sial=>sials\r
-sisal=>sisals\r
-sonal=>sonals\r
-tagal=>tagals\r
-tefal=>tefals\r
-tergal=>tergals\r
-thiopental=>thiopentals\r
-tical=>ticals\r
-tincal=>tincals\r
-véronal=>véronals\r
-zicral=>zicrals\r
-caracal=>caracals\r
-chacal=>chacals\r
-gavial=>gavials\r
-gayal=>gayals\r
-narval=>narvals\r
-quetzal=>quetzals\r
-rorqual=>rorquals\r
-serval=>servals\r
-cantal=>cantals\r
-emmental=>emmentals\r
-emmenthal=>emmenthals\r
-metical=>meticals\r
-rial=>rials\r
-riyal=>riyals\r
-ryal=>ryals\r
-floréal=>floréals\r
-germinal=>germinals\r
-prairial=>prairials\r
-corral=>corrals\r
-deal=>deals\r
-goal=>goals\r
-autogoal=>autogoals\r
-revival=>revivals\r
-serial=>serials\r
-spiritual=>spirituals\r
-taal=>taals\r
-trial=>trials\r
-\r
-bail=>baux\r
-corail=>coraux\r
-émail=>émaux\r
-fermail=>fermaux\r
-soupirail=>soupiraux\r
-travail=>travaux\r
-vantail=>vantaux\r
-vitrail=>vitraux\r
-\r
-bijou=>bijoux\r
-caillou=>cailloux\r
-chou=>choux\r
-genou=>genoux\r
-hibou=>hiboux\r
-joujou=>joujoux\r
-pou=>poux\r
-\r
-ciel=>cieux\r
-oeil=>yeux\r
+# http://fr.wikipedia.org/wiki/Pluriels_irr%C3%A9guliers_en_fran%C3%A7ais
+
+banal=>banals
+bancal=>bancals
+fatal=>fatals
+fractalmorfal=>fractalmorfals
+naval=>navals
+aéronaval=>aéronavals
+natal=>natals
+anténatal=>anténatals
+néonatal=>néonatals
+périnatal=>périnatals
+postnatal=>postnatals
+prénatal=>prénatals
+tonal=>tonals
+atonal=>atonals
+bitonal=>bitonals
+polytonal=>polytonals
+acétal=>acétals
+ammonal=>ammonals
+aval=>avals
+bal=>bals
+barbital=>barbitals
+cal=>cals
+captal=>captals
+carnaval=>carnavals
+cérémonial=>cérémonials
+chloral=>chlorals
+chrysocal=>chrysocals
+copal=>copals
+dial=>dials
+dispersal=>dispersals
+éthanal=>éthanals
+festival=>festivals
+foiral=>foirals
+furfural=>furfurals
+futal=>futals
+gal=>gals
+galgal=>galgals
+gardénal=>gardénals
+graal=>graals
+joual=>jouals
+kraal=>kraals
+kursaal=>kursaals
+matorral=>matorrals
+mescal=>mescals
+mezcal=>mezcals
+méthanal=>méthanals
+minerval=>minervals
+mistral=>mistrals
+nopal=>nopals
+pal=>pals
+pascal=>pascals
+hectopascal=>hectopascals
+kilopascal=>kilopascals
+penthotal=>penthotals
+phénobarbital=>phénobarbitals
+pipéronal=>pipéronals
+raval=>ravals
+récital=>récitals
+régal=>régals
+rétinal=>rétinals
+rital=>ritals
+roberval=>robervals
+roseval=>rosevals
+salicional=>salicionals
+sal=>sals
+santal=>santals
+saroual=>sarouals
+sial=>sials
+sisal=>sisals
+sonal=>sonals
+tagal=>tagals
+tefal=>tefals
+tergal=>tergals
+thiopental=>thiopentals
+tical=>ticals
+tincal=>tincals
+véronal=>véronals
+zicral=>zicrals
+caracal=>caracals
+chacal=>chacals
+gavial=>gavials
+gayal=>gayals
+narval=>narvals
+quetzal=>quetzals
+rorqual=>rorquals
+serval=>servals
+cantal=>cantals
+emmental=>emmentals
+emmenthal=>emmenthals
+metical=>meticals
+rial=>rials
+riyal=>riyals
+ryal=>ryals
+floréal=>floréals
+germinal=>germinals
+prairial=>prairials
+corral=>corrals
+deal=>deals
+goal=>goals
+autogoal=>autogoals
+revival=>revivals
+serial=>serials
+spiritual=>spirituals
+taal=>taals
+trial=>trials
+
+bail=>baux
+corail=>coraux
+émail=>émaux
+fermail=>fermaux
+soupirail=>soupiraux
+travail=>travaux
+vantail=>vantaux
+vitrail=>vitraux
+
+bijou=>bijoux
+caillou=>cailloux
+chou=>choux
+genou=>genoux
+hibou=>hiboux
+joujou=>joujoux
+pou=>poux
+
+ciel=>cieux
+oeil=>yeux
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Settings.Designer.cs -crlf
+/Settings.settings -crlf
--- /dev/null
+/DbmlRename.cs -crlf
+/DbmlRenameLoader.cs -crlf
+/NameAliasesLoader.cs -crlf
+/SchemaPostprocess.cs -crlf
+/TableAlias.cs -crlf
--- /dev/null
+/AppRunner.cs -crlf
+/CreateDbmlFromSqliteDbTest.cs -crlf
+/CreateEntitiesFromSqliteDbTest.cs -crlf
+/EnglishWordsTest.cs -crlf
+/FrenchWordsTest.cs -crlf
+/NameFormatterTest.cs -crlf
--- /dev/null
+/TableSorter.cs -crlf
--- /dev/null
+/EnvironmentExtension.cs -crlf
+/VariablesExtension.cs -crlf
--- /dev/null
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Resources.Designer.cs -crlf
+/Resources.resx -crlf
+/Settings.Designer.cs -crlf
+/Settings.settings -crlf
--- /dev/null
+/App.config -crlf
+/Program.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/ConnectionStrings.xml -crlf
+/instnwnd.MySql.sql -crlf
+/instnwnd.Oracle.sql -crlf
+/instnwnd.SQLite.sql -crlf
+/instnwnd.SqlServer.sql -crlf
--- /dev/null
+/Northwind.Sqlite+DbSchemaLoader-DbMetal.cs -crlf
+/Northwind.Sqlite+DbSchemaLoader-DbMetal.dbml -crlf
+/Northwind.Sqlite+DbSchemaLoader-sqlmetal.cs -crlf
+/Northwind.Sqlite+DbSchemaLoader-sqlmetal.dbml -crlf
+/Northwind.Sqlite-DbMetal.cs -crlf
+/Northwind.Sqlite-DbMetal.dbml -crlf
+/Northwind.Sqlite-sqlmetal.cs -crlf
+/Northwind.Sqlite-sqlmetal.dbml -crlf
--- /dev/null
+/makefile.build -crlf
executeMode = (int)OciExecuteMode.Default;
}
- if (this.disposed) \r
+ if (this.disposed)
{
throw new InvalidOperationException ("StatementHandle is already disposed.");
}
{
int status = 0;
- if (this.disposed) \r
+ if (this.disposed)
{
throw new InvalidOperationException ("StatementHandle is already disposed.");
}
case OciGlue.OCI_DEFAULT:
moreResults = true;
break;
- case OciGlue.OCI_SUCCESS_WITH_INFO:\r
- //OciErrorInfo ei = ErrorHandle.HandleError ();\r
- //command.Connection.CreateInfoMessage (ei);\r
- moreResults = true;\r
+ case OciGlue.OCI_SUCCESS_WITH_INFO:
+ //OciErrorInfo ei = ErrorHandle.HandleError ();
+ //command.Connection.CreateInfoMessage (ei);
+ moreResults = true;
break;
default:
OciErrorInfo info = ErrorHandle.HandleError ();
0,
OciAttributeType.Transaction,
ErrorHandle);
- if (status != 0) \r
+ if (status != 0)
{
OciErrorInfo info = ErrorHandle.HandleError ();
throw new OracleException (info.ErrorCode, info.ErrorMessage);
try {
status = OciCalls.OCITransCommit (Service, ErrorHandle, 0);
- if (status != 0) \r
+ if (status != 0)
{
OciErrorInfo info = ErrorHandle.HandleError ();
throw new OracleException (info.ErrorCode, info.ErrorMessage);
--- /dev/null
+/OracleCommand.cs -crlf
+/OracleCommandBuilder.cs -crlf
+/OracleConnection.cs -crlf
+/OracleConvert.cs -crlf
+/OracleDataReader.cs -crlf
+/OracleError.cs -crlf
+/OracleErrorCollection.cs -crlf
+/OracleException.cs -crlf
+/OracleParameter.cs -crlf
+/OracleParameterCollection.cs -crlf
+/OracleTransaction.cs -crlf
//\r
// System.Data.OracleClient.OracleCommand\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
// Author:\r
// Rodrigo Moya (rodrigo@ximian.com)\r
// Tim Coleman (tim@timcoleman.com)\r
-// Konstantin Triger <kostat@mainsoft.com>
+// Konstantin Triger <kostat@mainsoft.com>\r
// Boris Kirzner <borisk@mainsoft.com>\r
//\r
// Copyright (C) Rodrigo Moya, 2002\r
-// Copyright (C) Tim Coleman, 2002
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (C) Tim Coleman, 2002 \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
//\r
// System.Data.Oracle.OracleConvert\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
//\r
// System.Data.OracleClient.OracleDataReader\r
//\r
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
// Boris Kirzner <borisk@mainsoft.com>\r
//\r
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System.Data.Common;\r
}\r
}\r
\r
- protected override int GetProviderType(int jdbcType) {
- return (int)OracleConvert.JdbcTypeToOracleType(jdbcType);
+ protected override int GetProviderType(int jdbcType) {\r
+ return (int)OracleConvert.JdbcTypeToOracleType(jdbcType); \r
}\r
\r
protected override IReaderCacheContainer CreateReaderCacheContainer(int jdbcType, int columnIndex) {\r
//\r
// System.Data.SqlClient.SqlException\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.OracleClient {\r
-//\r
-// System.Data.SqlClient.SqlInfoMessageEventArgs\r
+//
+// System.Data.SqlClient.SqlInfoMessageEventArgs
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
//
using System;
-using System.Data;\r
-\r
-namespace System.Data.OracleClient {\r
- /// <summary>\r
- /// Summary description for SqlInfoMessageEventArgs.\r
- /// </summary>\r
+using System.Data;
+
+namespace System.Data.OracleClient {
+ /// <summary>
+ /// Summary description for SqlInfoMessageEventArgs.
+ /// </summary>
public sealed class OracleInfoMessageEventArgs : EventArgs {
#region Fields
}
#endregion // Methods
- }\r
-}\r
+ }
+}
//\r
// System.Data.OracleClient.OracleParameter\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
--- /dev/null
+/TestOracleClient.cs -crlf
--- /dev/null
+/License.txt -crlf
--- /dev/null
+/AssemblyAttributes.cs -crlf
+/Parameterized.System.Data.Services.Client.cs -crlf
+/System.Data.Services.Client.cs -crlf
+/System.Data.Services.Client.txt -crlf
--- /dev/null
+/ArraySet.cs -crlf
+/AtomContentProperty.cs -crlf
+/AtomDataKind.cs -crlf
+/AtomEntry.cs -crlf
+/AtomFeed.cs -crlf
+/AtomMaterializer.cs -crlf
+/AtomMaterializerLog.cs -crlf
+/AtomParser.cs -crlf
+/BaseAsyncResult.cs -crlf
+/BatchStream.cs -crlf
+/BatchStreamState.cs -crlf
+/ChangesetResponse.cs -crlf
+/ClientConvert.cs -crlf
+/ClientType.cs -crlf
+/DataServiceClientException.cs -crlf
+/DataServiceContext.cs -crlf
+/DataServiceEntityAttribute.cs -crlf
+/DataServiceKeyAttribute.cs -crlf
+/DataServiceProtocolVersion.cs -crlf
+/DataServiceQuery.cs -crlf
+/DataServiceQueryContinuation.cs -crlf
+/DataServiceQueryException.cs -crlf
+/DataServiceQueryOfT.cs -crlf
+/DataServiceRequest.cs -crlf
+/DataServiceRequestArgs.cs -crlf
+/DataServiceRequestException.cs -crlf
+/DataServiceRequestOfT.cs -crlf
+/DataServiceResponse.cs -crlf
+/DataServiceStreamResponse.cs -crlf
+/Descriptor.cs -crlf
+/EntityDescriptor.cs -crlf
+/EntityPropertyMappingAttribute.cs -crlf
+/EntityStates.cs -crlf
+/Error.cs -crlf
+/GetReadStreamResult.cs -crlf
+/HasStreamAttribute.cs -crlf
+/LinkDescriptor.cs -crlf
+/MaterializeFromAtom.cs -crlf
+/MediaEntryAttribute.cs -crlf
+/MemberAssignmentAnalysis.cs -crlf
+/MergeOption.cs -crlf
+/MimeTypePropertyAttribute.cs -crlf
+/OpenObject.cs -crlf
+/OpenObjectAttribute.cs -crlf
+/OperationResponse.cs -crlf
+/ProjectionPath.cs -crlf
+/ProjectionPathBuilder.cs -crlf
+/ProjectionPathSegment.cs -crlf
+/ProjectionPlan.cs -crlf
+/ProjectionPlanCompiler.cs -crlf
+/QueryOperationResponseOfT.cs -crlf
+/QueryResponse.cs -crlf
+/QueryResult.cs -crlf
+/ReadingWritingEntityEventArgs.cs -crlf
+/ReferenceEqualityComparer.cs -crlf
+/SaveChangesOptions.cs -crlf
+/SendingRequestEventArgs.cs -crlf
+/Util.cs -crlf
+/WebUtil.cs -crlf
+/XmlUtil.cs -crlf
--- /dev/null
+/DataServiceExpressionVisitor.cs -crlf
+/DataServiceQueryProvider.cs -crlf
+/Evaluator.cs -crlf
+/ExpressionNormalizer.cs -crlf
+/ExpressionVisitor.cs -crlf
+/ExpressionWriter.cs -crlf
+/FilterQueryOptionExpression.cs -crlf
+/InputBinder.cs -crlf
+/InputReferenceExpression.cs -crlf
+/NavigationPropertySingletonExpression.cs -crlf
+/OrderByQueryOptionExpression.cs -crlf
+/ParameterReplacerVisitor.cs -crlf
+/PathBox.cs -crlf
+/ProjectionAnalyzer.cs -crlf
+/ProjectionQueryOptionExpression.cs -crlf
+/ProjectionRewriter.cs -crlf
+/QueryComponents.cs -crlf
+/QueryOptionExpression.cs -crlf
+/ReflectionUtil.cs -crlf
+/ResourceBinder.cs -crlf
+/ResourceExpression.cs -crlf
+/ResourceExpressionType.cs -crlf
+/ResourceSetExpression.cs -crlf
+/SkipQueryOptionExpression.cs -crlf
+/TakeQueryOptionExpression.cs -crlf
+/TypeSystem.cs -crlf
+/UriHelper.cs -crlf
+/UriWriter.cs -crlf
--- /dev/null
+/BindingEntityInfo.cs -crlf
+/BindingGraph.cs -crlf
+/BindingObserver.cs -crlf
+/BindingUtils.cs -crlf
+/DataServiceCollectionOfT.cs -crlf
+/DataServiceEntityAttribute.cs -crlf
+/DataServiceSaveChangesEventArgs.cs -crlf
+/EntityChangedParams.cs -crlf
+/EntityCollectionChangedParams.cs -crlf
+/LoadCompletedEventArgs.cs -crlf
--- /dev/null
+/EpmSyndicationContentSerializer.cs -crlf
--- /dev/null
+/XmlAtomErrorReader.cs -crlf
+/XmlWrappingReader.cs -crlf
--- /dev/null
+/AssemblyAttributes.cs -crlf
+/Parameterized.System.Data.Services.Client.cs -crlf
+/System.Data.Services.Client.cs -crlf
+/System.Data.Services.Client.txt -crlf
--- /dev/null
+/HttpStack.cs -crlf
--- /dev/null
+/CaseInsensitiveAscii.cs -crlf
+/ClientHttpWebRequest.cs -crlf
+/ClientHttpWebResponse.cs -crlf
+/ClientWebHeaderCollection.cs -crlf
+/HeaderInfo.cs -crlf
+/HeaderInfoTable.cs -crlf
+/HttpHeaderToName.cs -crlf
+/HttpRequestHeader.cs -crlf
+/HttpRequestHeaderEnumToName.cs -crlf
+/HttpStatusCode.cs -crlf
+/HttpWebRequest.cs -crlf
+/HttpWebResponse.cs -crlf
+/NameValueFromDictionary.cs -crlf
+/ScriptObjectUtility.cs -crlf
+/ScriptXmlHttpRequest.cs -crlf
+/ValidationHelper.cs -crlf
+/WebException.cs -crlf
+/WebExceptionStatus.cs -crlf
+/WebHeaderCollection.cs -crlf
+/WebHeaderCollectionType.cs -crlf
+/WebParseError.cs -crlf
+/WebRequest.cs -crlf
+/WebResponse.cs -crlf
+/XHRHttpWebRequest.cs -crlf
+/XHRHttpWebResponse.cs -crlf
+/XHRWebHeaderCollection.cs -crlf
--- /dev/null
+/HttpProcessUtility.cs -crlf
+/XmlConstants.cs -crlf
--- /dev/null
+/EpmContentSerializerBase.cs -crlf
+/EpmCustomContentSerializer.cs -crlf
+/EpmCustomContentWriterNodeData.cs -crlf
+/EpmSourcePathSegment.cs -crlf
+/EpmSourceTree.cs -crlf
+/EpmTargetPathSegment.cs -crlf
+/EpmTargetTree.cs -crlf
--- /dev/null
+/WebConvert.cs -crlf
--- /dev/null
+/EntityPropertyMappingInfo.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/ChangeInterceptorAttribute.cs -crlf
+/DataService.cs -crlf
+/DataServiceException.cs -crlf
+/DataServiceHost.cs -crlf
+/DataServiceHostFactory.cs -crlf
+/ETagAttribute.cs -crlf
+/EntitySetRights.cs -crlf
+/ExpandSegment.cs -crlf
+/ExpandSegmentCollection.cs -crlf
+/HandleExceptionArgs.cs -crlf
+/IDataServiceConfiguration.cs -crlf
+/IDataServiceHost.cs -crlf
+/IExpandProvider.cs -crlf
+/IExpandedResult.cs -crlf
+/IRequestHandler.cs -crlf
+/IUpdatable.cs -crlf
+/IgnorePropertiesAttribute.cs -crlf
+/MimeTypeAttribute.cs -crlf
+/ProcessRequestArgs.cs -crlf
+/QueryInterceptorAttribute.cs -crlf
+/ServiceOperationRights.cs -crlf
+/SingleResultAttribute.cs -crlf
+/UpdateOperations.cs -crlf
--- /dev/null
+/ChangeInterceptorAttributeTests.cs -crlf
+/DataServiceExceptionTests.cs -crlf
+/DataServiceTests.cs -crlf
+/ETagAttributeTests.cs -crlf
+/ExpandSegmentCollectionTests.cs -crlf
+/ExpandSegmentTests.cs -crlf
+/IgnorePropertiesAttributeTests.cs -crlf
+/MimeTypeAttributeTests.cs -crlf
+/QueryInterceptorAttributeTests.cs -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/System.Data.xml -crlf
--- /dev/null
+/wrappers.cs -crlf
--- /dev/null
+/DbMetaDataCache.cs -crlf
+/DbTypes.cs -crlf
+/ExceptionHelper.cs -crlf
+/Index.cs -crlf
+/Key.cs -crlf
--- /dev/null
+/GlobalConfig.cs -crlf
+/ObjectNameResolutionSectionHandler.cs -crlf
+/ObjectNameResolver.cs -crlf
+/ObjectNameResolversCollection.cs -crlf
--- /dev/null
+/OleDbCommand.cs -crlf
+/OleDbConvert.cs -crlf
+/OleDbDataAdapter.cs -crlf
+/OleDbException.cs -crlf
+/OleDbInfoMessageEventArgs.cs -crlf
+/OleDbInfoMessageEventHandler.cs -crlf
+/OleDbLiteral.cs -crlf
+/OleDbPermission.cs -crlf
+/OleDbPermissionAttribute.cs -crlf
+/OleDbRowUpdatedEventArgs.cs -crlf
+/OleDbRowUpdatedEventHandler.cs -crlf
+/OleDbRowUpdatingEventArgs.cs -crlf
+/OleDbRowUpdatingEventHandler.cs -crlf
+/OleDbSchemaGuid.cs -crlf
+/OleDbTransaction.cs -crlf
+/OleDbType.cs -crlf
//\r
// System.Data.OleDb.OleDbCommand\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
// Authors:\r
// Rodrigo Moya (rodrigo@ximian.com)\r
// Tim Coleman (tim@timcoleman.com)\r
-// Konstantin Triger <kostat@mainsoft.com>
+// Konstantin Triger <kostat@mainsoft.com>\r
// Boris Kirzner <borisk@mainsoft.com>\r
//\r
// Copyright (C) Rodrigo Moya, 2002\r
// Copyright (C) Tim Coleman, 2002\r
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
//\r
// System.Data.OleDb.OleDbException\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
// Tim Coleman (tim@timcoleman.com)\r
//\r
// Copyright (C) Rodrigo Moya, 2002\r
-// Copyright (C) Tim Coleman, 2002
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (C) Tim Coleman, 2002 \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
//\r
// System.Data.OleDb.OleDbType\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.OleDb\r
--- /dev/null
+/AbstractDBCommand.cs -crlf
+/AbstractDBConnection.cs -crlf
+/AbstractDataReader.cs -crlf
+/AbstractDbError.cs -crlf
+/AbstractDbErrorCollection.cs -crlf
+/AbstractDbException.cs -crlf
+/AbstractTransaction.cs -crlf
+/DbConvert.cs -crlf
+/ParameterMetadataWrapper.cs -crlf
+/ReaderCache.cs -crlf
+/regex.cs -crlf
//\r
// System.Data.ProviderBase.AbstractDbCommand\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
{\r
public abstract class AbstractDbCommand : DbCommand, ICloneable\r
{\r
- #region ProcedureColumnCache
-
+ #region ProcedureColumnCache\r
+\r
internal sealed class ProcedureColumnCache : AbstractDbMetaDataCache\r
{\r
internal ArrayList GetProcedureColumns(AbstractDBConnection connection, String commandText,AbstractDbCommand command) \r
cache[key] = col;\r
return col; \r
}\r
- }
-
- #endregion
-
- #region SqlStatementsHelper
-
- internal sealed class SqlStatementsHelper
- {
- #region Fields
+ }\r
+\r
+ #endregion\r
+\r
+ #region SqlStatementsHelper\r
+\r
+ internal sealed class SqlStatementsHelper\r
+ {\r
+ #region Fields\r
#if USE_DOTNET_REGEXP \r
internal static readonly Regex NamedParameterStoredProcedureRegExp = new Regex(@"^\s*{?\s*((?<RETVAL>@\w+)\s*=\s*)?call\s+(?<PROCNAME>(((\[[^\]]*\])|([^\.\(])*)\s*\.\s*){0,2}(\[[^\]]*\]|((\s*[^\.\(\)\{\}\s])+)))\s*(\(\s*(?<USERPARAM>((""([^""]|(""""))*"")|('([^']|(''))*')|[^,])*)?\s*(,\s*(?<USERPARAM>((""([^""]|(""""))*"")|('([^']|(''))*')|[^,])*)\s*)*\))?\s*}?\s*$", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture);\r
internal static readonly Regex SimpleParameterStoredProcedureRegExp = new Regex(@"^\s*{?\s*((?<RETVAL>\?)\s*=\s*)?call\s+(?<PROCNAME>(((\[[^\]]*\])|([^\.\(])*)\s*\.\s*){0,2}(\[[^\]]*\]|((\s*[^\.\(\)\{\}\s])+)))\s*(\(\s*(?<USERPARAM>((""([^""]|(""""))*"")|('([^']|(''))*')|[^,])*)?\s*(,\s*(?<USERPARAM>((""([^""]|(""""))*"")|('([^']|(''))*')|[^,])*)\s*)*\))?\s*}?\s*$", RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture);\r
internal static readonly SimpleRegex CompoundStatementSplitterReqExp = new CharacterSplitterRegex(';');\r
internal static readonly SimpleRegex ProcedureParameterSplitterReqExp = new CharacterSplitterRegex(',');\r
\r
- #endregion // Fields
- }
-
- #endregion // SqlStatementsHelper
+ #endregion // Fields\r
+ }\r
+\r
+ #endregion // SqlStatementsHelper\r
\r
#region Fields\r
\r
- string _commandText;
- int _commandTimeout;
- CommandType _commandType;
- bool _designTimeVisible;
+ string _commandText;\r
+ int _commandTimeout;\r
+ CommandType _commandType;\r
+ bool _designTimeVisible;\r
UpdateRowSource _updatedRowSource;\r
\r
private DbParameterCollection _parameters;\r
_commandText = cmdText;\r
_transaction = transaction;\r
\r
- _commandTimeout = 30;
- _commandType = CommandType.Text;
- _designTimeVisible = true;
+ _commandTimeout = 30;\r
+ _commandType = CommandType.Text;\r
+ _designTimeVisible = true;\r
_updatedRowSource = UpdateRowSource.Both;\r
\r
_isCommandPrepared = false;\r
#endregion // Constructors\r
\r
#region Properties\r
-
- public override int CommandTimeout {
- get { return _commandTimeout; }
- set { _commandTimeout = value; }
- }
-
- public override CommandType CommandType {
- get { return _commandType; }
- set { _commandType = value; }
- }
-
- public override bool DesignTimeVisible {
- get { return _designTimeVisible; }
- set { _designTimeVisible = value; }
- }
-
- public override UpdateRowSource UpdatedRowSource {
- get { return _updatedRowSource; }
- set { _updatedRowSource = value; }
+\r
+ public override int CommandTimeout {\r
+ get { return _commandTimeout; }\r
+ set { _commandTimeout = value; }\r
+ }\r
+\r
+ public override CommandType CommandType {\r
+ get { return _commandType; }\r
+ set { _commandType = value; }\r
+ }\r
+\r
+ public override bool DesignTimeVisible {\r
+ get { return _designTimeVisible; }\r
+ set { _designTimeVisible = value; }\r
+ } \r
+\r
+ public override UpdateRowSource UpdatedRowSource {\r
+ get { return _updatedRowSource; }\r
+ set { _updatedRowSource = value; }\r
}\r
\r
protected override DbParameterCollection DbParameterCollection\r
\r
protected internal abstract SystemException CreateException(SQLException e);\r
\r
- public override int ExecuteNonQuery ()
- {
- IDataReader reader = null;
- try {
- reader = ExecuteReader ();
- }
- finally {
- if (reader != null)
- reader.Close ();
- }
- return reader.RecordsAffected;
- }
-
- public override object ExecuteScalar ()
- {
- IDataReader reader = ExecuteReader(CommandBehavior.SequentialAccess);
-
- try {
- do {
- if (reader.FieldCount > 0 && reader.Read ())
- return reader.GetValue (0);
- }
- while (reader.NextResult ());
- return null;
- } finally {
- reader.Close();
- }
+ public override int ExecuteNonQuery ()\r
+ {\r
+ IDataReader reader = null;\r
+ try {\r
+ reader = ExecuteReader ();\r
+ }\r
+ finally {\r
+ if (reader != null)\r
+ reader.Close (); \r
+ }\r
+ return reader.RecordsAffected;\r
}\r
\r
- public virtual void ResetCommandTimeout ()
- {
- _commandTimeout = 30;
+ public override object ExecuteScalar ()\r
+ {\r
+ IDataReader reader = ExecuteReader(CommandBehavior.SequentialAccess);\r
+ \r
+ try {\r
+ do {\r
+ if (reader.FieldCount > 0 && reader.Read ())\r
+ return reader.GetValue (0); \r
+ }\r
+ while (reader.NextResult ());\r
+ return null;\r
+ } finally {\r
+ reader.Close();\r
+ }\r
+ }\r
+\r
+ public virtual void ResetCommandTimeout ()\r
+ {\r
+ _commandTimeout = 30;\r
}\r
\r
public override void Cancel()\r
}\r
}\r
\r
- protected virtual void BindOutputParameter(AbstractDbParameter parameter, int parameterIndex)
- {
- parameter.Validate();
+ protected virtual void BindOutputParameter(AbstractDbParameter parameter, int parameterIndex)\r
+ {\r
+ parameter.Validate();\r
int jdbcType = (int)parameter.JdbcType; \r
// java parameters are 1 based, while .net are 0 based\r
parameterIndex++;\r
}\r
else {\r
callableStatement.registerOutParameter(parameterIndex, jdbcType);\r
- }
+ }\r
}\r
\r
- private void FillOutputParameters()
- {
- if (!(_statement is CallableStatement)) {
- return;
- }
- for(int i = 0; i < InternalParameters.Count; i++) {
- AbstractDbParameter parameter = (AbstractDbParameter)InternalParameters[i];
- ParameterDirection direction = parameter.Direction;
- if (((direction & ParameterDirection.Output) != 0) && !SkipParameter(parameter)) {
- FillOutputParameter(parameter, i);
- }
- // drop jdbc type of out parameter, since it possibly was updated in ExecuteReader
- parameter.IsJdbcTypeSet = false;
- }
+ private void FillOutputParameters()\r
+ { \r
+ if (!(_statement is CallableStatement)) {\r
+ return;\r
+ }\r
+ for(int i = 0; i < InternalParameters.Count; i++) {\r
+ AbstractDbParameter parameter = (AbstractDbParameter)InternalParameters[i];\r
+ ParameterDirection direction = parameter.Direction;\r
+ if (((direction & ParameterDirection.Output) != 0) && !SkipParameter(parameter)) { \r
+ FillOutputParameter(parameter, i);\r
+ }\r
+ // drop jdbc type of out parameter, since it possibly was updated in ExecuteReader\r
+ parameter.IsJdbcTypeSet = false;\r
+ }\r
}\r
\r
protected virtual void FillOutputParameter(DbParameter parameter, int index)\r
}\r
}\r
\r
- throw new ArgumentException(
+ throw new ArgumentException(\r
String.Format("Unknown provider name '{0}'", provider), "ConnectionString");\r
}\r
\r
-//\r
-// System.Data.ProviderBase.AbstractDbParameter\r
+//
+// System.Data.ProviderBase.AbstractDbParameter
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//\r
-\r
-\r
-using System;\r
-using System.Data;\r
-using System.Data.Common;\r
-\r
-using java.sql;\r
-\r
-namespace System.Data.ProviderBase\r
-{\r
- public abstract class AbstractDbParameter : DbParameter, IDbDataParameter, ICloneable\r
- {\r
- #region Fields\r
-\r
- byte _precision;\r
- byte _scale;\r
- protected DataRowVersion _sourceVersion;\r
- private int _jdbcType;\r
- bool _isDbTypeSet;\r
- bool _isJdbcTypeSet;\r
- object _convertedValue;\r
-\r
+//
+
+
+using System;
+using System.Data;
+using System.Data.Common;
+
+using java.sql;
+
+namespace System.Data.ProviderBase
+{
+ public abstract class AbstractDbParameter : DbParameter, IDbDataParameter, ICloneable
+ {
+ #region Fields
+
+ byte _precision;
+ byte _scale;
+ protected DataRowVersion _sourceVersion;
+ private int _jdbcType;
+ bool _isDbTypeSet;
+ bool _isJdbcTypeSet;
+ object _convertedValue;
+
string _parameterName;
ParameterDirection _direction = ParameterDirection.Input;
- int _size;\r
+ int _size;
object _value;
bool _isNullable;
int _offset;
string _sourceColumn;
- DbParameterCollection _parent = null;\r
-\r
- #endregion // Fields\r
-\r
+ DbParameterCollection _parent = null;
+
+ #endregion // Fields
+
#region Constructors
[MonoTODO]
{
}
- #endregion // Constructors\r
-\r
+ #endregion // Constructors
+
#region Properties
public override ParameterDirection Direction {
public byte Precision
{
- get { return _precision; }\r
+ get { return _precision; }
set { _precision = value; }
}
public byte Scale
{
- get { return _scale; }\r
+ get { return _scale; }
set { _scale = value; }
}
-\r
- public override DataRowVersion SourceVersion\r
- {\r
- get { return _sourceVersion; }\r
- set { _sourceVersion = value; }\r
+
+ public override DataRowVersion SourceVersion
+ {
+ get { return _sourceVersion; }
+ set { _sourceVersion = value; }
}
protected internal int JdbcType
}
}
- internal object ConvertedValue\r
- {\r
- get { \r
- if (_convertedValue == null) {\r
- object value = Value;\r
- _convertedValue = ((value != null) && (value != DBNull.Value)) ? ConvertValue(value) : value;\r
- }\r
- return _convertedValue;\r
- }\r
+ internal object ConvertedValue
+ {
+ get {
+ if (_convertedValue == null) {
+ object value = Value;
+ _convertedValue = ((value != null) && (value != DBNull.Value)) ? ConvertValue(value) : value;
+ }
+ return _convertedValue;
+ }
}
public override object Value {
//DbParameter overrides
- public override bool SourceColumnNullMapping {\r
- get {\r
- throw new NotImplementedException();\r
- }\r
- set {\r
- throw new NotImplementedException();\r
- }\r
- }\r
+ public override bool SourceColumnNullMapping {
+ get {
+ throw new NotImplementedException();
+ }
+ set {
+ throw new NotImplementedException();
+ }
+ }
#endregion // Properties
#region Methods
- public override String ToString()\r
- {\r
- return ParameterName;\r
+ public override String ToString()
+ {
+ return ParameterName;
}
- protected internal abstract void SetParameterName(ResultSet res);\r
-\r
- protected internal abstract void SetParameterDbType(ResultSet res);\r
-\r
+ protected internal abstract void SetParameterName(ResultSet res);
+
+ protected internal abstract void SetParameterDbType(ResultSet res);
+
protected internal abstract void SetSpecialFeatures(ResultSet res);
public virtual object Clone()
- {\r
- AbstractDbParameter other = (AbstractDbParameter) MemberwiseClone ();\r
- other._parent = null;\r
+ {
+ AbstractDbParameter other = (AbstractDbParameter) MemberwiseClone ();
+ other._parent = null;
return other;
}
internal void SetParameterPrecisionAndScale(ResultSet res)
{
- int jdbcType = res.getInt("DATA_TYPE");\r
- if(jdbcType == java.sql.Types.DECIMAL || jdbcType == java.sql.Types.NUMERIC) {\r
- Precision = (byte)res.getInt("PRECISION");\r
- Scale = (byte)res.getInt("SCALE");\r
+ int jdbcType = res.getInt("DATA_TYPE");
+ if(jdbcType == java.sql.Types.DECIMAL || jdbcType == java.sql.Types.NUMERIC) {
+ Precision = (byte)res.getInt("PRECISION");
+ Scale = (byte)res.getInt("SCALE");
}
}
//DbParameter overrides
- public override void ResetDbType() {\r
- throw new NotImplementedException();\r
+ public override void ResetDbType() {
+ throw new NotImplementedException();
}
- #endregion // Methods\r
- }\r
-}\r
-\r
+ #endregion // Methods
+ }
+}
+
\r
#region Properties\r
\r
- public override int Depth {
- get { return 0; }
+ public override int Depth {\r
+ get { return 0; }\r
}\r
\r
public override bool HasRows {\r
_isClosed = true;\r
}\r
\r
- public override IEnumerator GetEnumerator ()
- {
- bool closeReader = (Behavior & CommandBehavior.CloseConnection) != 0;
- return new DbEnumerator (this , closeReader);
+ public override IEnumerator GetEnumerator ()\r
+ {\r
+ bool closeReader = (Behavior & CommandBehavior.CloseConnection) != 0;\r
+ return new DbEnumerator (this , closeReader);\r
}\r
\r
public override bool NextResult()\r
//\r
// System.Data.ProviderBase.AbstractDbException\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
\r
-//\r
-// System.Data.Common.AbstractDbParameterCollection\r
+//
+// System.Data.Common.AbstractDbParameterCollection
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//\r
-\r
-\r
-using System;\r
-using System.Data.Common;\r
-using System.Collections;\r
-\r
-namespace System.Data.ProviderBase\r
-{\r
- public abstract class AbstractDbParameterCollection : DbParameterCollection\r
- {\r
- #region Fields\r
-\r
- readonly AbstractDbCommand _parent;\r
- readonly ArrayList _list = new ArrayList();\r
-\r
- #endregion // Fields\r
-\r
- #region Constructors\r
-\r
- public AbstractDbParameterCollection(DbCommand parent)\r
- {\r
- _parent = (AbstractDbCommand)parent;\r
- }\r
-\r
- #endregion // Constructors\r
-\r
+//
+
+
+using System;
+using System.Data.Common;
+using System.Collections;
+
+namespace System.Data.ProviderBase
+{
+ public abstract class AbstractDbParameterCollection : DbParameterCollection
+ {
+ #region Fields
+
+ readonly AbstractDbCommand _parent;
+ readonly ArrayList _list = new ArrayList();
+
+ #endregion // Fields
+
+ #region Constructors
+
+ public AbstractDbParameterCollection(DbCommand parent)
+ {
+ _parent = (AbstractDbCommand)parent;
+ }
+
+ #endregion // Constructors
+
#region Properties
public override int Count {
get { return _list.SyncRoot; }
}
- #endregion // Properties\r
-\r
- #region Methods\r
-\r
+ #endregion // Properties
+
+ #region Methods
+
public override int Add (object value) {
Validate (-1, value);
OnSchemaChanging();
return (DbParameter) _list [index];
}
-#if NET_2_0\r
- protected override DbParameter GetParameter (string parameterName) {\r
- return GetParameter (IndexOf (parameterName));\r
- }\r
-\r
- protected override void SetParameter (string parameterName, DbParameter value) {\r
- SetParameter (IndexOf (parameterName), value);\r
+#if NET_2_0
+ protected override DbParameter GetParameter (string parameterName) {
+ return GetParameter (IndexOf (parameterName));
+ }
+
+ protected override void SetParameter (string parameterName, DbParameter value) {
+ SetParameter (IndexOf (parameterName), value);
}
#endif
((AbstractDbParameter)value).Parent = this;
_list [index] = value;
- }\r
-\r
- protected internal void OnSchemaChanging()\r
- {\r
- if (_parent != null) {\r
- _parent.OnSchemaChanging();\r
- }\r
- }\r
-\r
- #endregion // Methods\r
- }\r
-}\r
+ }
+
+ protected internal void OnSchemaChanging()
+ {
+ if (_parent != null) {
+ _parent.OnSchemaChanging();
+ }
+ }
+
+ #endregion // Methods
+ }
+}
//\r
// System.Data.ProviderBase.AbstractTransaction\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System.Data.Common;\r
//\r
// System.Data.ProviderBase.ReaderCache.cs\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
//\r
// System.Data.ProviderBase.regex.cs\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System.Data;\r
--- /dev/null
+/SqlClientPermission.cs -crlf
+/SqlClientPermissionAttribute.cs -crlf
+/SqlCommand.resx -crlf
+/SqlCommandBuilder.cs -crlf
+/SqlConnection.resx -crlf
+/SqlConvert.cs -crlf
+/SqlDataAdapter.cs -crlf
+/SqlException.cs -crlf
+/SqlInfoMessageEventHandler.cs -crlf
+/SqlRowUpdatedEventArgs.cs -crlf
+/SqlRowUpdatedEventHandler.cs -crlf
+/SqlRowUpdatingEventArgs.cs -crlf
+/SqlRowUpdatingEventHandler.cs -crlf
-//\r
-// System.Data.SqlClient.MetaType\r
+//
+// System.Data.SqlClient.MetaType
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
-//\r
-// System.Data.SqlClient.SqlCollation\r
+//
+// System.Data.SqlClient.SqlCollation
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
// Author:\r
// Tim Coleman (tim@timcoleman.com)\r
//\r
-// Copyright (C) Tim Coleman, 2002
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (C) Tim Coleman, 2002 \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
//\r
// System.Data.SqlClient.SqlConvert\r
//\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
{\r
// FIXME : other java.sql.Type\r
// Types.ARRAY\r
- if(Types.BIGINT == jdbcType) return SqlDbType.BigInt;
- if(Types.BINARY == jdbcType) return SqlDbType.Binary;
- if(Types.BIT == jdbcType) return SqlDbType.Bit;
- if(Types.BLOB == jdbcType) return SqlDbType.Binary;
- // Types.BOOLEAN
- if(Types.CHAR == jdbcType) return SqlDbType.Char;
- if(Types.CLOB == jdbcType) return SqlDbType.Binary;
- if(Types.DATE == jdbcType) return SqlDbType.DateTime;
- if(Types.DECIMAL == jdbcType) return SqlDbType.Decimal;
- // Types.DISTINCT
- if(Types.DOUBLE == jdbcType) return SqlDbType.Float;
- if(Types.FLOAT == jdbcType) return SqlDbType.Float;
- if(Types.INTEGER == jdbcType) return SqlDbType.Int;
- // Types.JAVA_OBJECT
- if(Types.LONGVARBINARY == jdbcType) return SqlDbType.Image;
- if(Types.LONGVARCHAR == jdbcType) return SqlDbType.Text;
- // Types.NULL
- if(Types.NUMERIC == jdbcType) return SqlDbType.Decimal;
- if(Types.REAL == jdbcType) return SqlDbType.Real;
- // Types.REF
- if(Types.SMALLINT == jdbcType) return SqlDbType.SmallInt;
- // Types.STRUCT
- if(Types.TIME == jdbcType) return SqlDbType.DateTime;
- if(Types.TIMESTAMP == jdbcType) return SqlDbType.DateTime;
- if(Types.TINYINT == jdbcType) return SqlDbType.TinyInt;
- if(Types.VARBINARY == jdbcType) return SqlDbType.VarBinary;
- if(Types.VARCHAR == jdbcType) return SqlDbType.NVarChar;
+ if(Types.BIGINT == jdbcType) return SqlDbType.BigInt;\r
+ if(Types.BINARY == jdbcType) return SqlDbType.Binary;\r
+ if(Types.BIT == jdbcType) return SqlDbType.Bit;\r
+ if(Types.BLOB == jdbcType) return SqlDbType.Binary;\r
+ // Types.BOOLEAN\r
+ if(Types.CHAR == jdbcType) return SqlDbType.Char;\r
+ if(Types.CLOB == jdbcType) return SqlDbType.Binary;\r
+ if(Types.DATE == jdbcType) return SqlDbType.DateTime;\r
+ if(Types.DECIMAL == jdbcType) return SqlDbType.Decimal;\r
+ // Types.DISTINCT\r
+ if(Types.DOUBLE == jdbcType) return SqlDbType.Float;\r
+ if(Types.FLOAT == jdbcType) return SqlDbType.Float;\r
+ if(Types.INTEGER == jdbcType) return SqlDbType.Int;\r
+ // Types.JAVA_OBJECT\r
+ if(Types.LONGVARBINARY == jdbcType) return SqlDbType.Image;\r
+ if(Types.LONGVARCHAR == jdbcType) return SqlDbType.Text;\r
+ // Types.NULL\r
+ if(Types.NUMERIC == jdbcType) return SqlDbType.Decimal;\r
+ if(Types.REAL == jdbcType) return SqlDbType.Real;\r
+ // Types.REF\r
+ if(Types.SMALLINT == jdbcType) return SqlDbType.SmallInt;\r
+ // Types.STRUCT\r
+ if(Types.TIME == jdbcType) return SqlDbType.DateTime;\r
+ if(Types.TIMESTAMP == jdbcType) return SqlDbType.DateTime;\r
+ if(Types.TINYINT == jdbcType) return SqlDbType.TinyInt;\r
+ if(Types.VARBINARY == jdbcType) return SqlDbType.VarBinary;\r
+ if(Types.VARCHAR == jdbcType) return SqlDbType.NVarChar;\r
return SqlDbType.Variant;\r
}\r
\r
// Tim Coleman (tim@timcoleman.com)\r
//\r
// (C) Ximian, Inc 2002\r
-// Copyright (C) 2002 Tim Coleman
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Copyright (C) 2002 Tim Coleman \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
-//\r
-// System.Data.SqlClient.SqlError\r
+//
+// System.Data.SqlClient.SqlError
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
//\r
// System.Data.SqlClient.SqlException\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlClient\r
-//\r
-// System.Data.SqlClient.SqlInfoMessageEventArgs\r
+//
+// System.Data.SqlClient.SqlInfoMessageEventArgs
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
//
using System;
-using System.Data;\r
-\r
-namespace System.Data.SqlClient\r
-{\r
- /// <summary>\r
- /// Summary description for SqlInfoMessageEventArgs.\r
- /// </summary>\r
+using System.Data;
+
+namespace System.Data.SqlClient
+{
+ /// <summary>
+ /// Summary description for SqlInfoMessageEventArgs.
+ /// </summary>
public sealed class SqlInfoMessageEventArgs : EventArgs
{
#region Fields
#region Properties
- public SqlErrorCollection Errors \r
+ public SqlErrorCollection Errors
{
get { return errors; }
}
- public string Message \r
+ public string Message
{
get { return errors[0].Message; }
}
- public string Source \r
+ public string Source
{
get { return errors[0].Source; }
}
}
#endregion // Methods
- }\r
-}\r
+ }
+}
--- /dev/null
+/SqlByte.cs -crlf
+/SqlCompareOptions.cs -crlf
+/SqlDateTime.cs -crlf
+/SqlDecimal.cs -crlf
+/SqlDouble.cs -crlf
+/SqlGuid.cs -crlf
+/SqlInt16.cs -crlf
+/SqlInt32.cs -crlf
+/SqlInt64.cs -crlf
+/SqlMoney.cs -crlf
+/SqlSingle.cs -crlf
+/SqlString.cs -crlf
-// System.Data.SqlTypes.INullable\r
+// System.Data.SqlTypes.INullable
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
-// System.Data.SqlTypes.SqlBinary\r
+// System.Data.SqlTypes.SqlBinary
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
-// System.Data.SqlTypes.SqlBoolean\r
+// System.Data.SqlTypes.SqlBoolean
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
// System.Data.SqlTypes.SqlByte\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlDateTime\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlDecimal\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlDouble\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlGuid\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
\r
public int CompareTo(Object obj)\r
{\r
- if (obj == null)
- return 1;
-
- if (obj is SqlGuid)
- {
- SqlGuid g = (SqlGuid)obj;
-
- if (g.IsNull)
- return 1;
- if (this.IsNull)
- return -1;
-
- return this._value.CompareTo(g._value);
- }
-
- throw new ArgumentException("parameter obj is not SqlGuid : " + obj.GetType().Name);
+ if (obj == null)\r
+ return 1;\r
+\r
+ if (obj is SqlGuid)\r
+ {\r
+ SqlGuid g = (SqlGuid)obj;\r
+\r
+ if (g.IsNull)\r
+ return 1;\r
+ if (this.IsNull)\r
+ return -1;\r
+\r
+ return this._value.CompareTo(g._value);\r
+ }\r
+\r
+ throw new ArgumentException("parameter obj is not SqlGuid : " + obj.GetType().Name);\r
\r
}\r
\r
\r
public override bool Equals(Object obj)\r
{\r
- if (obj == null)
- return false;
-
- if (obj is SqlGuid)
- {
- SqlGuid g = (SqlGuid)obj;
-
- if (IsNull && g.IsNull)
- return true;
-
- if (IsNull || g.IsNull)
- return false;
-
- return _value == g._value;
- }
-
+ if (obj == null)\r
+ return false;\r
+\r
+ if (obj is SqlGuid)\r
+ {\r
+ SqlGuid g = (SqlGuid)obj;\r
+\r
+ if (IsNull && g.IsNull)\r
+ return true;\r
+\r
+ if (IsNull || g.IsNull)\r
+ return false;\r
+\r
+ return _value == g._value;\r
+ }\r
+\r
return false;\r
}\r
\r
public override String ToString()\r
{\r
- if (IsNull)
- return "null";
-
-
+ if (IsNull)\r
+ return "null";\r
+\r
+\r
return _value.ToString();\r
}\r
\r
// System.Data.SqlTypes.SqlInt16\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlInt32\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlInt64\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlMoney\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
-// System.Data.SqlTypes.SqlNullValueException\r
+// System.Data.SqlTypes.SqlNullValueException
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
// System.Data.SqlTypes.SqlSingle\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
// System.Data.SqlTypes.SqlString\r
-//
-// Authors:
-// Konstantin Triger <kostat@mainsoft.com>
-// Boris Kirzner <borisk@mainsoft.com>
-//
-// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// Authors:\r
+// Konstantin Triger <kostat@mainsoft.com>\r
+// Boris Kirzner <borisk@mainsoft.com>\r
+// \r
+// (C) 2005 Mainsoft Corporation (http://www.mainsoft.com)\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
namespace System.Data.SqlTypes\r
-// System.Data.SqlTypes.SqlTruncateException\r
+// System.Data.SqlTypes.SqlTruncateException
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
-//\r
-// System.Data.SqlTypes.SqlTypeException\r
+//
+// System.Data.SqlTypes.SqlTypeException
//
// Authors:
// Konstantin Triger <kostat@mainsoft.com>
--- /dev/null
+/DataColumn.cs -crlf
+/DataRelationPropertyDescriptor.cs -crlf
+/DataRowView.cs -crlf
+/DataSet.cs -crlf
+/DataTable.cs -crlf
+/DataView.cs -crlf
+/DataViewManager.cs -crlf
+/ExpressionElement.cs -crlf
+/RelatedDataView.cs -crlf
+/Res.cs -crlf
+/XmlDataInferenceLoader.cs -crlf
+/XmlDataReader.cs -crlf
+2010-07-23 Veerapuram Varadhan <v.varadhan@gmail.com>
+
+ ** Fixes #623451
+ * DataColumnCollection.cs (MoveColumn): Fix shifting of DataColumn
+ according to the direction of movement.
+
2010-06-23 Veerapuram Varadhan <vvaradhan@novell.com>
** Fixes #581679
int start = newOrdinal > oldOrdinal ? oldOrdinal : newOrdinal;
int end = newOrdinal > oldOrdinal ? newOrdinal : oldOrdinal;
int direction = newOrdinal > oldOrdinal ? 1 : (-1);
+
+ // swap ordinals as per direction of column movement
+ if (direction < 0) {
+ start = start + end;
+ end = start - end;
+ start -= end;
+ }
DataColumn currColumn = this [start];
- for (int i = start; i < end; i += direction) {
+ for (int i = start; (direction>0 ? i<end : i>end); i += direction) {
List [i] = List [i+direction];
((DataColumn) List [i]).Ordinal = i;
}
--- /dev/null
+/MySqlTestBed.dll.config -crlf
+/OdbcTest.cs -crlf
+/TestExecuteScalar.cs -crlf
+/TestSqlConnection.cs -crlf
+/TestSqlDataReader.cs -crlf
+/TestSqlParameters.cs -crlf
--- /dev/null
+/README -crlf
--- /dev/null
+/ChangeLog -crlf
+/DateComparisonTest.cs -crlf
// used internally by ReadData() to read each result set
static void ReadResult(IDataReader rdr, DataTable dt) {
- \r
- // number of columns in the table\r
- Console.WriteLine(" Total Columns: " +\r
- dt.Rows.Count);\r
-\r
- // display the schema\r
- foreach (DataRow schemaRow in dt.Rows) {\r
- foreach (DataColumn schemaCol in dt.Columns)\r
- Console.WriteLine(schemaCol.ColumnName + \r
- " = " + \r
- schemaRow[schemaCol]);\r
- Console.WriteLine();\r
- }\r
-\r
- int nRows = 0;\r
- int c = 0;\r
- string output, metadataValue, dataValue;\r
- // Read and display the rows\r
- Console.WriteLine("Gonna do a Read() now...");\r
- while(rdr.Read()) {\r
- Console.WriteLine(" Row " + nRows + ": ");\r
- \r
- for(c = 0; c < rdr.FieldCount; c++) {\r
- // column meta data \r
- DataRow dr = dt.Rows[c];\r
- metadataValue = \r
- " Col " + \r
- c + ": " + \r
- dr["ColumnName"];\r
- \r
- // column data\r
- if(rdr.IsDBNull(c) == true)\r
- dataValue = " is NULL";\r
- else\r
- dataValue = \r
- ": " + \r
- rdr.GetValue(c);\r
- \r
- // display column meta data and data\r
- output = metadataValue + dataValue; \r
- Console.WriteLine(output);\r
- }\r
- nRows++;\r
- }\r
- Console.WriteLine(" Total Rows Retrieved: " + \r
+
+ // number of columns in the table
+ Console.WriteLine(" Total Columns: " +
+ dt.Rows.Count);
+
+ // display the schema
+ foreach (DataRow schemaRow in dt.Rows) {
+ foreach (DataColumn schemaCol in dt.Columns)
+ Console.WriteLine(schemaCol.ColumnName +
+ " = " +
+ schemaRow[schemaCol]);
+ Console.WriteLine();
+ }
+
+ int nRows = 0;
+ int c = 0;
+ string output, metadataValue, dataValue;
+ // Read and display the rows
+ Console.WriteLine("Gonna do a Read() now...");
+ while(rdr.Read()) {
+ Console.WriteLine(" Row " + nRows + ": ");
+
+ for(c = 0; c < rdr.FieldCount; c++) {
+ // column meta data
+ DataRow dr = dt.Rows[c];
+ metadataValue =
+ " Col " +
+ c + ": " +
+ dr["ColumnName"];
+
+ // column data
+ if(rdr.IsDBNull(c) == true)
+ dataValue = " is NULL";
+ else
+ dataValue =
+ ": " +
+ rdr.GetValue(c);
+
+ // display column meta data and data
+ output = metadataValue + dataValue;
+ Console.WriteLine(output);
+ }
+ nRows++;
+ }
+ Console.WriteLine(" Total Rows Retrieved: " +
nRows);
}
Console.WriteLine("IDataReader has a Null Reference.");
}
else {
- do {\r
- DataTable dt = rdr.GetSchemaTable();\r
- if(rdr.RecordsAffected != -1) {\r
- // Results for \r
- // SQL INSERT, UPDATE, DELETE Commands \r
- // have RecordsAffected >= 0\r
- Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);\r
- }\r
- else if(dt == null)\r
- // Results for\r
- // SQL Commands not INSERT, UPDATE, nor DELETE\r
- // have RecordsAffected == -1\r
- // and GetSchemaTable() returns a null reference\r
- Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);\r
- else {\r
- // Results for\r
- // SQL SELECT Queries\r
- // have RecordsAffected = -1\r
- // and GetSchemaTable() returns a reference to a DataTable\r
- Console.WriteLine("Result is from a SELECT SQL Query. Records Affected: " + rdr.RecordsAffected);\r
- \r
- results++;\r
- Console.WriteLine("Result Set " + results + "...");\r
-\r
- ReadResult(rdr, dt);\r
- }\r
-\r
- } while(rdr.NextResult());\r
- Console.WriteLine("Total Result sets: " + results);\r
- \r
+ do {
+ DataTable dt = rdr.GetSchemaTable();
+ if(rdr.RecordsAffected != -1) {
+ // Results for
+ // SQL INSERT, UPDATE, DELETE Commands
+ // have RecordsAffected >= 0
+ Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
+ }
+ else if(dt == null)
+ // Results for
+ // SQL Commands not INSERT, UPDATE, nor DELETE
+ // have RecordsAffected == -1
+ // and GetSchemaTable() returns a null reference
+ Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
+ else {
+ // Results for
+ // SQL SELECT Queries
+ // have RecordsAffected = -1
+ // and GetSchemaTable() returns a reference to a DataTable
+ Console.WriteLine("Result is from a SELECT SQL Query. Records Affected: " + rdr.RecordsAffected);
+
+ results++;
+ Console.WriteLine("Result Set " + results + "...");
+
+ ReadResult(rdr, dt);
+ }
+
+ } while(rdr.NextResult());
+ Console.WriteLine("Total Result sets: " + results);
+
rdr.Close();
}
}
Console.WriteLine("\t\tCall ExecuteReader with a SQL Command. (Is INSERT,UPDATE,DELETE).");
reader = SelectDataUsingInsertCommand(cnc);
ReadData(reader);
-\r
- // Call a Stored Procedure named Version()\r
- Console.WriteLine("\t\tCalling stored procedure version()");\r
- object obj = CallStoredProcedure(cnc);\r
- Console.WriteLine("Result: " + obj);\r
-\r
- Console.WriteLine("Database Server Version: " + \r
- ((PgSqlConnection)cnc).ServerVersion);\r
-\r
+
+ // Call a Stored Procedure named Version()
+ Console.WriteLine("\t\tCalling stored procedure version()");
+ object obj = CallStoredProcedure(cnc);
+ Console.WriteLine("Result: " + obj);
+
+ Console.WriteLine("Database Server Version: " +
+ ((PgSqlConnection)cnc).ServerVersion);
+
/* Clean up */
Console.WriteLine ("Clean up...");
Console.WriteLine ("\t\tDrop table...");
}
}
- [STAThread]\r
- static void Main(string[] args) {\r
- Console.WriteLine("Tests Start.");\r
- Console.WriteLine("Creating PgSqlConnectioin...");\r
- PgSqlConnection cnc = new PgSqlConnection ();\r
-\r
- // possible PostgreSQL Provider ConnectionStrings\r
+ [STAThread]
+ static void Main(string[] args) {
+ Console.WriteLine("Tests Start.");
+ Console.WriteLine("Creating PgSqlConnectioin...");
+ PgSqlConnection cnc = new PgSqlConnection ();
+
+ // possible PostgreSQL Provider ConnectionStrings
//string connectionString =
// "Server=hostname;" +
// "Database=database;" +
// "User ID=userid;" +
- // "Password=password";\r
- // or\r
+ // "Password=password";
+ // or
//string connectionString =
// "host=hostname;" +
// "dbname=database;" +
// "user=userid;" +
// "password=password";
-\r
+
string connectionString =
"host=localhost;" +
"dbname=test;" +
"user=postgres";
- \r
- Console.WriteLine("Setting ConnectionString: " +\r
- connectionString);\r
- cnc.ConnectionString = connectionString;\r
-\r
- Console.WriteLine("Opening database connection...");\r
- cnc.Open();\r
-\r
- Console.WriteLine("Do Tests....");\r
+
+ Console.WriteLine("Setting ConnectionString: " +
+ connectionString);
+ cnc.ConnectionString = connectionString;
+
+ Console.WriteLine("Opening database connection...");
+ cnc.Open();
+
+ Console.WriteLine("Do Tests....");
DoPostgresTest(cnc);
Console.WriteLine("Close database connection...");
--- /dev/null
+/GHTDB.MSSQL2005.sql -crlf
--- /dev/null
+/SqlCommand_ExecuteReader_.cs -crlf
+/SqlCommand_ExecuteXmlReader_.cs -crlf
+/SqlCommand_Parameters.cs -crlf
--- /dev/null
+/SqlCommandBuilder_DeriveParameters_S.cs -crlf
--- /dev/null
+/SqlConnection_BeginTransaction_S.cs -crlf
+/SqlConnection_InfoMessage.cs -crlf
+/SqlConnection_StateChange.cs -crlf
--- /dev/null
+/SqlDataAdapter_RowUpdated.cs -crlf
+/SqlDataAdapter_RowUpdating.cs -crlf
--- /dev/null
+/SqlParameter_Direction.cs -crlf
+/SqlParameter_ctor_SO.cs -crlf
+/SqlParameter_set_DbType_D.cs -crlf
// used internally by ReadData() to read each result set
static void ReadResult(IDataReader rdr, DataTable dt) {
- \r
- // number of columns in the table\r
- Console.WriteLine(" Total Columns: " +\r
- dt.Rows.Count);\r
-\r
- // display the schema\r
- foreach (DataRow schemaRow in dt.Rows) {\r
- foreach (DataColumn schemaCol in dt.Columns)\r
- Console.WriteLine(schemaCol.ColumnName + \r
- " = " + \r
- schemaRow[schemaCol]);\r
- Console.WriteLine();\r
- }\r
-\r
- int nRows = 0;\r
- int c = 0;\r
- string output, metadataValue, dataValue;\r
- // Read and display the rows\r
- Console.WriteLine("Gonna do a Read() now...");\r
- while(rdr.Read()) {\r
- Console.WriteLine(" Row " + nRows + ": ");\r
- \r
- for(c = 0; c < rdr.FieldCount; c++) {\r
- // column meta data \r
- DataRow dr = dt.Rows[c];\r
- metadataValue = \r
- " Col " + \r
- c + ": " + \r
- dr["ColumnName"];\r
- \r
- // column data\r
- if (rdr.IsDBNull(c) == true)\r
- dataValue = " is NULL";\r
+
+ // number of columns in the table
+ Console.WriteLine(" Total Columns: " +
+ dt.Rows.Count);
+
+ // display the schema
+ foreach (DataRow schemaRow in dt.Rows) {
+ foreach (DataColumn schemaCol in dt.Columns)
+ Console.WriteLine(schemaCol.ColumnName +
+ " = " +
+ schemaRow[schemaCol]);
+ Console.WriteLine();
+ }
+
+ int nRows = 0;
+ int c = 0;
+ string output, metadataValue, dataValue;
+ // Read and display the rows
+ Console.WriteLine("Gonna do a Read() now...");
+ while(rdr.Read()) {
+ Console.WriteLine(" Row " + nRows + ": ");
+
+ for(c = 0; c < rdr.FieldCount; c++) {
+ // column meta data
+ DataRow dr = dt.Rows[c];
+ metadataValue =
+ " Col " +
+ c + ": " +
+ dr["ColumnName"];
+
+ // column data
+ if (rdr.IsDBNull(c) == true)
+ dataValue = " is NULL";
else if ((Type) dr["DataType"] == typeof (byte[]))
dataValue =
": 0x" +
BitConverter.ToString ((byte[]) rdr.GetValue (c)).Replace ("-", "").ToLower ();
- else\r
- dataValue = \r
- ": " + \r
- rdr.GetValue(c);\r
- \r
- // display column meta data and data\r
- output = metadataValue + dataValue; \r
- Console.WriteLine(output);\r
- }\r
- nRows++;\r
- }\r
- Console.WriteLine(" Total Rows Retrieved: " + \r
+ else
+ dataValue =
+ ": " +
+ rdr.GetValue(c);
+
+ // display column meta data and data
+ output = metadataValue + dataValue;
+ Console.WriteLine(output);
+ }
+ nRows++;
+ }
+ Console.WriteLine(" Total Rows Retrieved: " +
nRows);
}
Console.WriteLine("IDataReader has a Null Reference.");
}
else {
- do {\r
- DataTable dt = rdr.GetSchemaTable();\r
- if(rdr.RecordsAffected != -1) {\r
- // Results for \r
- // SQL INSERT, UPDATE, DELETE Commands \r
- // have RecordsAffected >= 0\r
- Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);\r
- }\r
- else if(dt == null)\r
- // Results for\r
- // SQL Commands not INSERT, UPDATE, nor DELETE\r
- // have RecordsAffected == -1\r
- // and GetSchemaTable() returns a null reference\r
- Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);\r
- else {\r
- // Results for\r
- // SQL SELECT Queries\r
- // have RecordsAffected = -1\r
- // and GetSchemaTable() returns a reference to a DataTable\r
- Console.WriteLine("Result is from a SELECT SQL Query. Records Affected: " + rdr.RecordsAffected);\r
- \r
- results++;\r
- Console.WriteLine("Result Set " + results + "...");\r
-\r
- ReadResult(rdr, dt);\r
- }\r
-\r
- } while(rdr.NextResult());\r
- Console.WriteLine("Total Result sets: " + results);\r
- \r
+ do {
+ DataTable dt = rdr.GetSchemaTable();
+ if(rdr.RecordsAffected != -1) {
+ // Results for
+ // SQL INSERT, UPDATE, DELETE Commands
+ // have RecordsAffected >= 0
+ Console.WriteLine("Result is from a SQL Command (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
+ }
+ else if(dt == null)
+ // Results for
+ // SQL Commands not INSERT, UPDATE, nor DELETE
+ // have RecordsAffected == -1
+ // and GetSchemaTable() returns a null reference
+ Console.WriteLine("Result is from a SQL Command not (INSERT,UPDATE,DELETE). Records Affected: " + rdr.RecordsAffected);
+ else {
+ // Results for
+ // SQL SELECT Queries
+ // have RecordsAffected = -1
+ // and GetSchemaTable() returns a reference to a DataTable
+ Console.WriteLine("Result is from a SELECT SQL Query. Records Affected: " + rdr.RecordsAffected);
+
+ results++;
+ Console.WriteLine("Result Set " + results + "...");
+
+ ReadResult(rdr, dt);
+ }
+
+ } while(rdr.NextResult());
+ Console.WriteLine("Total Result sets: " + results);
+
rdr.Close();
}
}
Console.WriteLine("\t\tCall ExecuteReader with a SQL Command. (Is INSERT,UPDATE,DELETE).");
reader = SelectDataUsingInsertCommand(cnc);
ReadData(reader);
-\r
- // Call a Stored Procedure named Version()\r
- Console.WriteLine("\t\tCalling stored procedure sp_server_info()");\r
- object obj = CallStoredProcedure(cnc);\r
- Console.WriteLine("Result: " + obj);\r
-\r
- Console.WriteLine("Database Server Version: " + \r
- ((SqlConnection)cnc).ServerVersion);\r
-\r
+
+ // Call a Stored Procedure named Version()
+ Console.WriteLine("\t\tCalling stored procedure sp_server_info()");
+ object obj = CallStoredProcedure(cnc);
+ Console.WriteLine("Result: " + obj);
+
+ Console.WriteLine("Database Server Version: " +
+ ((SqlConnection)cnc).ServerVersion);
+
/* Clean up */
Console.WriteLine ("Clean up...");
Console.WriteLine ("\t\tDrop table...");
}
}
- [STAThread]\r
- static void Main(string[] args) {\r
- string connectionString = "";\r
- \r
- if(args.Length == 3 || args.Length == 4) {\r
- if(args.Length == 3) {\r
+ [STAThread]
+ static void Main(string[] args) {
+ string connectionString = "";
+
+ if(args.Length == 3 || args.Length == 4) {
+ if(args.Length == 3) {
connectionString = String.Format(
"Server={0};" +
"Database={1};" +
Console.WriteLine("Usage: mono SqlTest.exe sql_server database user_id password");
return;
}
-\r
- SqlConnection cnc = new SqlConnection ();\r
- cnc.ConnectionString = connectionString;\r
-\r
- cnc.Open();\r
+
+ SqlConnection cnc = new SqlConnection ();
+ cnc.ConnectionString = connectionString;
+
+ cnc.Open();
DoSqlTest(cnc);
cnc.Close();
}
--- /dev/null
+/DBDataPermissionAttributeTest.cs -crlf
--- /dev/null
+/OdbcDataReaderTest.cs -crlf
+/OdbcPermissionAttributeTest.cs -crlf
--- /dev/null
+/OleDbPermissionAttributeTest.cs -crlf
+/OleDbPermissionTest.cs -crlf
--- /dev/null
+/SqlClientPermissionAttributeTest.cs -crlf
+/SqlClientPermissionTest.cs -crlf
+/SqlConnectionTest.cs -crlf
--- /dev/null
+/SqlDateTimeTest.cs -crlf
+/SqlGuidTest.cs -crlf
--- /dev/null
+/Makefile -crlf
--- /dev/null
+/RowNotInTableException_Generate.cs -crlf
-// Authors:
-// Rafael Mizrahi <rafim@mainsoft.com>
-// Erez Lotan <erezl@mainsoft.com>
-// Oren Gurfinkel <oreng@mainsoft.com>
-// Ofer Borstein
-//
-// Copyright (c) 2004 Mainsoft Co.
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+// Authors:\r
+// Rafael Mizrahi <rafim@mainsoft.com>\r
+// Erez Lotan <erezl@mainsoft.com>\r
+// Oren Gurfinkel <oreng@mainsoft.com>\r
+// Ofer Borstein\r
+// \r
+// Copyright (c) 2004 Mainsoft Co.\r
+// \r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
-using NUnit.Framework;
-
-
-using System;
-using System.Data;
-
-using GHTUtils;
+using NUnit.Framework;\r
+\r
+\r
+using System;\r
+using System.Data;\r
+\r
+using GHTUtils;\r
using GHTUtils.Base;\r
\r
-namespace tests.system_data_dll.System_Data
+namespace tests.system_data_dll.System_Data\r
{\r
[TestFixture] public class RowNotInTableException_Generate : GHTBase\r
{\r
--- /dev/null
+/DataColumnCollectionTest2.cs -crlf
+/DataRelationTest.cs -crlf
+/DataSetReadXmlTest.cs -crlf
+/MissingPrimaryKeyExceptionTest.cs -crlf
+/TypedDataSet.xml -crlf
+/store.xsd -crlf
+/store2.xsd -crlf
+/store3.xsd -crlf
+/store4.xsd -crlf
+2010-07-23 Veerapuram Varadhan <v.varadhan@gmail.com>
+
+ * DataColumnTest.cs (B623451_SetOrdinalTest): Added new.
+
2010-07-23 Veerapuram Varadhan <v.varadhan@gmail.com>
* DataColumnTest.cs (B565616_NonIConvertibleTypeTest): Added new.
Assert.Fail ("#NonIConvertibleType Test");
}
}
+
+ [Test]
+ public void B623451_SetOrdinalTest ()
+ {
+ try {
+ DataTable t = new DataTable();
+ t.Columns.Add("one");
+ t.Columns.Add("two");
+ t.Columns.Add("three");
+ Assert.AreEqual ("one", t.Columns[0].ColumnName, "#SO1-1");
+ Assert.AreEqual ("two", t.Columns[1].ColumnName, "#SO1-2");
+ Assert.AreEqual ("three", t.Columns[2].ColumnName, "#SO1-3");
+
+ t.Columns["three"].SetOrdinal(0);
+ Assert.AreEqual ("three", t.Columns[0].ColumnName, "S02-1");
+ Assert.AreEqual ("one", t.Columns[1].ColumnName, "S02-2");
+ Assert.AreEqual ("two", t.Columns[2].ColumnName, "S02-3");
+
+ t.Columns["three"].SetOrdinal(1);
+ Assert.AreEqual ("one", t.Columns[0].ColumnName, "S03-1");
+ Assert.AreEqual ("three", t.Columns[1].ColumnName, "S03-2");
+ Assert.AreEqual ("two", t.Columns[2].ColumnName, "S03-3");
+ } catch (ArgumentOutOfRangeException ex) {
+ Assert.Fail ("SetOrdinalTest failed");
+ }
+ }
}
}
--- /dev/null
+/Items.xsd -crlf
+/test001.xsd -crlf
+/test002.xsd -crlf
+/test003.xsd -crlf
+/test004.xsd -crlf
+/test005.xsd -crlf
+/test006.xsd -crlf
+/test007.xsd -crlf
+/test008.xsd -crlf
+/test009.xsd -crlf
+/test010.xsd -crlf
+/test011.xsd -crlf
+/test012.xsd -crlf
+/test013.xsd -crlf
+/test014.xsd -crlf
+/test103.xsd -crlf
--- /dev/null
+/2books.xml -crlf
+/XmlDataDocumentTest2.cs -crlf
+/region.xml -crlf
+/region.xsd -crlf
+/store.xsd -crlf
//\r
// (C) 2002 Daniel Morgan\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Data;\r
String connectionString = null;\r
String sql = null;\r
\r
- connectionString =
- "host=localhost;" +
- "dbname=test;" +
- "user=postgres";
+ connectionString = \r
+ "host=localhost;" +\r
+ "dbname=test;" +\r
+ "user=postgres";\r
\r
try {\r
string maxStrValue;\r
Console.WriteLine(e.ToString());\r
}\r
finally {\r
- if(con != null)
- if(con.State == ConnectionState.Open)
+ if(con != null)\r
+ if(con.State == ConnectionState.Open)\r
con.Close();\r
}\r
}\r
// -lib:C:/cygwin/home/MyHome/mono/install/lib -r System.Data.dll \\r
// -r Mono.Data.SybaseClient.dll -r Mono.Data.TdsClient.dll\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
//#define IncludeSybaseAndTdsClient\r
\r
//\r
// (C) 2002 Daniel Morgan\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Data;\r
Console.WriteLine("ExecuteReader...");\r
rdr = cmd.ExecuteReader(behavior);\r
\r
- if(rdr == null) {
-
- Console.WriteLine("IDataReader has a Null Reference.");
- }
- else {
+ if(rdr == null) {\r
+ \r
+ Console.WriteLine("IDataReader has a Null Reference.");\r
+ }\r
+ else {\r
\r
do {\r
// get the DataTable that holds\r
[STAThread]\r
static void Main(string[] args) {\r
String connectionString = null;\r
- connectionString =
- "host=localhost;" +
- "dbname=test;" +
- "user=postgres";
+ connectionString = \r
+ "host=localhost;" +\r
+ "dbname=test;" +\r
+ "user=postgres";\r
\r
PgSqlConnection con;\r
con = new PgSqlConnection(connectionString);\r
//\r
// (c)copyright 2002 Daniel Morgan\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.Collections;\r
Console.WriteLine("** Start Test...");\r
\r
String connectionString = null;\r
- connectionString =
- "host=localhost;" +
- "dbname=test;" +
- "user=postgres";
+ connectionString = \r
+ "host=localhost;" +\r
+ "dbname=test;" +\r
+ "user=postgres";\r
\r
PgSqlConnection con;\r
Console.WriteLine("** Creating connection...");\r
--- /dev/null
+/System.Design.xml -crlf
--- /dev/null
+/CompositeControlDesigner.cs -crlf
--- /dev/null
+/ISelectionUIHandler.cs -crlf
--- /dev/null
+/App.config -crlf
+/ChangeLog -crlf
+/Secure.config -crlf
+/makefile.build -crlf
+/net_1_1_java_System.DirectoryServices.dll.exclude.sources -crlf
--- /dev/null
+/SearchScope.cs -crlf
+/SortDirection.cs -crlf
cons.ServerTimeLimit = (int)ServerTimeLimit.TotalSeconds;
}
- int connScope = LdapConnection.SCOPE_SUB;\r
- switch (_SearchScope)\r
- {\r
- case SearchScope.Base:\r
- connScope = LdapConnection.SCOPE_BASE;\r
- break;\r
-\r
- case SearchScope.OneLevel:\r
- connScope = LdapConnection.SCOPE_ONE;\r
- break;\r
-\r
- case SearchScope.Subtree:\r
- connScope = LdapConnection.SCOPE_SUB;\r
- break;\r
-\r
- default:\r
- connScope = LdapConnection.SCOPE_SUB;\r
- break;\r
+ int connScope = LdapConnection.SCOPE_SUB;
+ switch (_SearchScope)
+ {
+ case SearchScope.Base:
+ connScope = LdapConnection.SCOPE_BASE;
+ break;
+
+ case SearchScope.OneLevel:
+ connScope = LdapConnection.SCOPE_ONE;
+ break;
+
+ case SearchScope.Subtree:
+ connScope = LdapConnection.SCOPE_SUB;
+ break;
+
+ default:
+ connScope = LdapConnection.SCOPE_SUB;
+ break;
}
LdapSearchResults lsc=_conn.Search( SearchRoot.Fdn,
connScope,
[MonoTODO]
protected override void Dispose(bool disposing)
{
- if (disposing) {\r
- if(_conn != null && _conn.Connected) {\r
- _conn.Disconnect();\r
- }\r
- }\r
+ if (disposing) {
+ if(_conn != null && _conn.Connected) {
+ _conn.Disconnect();
+ }
+ }
base.Dispose(disposing);
}
--- /dev/null
+/README.txt -crlf
+/krb5.conf.example -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/DirectoryServicesDirectoryEntryTest.cs -crlf
+/DirectoryServicesDirectorySearcherTest.cs -crlf
+/DirectoryServicesPermissionAttributeTest.cs -crlf
+/DirectoryServicesPermissionTest.cs -crlf
+/DirectoryServicesSearchResultTest.cs -crlf
+/TestConfiguration.cs -crlf
+/example.app.config -crlf
[Test]\r
public void IsSubset_Null ()\r
{\r
- DirectoryServicesPermission dsp = new DirectoryServicesPermission (PermissionState.None);
+ DirectoryServicesPermission dsp = new DirectoryServicesPermission (PermissionState.None);\r
#if NET_2_0\r
- Assert.IsTrue (dsp.IsSubsetOf (null), "null");
+ Assert.IsTrue (dsp.IsSubsetOf (null), "null");\r
#else\r
- Assert.IsFalse (dsp.IsSubsetOf (null), "null");
-#endif
+ Assert.IsFalse (dsp.IsSubsetOf (null), "null");\r
+#endif\r
}\r
\r
[Test]\r
--- /dev/null
+/ColorEditor.cs -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/System.Drawing.xml -crlf
--- /dev/null
+/ResolutionConfiguration.cs -crlf
+/ResolutionConfigurationCollection.cs -crlf
+/ResolutionConfigurationHandler.cs -crlf
PointF[] polygon_pnts = {new PointF(150.0F, 150.0F),
new PointF(200.0F, 125.0F), new PointF(300.0F, 105.0F),
new PointF(350.0F, 150.0F), new PointF(400.0F, 200.0F),
- new PointF(450.0F, 300.0F), new PointF(350.0F, 350.0F) };\r
+ new PointF(450.0F, 300.0F), new PointF(350.0F, 350.0F) };
- // Default Display\r
+ // Default Display
gr.DrawRectangle (Pens.Red, rect);
gr.DrawString ("Unit " + gr.PageUnit, new Font ("Arial", 10), Brushes.Red, 50, 50);
gr.DrawArc (Pens.Red, 30, 30, 60, 60, 0, 180);
- gr.DrawPolygon (Pens.Red, polygon_pnts);\r
+ gr.DrawPolygon (Pens.Red, polygon_pnts);
- // Point\r
- gr.PageUnit = GraphicsUnit.Point;\r
+ // Point
+ gr.PageUnit = GraphicsUnit.Point;
gr.DrawRectangle (Pens.Yellow, rect);
gr.DrawString ("Unit " + gr.PageUnit, new Font ("Arial", 10), Brushes.Yellow, 50, 50);
gr.DrawArc (Pens.Yellow, 30, 30, 60, 60, 0, 180);
gr.DrawPolygon (Pens.Yellow, polygon_pnts);
- // Document\r
- gr.PageUnit = GraphicsUnit.Document;\r
+ // Document
+ gr.PageUnit = GraphicsUnit.Document;
gr.DrawRectangle (Pens.Pink, rect);
gr.DrawString ("Unit " + gr.PageUnit, new Font ("Arial", 10), Brushes.Pink, 50, 50);
gr.DrawArc (Pens.Pink, 30, 30, 60, 60, 0, 180);
gr.DrawPolygon (Pens.Pink, polygon_pnts);
- // Inc\r
- gr.PageUnit = GraphicsUnit.Inch;\r
+ // Inc
+ gr.PageUnit = GraphicsUnit.Inch;
gr.DrawRectangle (Pens.Blue, 3f, 1f, 1f, 1f);
gr.DrawString ("Unit " + gr.PageUnit, new Font ("Arial", 10), Brushes.Blue, 0.7f, 0.7f);
gr.DrawArc (Pens.Blue, 3f, 3f, 1f, 1f, 0, 180);
-\r
+
bmp.Save ("units1.bmp");
bmp.Dispose ();
gr.Dispose ();
bmp = new Bitmap (600, 600);
gr = Graphics.FromImage (bmp);
- GraphicsPath graphPath = new GraphicsPath();\r
+ GraphicsPath graphPath = new GraphicsPath();
graphPath.AddEllipse (0, 80, 100, 200);
- // Default Display\r
+ // Default Display
gr.DrawBezier (Pens.Red, new Point (10, 10), new Point (20, 10),
new Point (35, 50), new Point (50, 10));
- gr.DrawEllipse (Pens.Red, 10, 50, 30, 50);\r
+ gr.DrawEllipse (Pens.Red, 10, 50, 30, 50);
gr.DrawPath (Pens.Red, graphPath);
gr.DrawPie (Pens.Red, 150, 20, 60, 60, 100, 140);
- gr.DrawCurve (Pens.Red, polygon_pnts, 2, 4, 0.5f);\r
+ gr.DrawCurve (Pens.Red, polygon_pnts, 2, 4, 0.5f);
// Point
- gr.PageUnit = GraphicsUnit.Display;\r
+ gr.PageUnit = GraphicsUnit.Display;
gr.PageUnit = GraphicsUnit.Point;
gr.DrawBezier (Pens.Pink, new Point (10, 10), new Point (20, 10),
new Point (35, 50), new Point (50, 10));
gr.DrawPath (Pens.Pink, graphPath);
gr.DrawPie (Pens.Pink, 150, 20, 60, 60, 100, 140);
- // Document\r
+ // Document
gr.PageUnit = GraphicsUnit.Document;
gr.DrawBezier (Pens.Yellow, new Point (10, 10), new Point (20, 10),
new Point (35, 50), new Point (50, 10));
gr.DrawPie (Pens.Yellow, 150, 20, 60, 60, 100, 140);
gr.DrawCurve (Pens.Yellow, polygon_pnts, 2, 4, 0.5f);
- // Inc\r
- gr.PageUnit = GraphicsUnit.Inch;\r
+ // Inc
+ gr.PageUnit = GraphicsUnit.Inch;
gr.DrawBezier (Pens.Blue, new Point (10, 10), new Point (20, 10),
new Point (35, 50), new Point (50, 10));
x = 0;
if (xor) {
- rect1 = new Rectangle (20+x, 330+300, 40, 50);\r
- rect2 = new Rectangle (40+x, 360+300, 20, 20);\r
+ rect1 = new Rectangle (20+x, 330+300, 40, 50);
+ rect2 = new Rectangle (40+x, 360+300, 20, 20);
dc.DrawRectangle (Pens.Red, rect1);
dc.DrawRectangle (Pens.Green, rect2);
rgn1 = new Region (rect1);
--- /dev/null
+/ToolboxItem.cs -crlf
--- /dev/null
+/ExtendedGeneralPath.jvm.cs -crlf
+/GeneralPathIterator.jvm.cs -crlf
-//
-// System.Drawing.Drawing2D.ExtendedGeneralPath.cs
-//
-// Author:
-// Bors Kirzner <boris@mainsoft.com>
-//
-// Copyright (C) 2005 Mainsoft Corporation, (http://www.mainsoft.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//\r
+// System.Drawing.Drawing2D.ExtendedGeneralPath.cs\r
+//\r
+// Author:\r
+// Bors Kirzner <boris@mainsoft.com> \r
+//\r
+// Copyright (C) 2005 Mainsoft Corporation, (http://www.mainsoft.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
//\r
\r
using System;\r
//
using System;
-namespace System.Drawing.Drawing2D \r
+namespace System.Drawing.Drawing2D
{
/// <summary>
/// Summary description for GraphicsContainer.
/// </summary>
- public sealed class GraphicsContainer : MarshalByRefObject\r
+ public sealed class GraphicsContainer : MarshalByRefObject
{
readonly GraphicsState _stateObject;
#region Properites
- public int Count \r
+ public int Count
{
get { return _path.NativeObject.PointCount; }
}
using geom = java.awt.geom;
using awt = java.awt;
-namespace System.Drawing.Drawing2D \r
+namespace System.Drawing.Drawing2D
{
/// <summary>
/// Summary description for GraphicsState.
lgb.SetBlendTriangularShape(0.5f);
g.FillPath( lgb, pt );
}
- private PointF GetVertical(PointF c, PointF p1, PointF p2) {\r
- if (p1.X == p2.X)\r
- return new PointF(p1.X, c.Y);\r
- if (p1.Y == p2.Y)\r
- return new PointF(c.X, p2.Y);\r
-\r
- float a = (float)(p2.Y - p1.Y) / (p2.X - p1.X);\r
- float av = - 1 / a;\r
-\r
- float b1 = p1.Y - a * p1.X;\r
- float b2 = c.Y - av * c.X;\r
-\r
- float ox = (b1 - b2) / (av - a);\r
- float oy = av * ox + b2;\r
-\r
- return new PointF(ox, oy);\r
- }\r
-\r
- #endregion\r
-\r
- #region ctors\r
+ private PointF GetVertical(PointF c, PointF p1, PointF p2) {
+ if (p1.X == p2.X)
+ return new PointF(p1.X, c.Y);
+ if (p1.Y == p2.Y)
+ return new PointF(c.X, p2.Y);
+
+ float a = (float)(p2.Y - p1.Y) / (p2.X - p1.X);
+ float av = - 1 / a;
+
+ float b1 = p1.Y - a * p1.X;
+ float b2 = c.Y - av * c.X;
+
+ float ox = (b1 - b2) / (av - a);
+ float oy = av * ox + b2;
+
+ return new PointF(ox, oy);
+ }
+
+ #endregion
+
+ #region ctors
public PathGradientBrush (GraphicsPath path) {
Initialize( path, WrapMode.Clamp, true, true );
--- /dev/null
+/ImageAttributes.jvm.cs -crlf
+/ImageCodec.jvm.cs -crlf
-
-using System;
-using System.Drawing;
-using System.Drawing.Drawing2D;
-
-namespace System.Drawing.Imaging
-{
- /// <summary>
- /// Summary description for ImageAttributes.
+\r
+using System;\r
+using System.Drawing;\r
+using System.Drawing.Drawing2D;\r
+\r
+namespace System.Drawing.Imaging\r
+{\r
+ /// <summary>\r
+ /// Summary description for ImageAttributes.\r
/// </summary>\r
/// \r
[MonoTODO]\r
public Color col;\r
public bool bClamp;\r
public ColorPalette clrPalette;\r
- public bool bNoOp;
- }
+ public bool bNoOp;\r
+ }\r
}
\ No newline at end of file
int i=0;
foreach (ImageCodecInfo codec in oldInfo.Values) {
newInfo [i++] = (ImageCodecInfo) codec.MemberwiseClone ();
- }\r
+ }
return newInfo;
}
--- /dev/null
+/Duplex.cs -crlf
+/PaperKind.cs -crlf
+/PaperSourceKind.cs -crlf
+/PrintPageEventHandler.cs -crlf
+/PrintRange.cs -crlf
+/PrinterResolution.cs -crlf
+/PrinterResolutionKind.cs -crlf
+/PrinterUnit.cs -crlf
+/PrintingPermissionLevel.cs -crlf
+/QueryPageSettingsEventArgs.cs -crlf
using System.Globalization;
using System.Text.RegularExpressions;
using System.ComponentModel.Design.Serialization;
-using System.Reflection;\r
+using System.Reflection;
namespace System.Drawing.Printing {
/// <summary>
// (C) 2002 Ximian, Inc. http://www.ximian.com\r
// Author: Dennis Hayes (dennish@raytek.com)\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-using System;
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+using System;\r
\r
namespace System.Drawing.Printing \r
{\r
-#if NET_2_0
- [Serializable]
+#if NET_2_0\r
+ [Serializable]\r
#endif\r
- public enum PaperKind
+ public enum PaperKind\r
{\r
A2 = 66,\r
A3 = 8,\r
APlus = 57,\r
B4 = 12,\r
B4Envelope = 33,\r
- B4JisRotated = 79,
- B5 = 13,
+ B4JisRotated = 79,\r
+ B5 = 13,\r
B5Envelope = 34,\r
B5Extra = 65,\r
B5JisRotated = 80,\r
C3Envelope = 29,\r
C4Envelope = 30,\r
C5Envelope = 28,\r
- C65Envelope = 32,
+ C65Envelope = 32,\r
C6Envelope = 31,\r
CSheet = 24,\r
Custom = 0,\r
GermanLegalFanfold = 41,\r
GermanStandardFanfold = 40,\r
InviteEnvelope = 47,\r
- IsoB4 = 42,
+ IsoB4 = 42,\r
ItalyEnvelope = 36,\r
JapaneseDoublePostcard = 69,\r
JapaneseDoublePostcardRotated = 82,\r
kind = (PaperSourceKind)value;
}
}
-#endif\r
+#endif
internal bool IsDefault {
get { return is_default;}
PrintToFile = 0,
PrintToPreview = 1,
PrintToPrinter = 2
- }\r
+ }
}
public virtual bool IsPreview {
get { return false; }
}
-#else\r
+#else
public PrintController ()
{
}
}
internal static GlobalPrintingServices GlobalService {
- get {\r
- if (global_printing_services == null) {\r
- if (is_unix)\r
- global_printing_services = new GlobalPrintingServicesUnix ();\r
- else\r
- global_printing_services = new GlobalPrintingServicesWin32 ();\r
- }\r
-\r
- return global_printing_services;\r
+ get {
+ if (global_printing_services == null) {
+ if (is_unix)
+ global_printing_services = new GlobalPrintingServicesUnix ();
+ else
+ global_printing_services = new GlobalPrintingServicesWin32 ();
+ }
+
+ return global_printing_services;
}
}
--- /dev/null
+/InstalledFontCollection.jvm.cs -crlf
+/PrivateFontCollection.jvm.cs -crlf
+/TextLineIterator.jvm.cs -crlf
--- /dev/null
+/AdvancedStroke.jvm.cs -crlf
+/PlainImage.jvm.cs -crlf
+/PlainImageCollection.jvm.cs -crlf
+/StrokeFactory.jvm.cs -crlf
BrushMultiplyTransform(matrix, MatrixOrder.Prepend);
}
protected internal void BrushMultiplyTransform (Matrix matrix, MatrixOrder order) {
- if (matrix == null)\r
- throw new ArgumentNullException("matrix");\r
+ if (matrix == null)
+ throw new ArgumentNullException("matrix");
_brushTransform.Multiply(matrix, order);
}
try {
TextLineIterator iter = new TextLineIterator(s, font, NativeObject.getFontRenderContext(), format, width, height);
NativeObject.transform(iter.Transform);
- for (LineLayout layout = iter.NextLine(); layout != null; layout = iter.NextLine()) {\r
+ for (LineLayout layout = iter.NextLine(); layout != null; layout = iter.NextLine()) {
layout.Draw (NativeObject, x * UnitConversion [(int) PageUnit], y * UnitConversion [(int) PageUnit]);
}
}
#region flags enum
[Flags]
- protected enum ImageFlags {\r
- ImageFlagsNone = 0,\r
- ImageFlagsScalable = 0x0001,\r
- ImageFlagsHasAlpha = 0x0002,\r
- ImageFlagsHasTranslucent = 0x0004,\r
- ImageFlagsPartiallyScalable = 0x0008,\r
- ImageFlagsColorSpaceRGB = 0x0010,\r
- ImageFlagsColorSpaceCMYK = 0x0020,\r
- ImageFlagsColorSpaceGRAY = 0x0040,\r
- ImageFlagsColorSpaceYCBCR = 0x0080,\r
- ImageFlagsColorSpaceYCCK = 0x0100,\r
- ImageFlagsHasRealDPI = 0x1000,\r
- ImageFlagsHasRealPixelSize = 0x2000,\r
- ImageFlagsReadOnly = 0x00010000,\r
- ImageFlagsCaching = 0x00020000\r
- }\r
- #endregion\r
+ protected enum ImageFlags {
+ ImageFlagsNone = 0,
+ ImageFlagsScalable = 0x0001,
+ ImageFlagsHasAlpha = 0x0002,
+ ImageFlagsHasTranslucent = 0x0004,
+ ImageFlagsPartiallyScalable = 0x0008,
+ ImageFlagsColorSpaceRGB = 0x0010,
+ ImageFlagsColorSpaceCMYK = 0x0020,
+ ImageFlagsColorSpaceGRAY = 0x0040,
+ ImageFlagsColorSpaceYCBCR = 0x0080,
+ ImageFlagsColorSpaceYCCK = 0x0100,
+ ImageFlagsHasRealDPI = 0x1000,
+ ImageFlagsHasRealPixelSize = 0x2000,
+ ImageFlagsReadOnly = 0x00010000,
+ ImageFlagsCaching = 0x00020000
+ }
+ #endregion
#region Constructor
public void Dispose () {
default:
throw new ArgumentOutOfRangeException();
}
- image.AffineTransformOp op = new image.AffineTransformOp(tx, image.AffineTransformOp.TYPE_NEAREST_NEIGHBOR);\r
- CurrentImage.NativeImage = op.filter((BufferedImage)CurrentImage.NativeImage, null);\r
+ image.AffineTransformOp op = new image.AffineTransformOp(tx, image.AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
+ CurrentImage.NativeImage = op.filter((BufferedImage)CurrentImage.NativeImage, null);
}
#endregion
internal bool isModifiable = true;
Color _color;
- protected override java.awt.Paint NativeObject {\r
- get {\r
- return _color.NativeObject;\r
- }\r
- }\r
+ protected override java.awt.Paint NativeObject {
+ get {
+ return _color.NativeObject;
+ }
+ }
public SolidBrush (Color color)
{
protected override void Dispose (bool disposing)
{
- if (!isModifiable && disposing)\r
- throw new ArgumentException ("This SolidBrush object can't be modified.");\r
- }\r
+ if (!isModifiable && disposing)
+ throw new ArgumentException ("This SolidBrush object can't be modified.");
+ }
}
}
private StringTrimming _trimming;
private float _firstTabOffset;
- private float [] _tabStops;\r
-\r
+ private float [] _tabStops;
+
private bool _genericTypeographic = false;
#region Constructors
StringFormatFlags.LineLimit |
StringFormatFlags.NoClip,
0 );
- genericTypographic.Trimming = StringTrimming.None;\r
+ genericTypographic.Trimming = StringTrimming.None;
genericTypographic._genericTypeographic = true;
return genericTypographic;
}
#endregion
#region internal accessors
- internal bool NoWrap {\r
- get {\r
- return (FormatFlags & StringFormatFlags.NoWrap) != 0;\r
- }\r
- }\r
-\r
- internal bool IsVertical {\r
- get {\r
- return (FormatFlags & StringFormatFlags.DirectionVertical) != 0;\r
- }\r
- }\r
-\r
- internal bool MeasureTrailingSpaces {\r
- get {\r
- return (FormatFlags & StringFormatFlags.MeasureTrailingSpaces) != 0;\r
- }\r
- }\r
-\r
- internal bool LineLimit {\r
- get {\r
- return (FormatFlags & StringFormatFlags.LineLimit) != 0;\r
- }\r
- }\r
-\r
- internal bool NoClip {\r
- get {\r
- return (FormatFlags & StringFormatFlags.NoClip) != 0;\r
- }\r
+ internal bool NoWrap {
+ get {
+ return (FormatFlags & StringFormatFlags.NoWrap) != 0;
+ }
+ }
+
+ internal bool IsVertical {
+ get {
+ return (FormatFlags & StringFormatFlags.DirectionVertical) != 0;
+ }
}
- internal bool IsRightToLeft {\r
- get {\r
- return (FormatFlags & StringFormatFlags.DirectionRightToLeft) != 0;\r
- }\r
+ internal bool MeasureTrailingSpaces {
+ get {
+ return (FormatFlags & StringFormatFlags.MeasureTrailingSpaces) != 0;
+ }
+ }
+
+ internal bool LineLimit {
+ get {
+ return (FormatFlags & StringFormatFlags.LineLimit) != 0;
+ }
+ }
+
+ internal bool NoClip {
+ get {
+ return (FormatFlags & StringFormatFlags.NoClip) != 0;
+ }
+ }
+
+ internal bool IsRightToLeft {
+ get {
+ return (FormatFlags & StringFormatFlags.DirectionRightToLeft) != 0;
+ }
}
internal CharacterRange [] CharRanges {
get {
return _charRanges;
}
- }\r
-\r
- internal bool IsGenericTypographic\r
- {\r
- get {\r
- return _genericTypeographic;\r
- }\r
+ }
+
+ internal bool IsGenericTypographic
+ {
+ get {
+ return _genericTypeographic;
+ }
}
#endregion
public sealed class SystemColors
{
- private SystemColors (){}\r
-\r
- static Color [] SystemColorsCache {\r
- get {\r
- return KnownColors.Values;\r
- }\r
+ private SystemColors (){}
+
+ static Color [] SystemColorsCache {
+ get {
+ return KnownColors.Values;
+ }
}
static public Color ActiveBorder
--- /dev/null
+/AssemblyInfo.cs -crlf
+/DrawingTest.cs -crlf
+/PDComparer.cs -crlf
--- /dev/null
+/Exocortex.DSP.xml -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Complex.cs -crlf
+/ComplexArray.cs -crlf
+/ComplexF.cs -crlf
+/ComplexMath.cs -crlf
+/ComplexStats.cs -crlf
+/Fourier.cs -crlf
+/FourierDirection.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Bitmap.cs -crlf
+/Brush.cs -crlf
+/Brushes.cs -crlf
+/ChangeLog -crlf
+/Colors.cs -crlf
+/Enums.cs -crlf
+/Graphics.cs -crlf
+/GraphicsPath.cs -crlf
+/GraphicsPathIterator.cs -crlf
+/Image.cs -crlf
+/Pen.cs -crlf
+/Pens.cs -crlf
+/Region.cs -crlf
}\r
\r
static string getInFile (string file) {\r
- string sRslt;
-
- sRslt = Path.GetFullPath (file);
-
- if (! File.Exists (file))
- sRslt = Path.Combine (
- Path.Combine ("..", ".."),
- file);
-
- return sRslt;
+ string sRslt; \r
+ \r
+ sRslt = Path.GetFullPath (file);\r
+ \r
+ if (! File.Exists (file))\r
+ sRslt = Path.Combine (\r
+ Path.Combine ("..", ".."),\r
+ file);\r
+\r
+ return sRslt;\r
}\r
\r
[Test]\r
--- /dev/null
+/TestColorMatrix.cs -crlf
+/tests-ms.sh -crlf
}
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_24bppRgb ()
{
Save (PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb, true);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppRgb ()
{
Save (PixelFormat.Format32bppRgb, PixelFormat.Format32bppRgb, true);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppArgb ()
{
Save (PixelFormat.Format32bppArgb, PixelFormat.Format32bppRgb, true);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppPArgb ()
{
Save (PixelFormat.Format32bppPArgb, PixelFormat.Format32bppRgb, true);
Assert.AreEqual (0, cm[4,3], "4,3");\r
Assert.AreEqual (0, cm[4,4], "4,4");\r
}\r
-
+\r
[Test]\r
public void IndividualProperties ()\r
{\r
}
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_24bppRgb ()
{
Save (PixelFormat.Format24bppRgb, PixelFormat.Format24bppRgb);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppRgb ()
{
Save (PixelFormat.Format32bppRgb, PixelFormat.Format24bppRgb);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppArgb ()
{
Save (PixelFormat.Format32bppArgb, PixelFormat.Format24bppRgb);
}
- [Test]\r
+ [Test]
#if TARGET_JVM
[Category("NotWorking")]
-#endif\r
+#endif
public void Save_32bppPArgb ()
{
Save (PixelFormat.Format32bppPArgb, PixelFormat.Format24bppRgb);
--- /dev/null
+/tests-ms.sh -crlf
--- /dev/null
+/Clerk.cs -crlf
+/ClerkInfo.cs -crlf
+/ClerkMonitor.cs -crlf
+/CompensatorOptions.cs -crlf
+/LogRecord.cs -crlf
+/LogRecordFlags.cs -crlf
+/TransactionState.cs -crlf
--- /dev/null
+/AccessChecksLevelOption.cs -crlf
+/ActivationOption.cs -crlf
+/Activity.cs -crlf
+/ApplicationQueuingAttribute.cs -crlf
+/AutoCompleteAttribute.cs -crlf
+/BOID.cs -crlf
+/BYOT.cs -crlf
+/BindingOption.cs -crlf
+/COMTIIntrinsicsAttribute.cs -crlf
+/ComponentAccessControlAttribute.cs -crlf
+/ConstructionEnabledAttribute.cs -crlf
+/ContextUtil.cs -crlf
+/DescriptionAttribute.cs -crlf
+/EventClassAttribute.cs -crlf
+/EventTrackingEnabledAttribute.cs -crlf
+/ExceptionClassAttribute.cs -crlf
+/IAsyncErrorNotify.cs -crlf
+/IISIntrinsicsAttribute.cs -crlf
+/IPlaybackControl.cs -crlf
+/IProcessInitControl.cs -crlf
+/IRemoteDispatch.cs -crlf
+/ISecurityCallContext.cs -crlf
+/ISecurityCallersColl.cs -crlf
+/ISecurityIdentityColl.cs -crlf
+/IServiceCall.cs -crlf
+/IServicedComponentInfo.cs -crlf
+/ISharedProperty.cs -crlf
+/ISharedPropertyGroup.cs -crlf
+/ITransaction.cs -crlf
+/InheritanceOption.cs -crlf
+/InterfaceQueuingAttribute.cs -crlf
+/JustInTimeActivationAttribute.cs -crlf
+/LoadBalancingSupportedAttribute.cs -crlf
+/MustRunInClientContextAttribute.cs -crlf
+/ObjectPoolingAttribute.cs -crlf
+/PartitionOption.cs -crlf
+/PrivateComponentAttribute.cs -crlf
+/RegistrationConfig.cs -crlf
+/RegistrationErrorInfo.cs -crlf
+/RegistrationException.cs -crlf
+/ResourcePool.cs -crlf
+/SecureMethodAttribute.cs -crlf
+/SecurityCallContext.cs -crlf
+/SecurityCallers.cs -crlf
+/SecurityIdentity.cs -crlf
+/SecurityRoleAttribute.cs -crlf
+/ServiceConfig.cs -crlf
+/ServiceDomain.cs -crlf
+/ServicedComponent.cs -crlf
+/ServicedComponentException.cs -crlf
+/SharedProperty.cs -crlf
+/SharedPropertyGroup.cs -crlf
+/SharedPropertyGroupManager.cs -crlf
+/SxsOption.cs -crlf
+/SynchronizationAttribute.cs -crlf
+/ThreadPoolOption.cs -crlf
+/TransactionAttribute.cs -crlf
+/TransactionStatus.cs -crlf
+/XACTTRANSINFO.cs -crlf
--- /dev/null
+/AudienceUriMode.cs -crlf
--- /dev/null
+/InstrumentationClassAttribute.cs -crlf
+/ManagedNameAttribute.cs -crlf
//
namespace System.Management.Instrumentation
-{\r
- [InstrumentationClass (InstrumentationType.Instance)]\r
+{
+ [InstrumentationClass (InstrumentationType.Instance)]
public abstract class Instance : IInstance {
- bool published;\r
-\r
- [MonoTODO]\r
- protected Instance ()\r
- {\r
- }\r
-\r
+ bool published;
+
+ [MonoTODO]
+ protected Instance ()
+ {
+ }
+
[IgnoreMember]
public bool Published {
get { return published; }
[MonoTODO]
public InstrumentedAttribute()
{
- }\r
-\r
- [MonoTODO]\r
- public InstrumentedAttribute (string namespaceName) : this(namespaceName, null)\r
- {\r
- }\r
-\r
- [MonoTODO]\r
- public InstrumentedAttribute (string namespaceName, string securityDescriptor)\r
- {\r
- }\r
-\r
+ }
+
+ [MonoTODO]
+ public InstrumentedAttribute (string namespaceName) : this(namespaceName, null)
+ {
+ }
+
+ [MonoTODO]
+ public InstrumentedAttribute (string namespaceName, string securityDescriptor)
+ {
+ }
+
public string NamespaceName {
[MonoTODO]
get { throw new NotImplementedException(); }
--- /dev/null
+/AccessControlEntry.cs -crlf
+/AccessControlEntryType.cs -crlf
+/AccessControlList.cs -crlf
+/AcknowledgeTypes.cs -crlf
+/Acknowledgment.cs -crlf
+/ActiveXMessageFormatter.cs -crlf
+/CryptographicProviderType.cs -crlf
+/DefaultPropertiesToSend.cs -crlf
+/EncryptionAlgorithm.cs -crlf
+/EncryptionRequired.cs -crlf
+/GenericAccessRights.cs -crlf
+/HashAlgorithm.cs -crlf
+/Message.resx -crlf
+/MessagePriority.cs -crlf
+/MessagePropertyFilter.cs -crlf
+/MessageQueue.resx -crlf
+/MessageQueueAccessControlEntry.cs -crlf
+/MessageQueueAccessRights.cs -crlf
+/MessageQueueCriteria.cs -crlf
+/MessageQueueEnumerator.cs -crlf
+/MessageQueueErrorCode.cs -crlf
+/MessageQueuePermission.cs -crlf
+/MessageQueuePermissionAccess.cs -crlf
+/MessageQueuePermissionAttribute.cs -crlf
+/MessageQueuePermissionEntry.cs -crlf
+/MessageQueuePermissionEntryCollection.cs -crlf
+/MessageQueueTransaction.cs -crlf
+/MessageQueueTransactionStatus.cs -crlf
+/MessageQueueTransactionType.cs -crlf
+/MessageType.cs -crlf
+/MessagingDescriptionAttribute.cs -crlf
+/PeekCompletedEventArgs.cs -crlf
+/PeekCompletedEventHandler.cs -crlf
+/ReceiveCompletedEventArgs.cs -crlf
+/ReceiveCompletedEventHandler.cs -crlf
+/StandardAccessRights.cs -crlf
+/Trustee.cs -crlf
+/TrusteeType.cs -crlf
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace System.Messaging \r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.ComponentModel;\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.ComponentModel;\r
//\r
// (C) 2003 Peter Van Isacker, Rafael Teixeira\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace System.Messaging \r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections;\r
\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace System.Messaging\r
get {throw new NotImplementedException();}
[MonoTODO]
set {throw new NotImplementedException();}
- }\r
-\r
- [DefaultValue (EncryptionRequired.None)]\r
+ }
+
+ [DefaultValue (EncryptionRequired.None)]
public EncryptionRequired EncryptionRequired {
[MonoTODO]
get {throw new NotImplementedException();}
get {throw new NotImplementedException();}
[MonoTODO]
set {throw new NotImplementedException();}
- }\r
-\r
- [DefaultValue (UninstallAction.Remove)]\r
+ }
+
+ [DefaultValue (UninstallAction.Remove)]
public UninstallAction UninstallAction {
[MonoTODO]
get {throw new NotImplementedException();}
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections;\r
\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
\r
namespace System.Messaging \r
--- /dev/null
+/MessageQueuePermissionAttributeTest.cs -crlf
case 12:\r
case 13:\r
case 32:\r
- case 92:
+ case 92:\r
#if NET_2_0\r
- case 133:
+ case 133:\r
#endif\r
case 160:\r
// known invalid chars\r
abstract public bool IsAllowed (WebRequest request);
public Exception Exception {
- get { return null; }
+ get; internal set;
}
}
}
+2010-07-23 Sebastien Pouliot <sebastien@ximian.com>
+
+ * BaseDomainPolicy.cs: Add internal setter for Exception property
+ * ClientAccessPolicy.cs: Re-order checks (to match SL) and throw
+ NotSupportedException for invalid headers
+
2010-07-20 Sebastien Pouliot <sebastien@ximian.com>
* NoAccessPolicy.cs: Set default to SecurityException each time
// does something allow our URI in this policy ?
foreach (AllowFrom af in policy.AllowedServices) {
// fake "GET" as method as this does not apply to sockets
- if (af.IsAllowed (ApplicationUri, "GET", null)) {
+ if (af.IsAllowed (ApplicationUri, "GET")) {
// if so, is our request port allowed ?
if (policy.PortAllowed (endpoint.Port))
return true;
public bool IsAllowed (Uri uri, string method, params string [] headerKeys)
{
- // at this stage the URI has removed the "offending" characters so we need to look at the original
- if (!CheckOriginalPath (uri))
- return false;
-
foreach (AccessPolicy policy in AccessPolicyList) {
// does something allow our URI in this policy ?
foreach (AllowFrom af in policy.AllowedServices) {
// is the application (XAP) URI allowed by the policy ?
- if (af.IsAllowed (ApplicationUri, method, headerKeys)) {
+ // check headers
+ if (!af.HttpRequestHeaders.IsAllowed (headerKeys)) {
+ Exception = new NotSupportedException ();
+ return false;
+ }
+
+ if (af.IsAllowed (ApplicationUri, method)) {
foreach (GrantTo gt in policy.GrantedResources) {
// is the requested access to the Uri granted under this policy ?
- if (gt.IsGranted (uri))
- return true;
+ if (gt.IsGranted (uri)) {
+ // at this stage the URI has removed the "offending" characters so
+ // we need to look at the original
+ return CheckOriginalPath (uri);
+ }
}
}
}
public string Scheme { get; internal set; }
- public bool IsAllowed (Uri uri, string method, string [] headerKeys)
+ public bool IsAllowed (Uri uri, string method)
{
- // check headers
- if (!HttpRequestHeaders.IsAllowed (headerKeys))
- return false;
-
// check scheme
if ((Scheme.Length > 0) && (Scheme == uri.Scheme)) {
switch (Scheme) {
--- /dev/null
+/DLR-0.92-BigIntegerv2.patch -crlf
---- ./Runtime/Microsoft.Dynamic/Math/BigIntegerV2.cs 2009-10-19 13:36:38.000000000 -0400
-+++ /cvs/mcs/class/System.Numerics/System.Numerics/BigInteger.cs 2009-10-31 12:13:55.000000000 -0400
-@@ -12,7 +12,6 @@
+--- ./Runtime/Microsoft.Dynamic/Math/BigIntegerV2.cs 2009-10-19 13:36:38.000000000 -0400\r
++++ /cvs/mcs/class/System.Numerics/System.Numerics/BigInteger.cs 2009-10-31 12:13:55.000000000 -0400\r
+@@ -12,7 +12,6 @@\r
*\r
*\r
* ***************************************************************************/\r
\r
using System;\r
using System.Collections.Generic;\r
-@@ -20,8 +19,6 @@
+@@ -20,8 +19,6 @@\r
using System.Diagnostics.CodeAnalysis;\r
using System.Globalization;\r
using System.Text;\r
\r
namespace Microsoft.Scripting.Math {\r
/// <summary>\r
-@@ -104,7 +101,8 @@
+@@ -104,7 +101,8 @@\r
/// (inverse of ToByteArray())\r
/// </summary>\r
public static BigInteger Create(byte[] v) {\r
if (v.Length == 0) return Create(0);\r
\r
int byteCount = v.Length;\r
-@@ -339,10 +337,13 @@
+@@ -339,10 +337,13 @@\r
\r
[CLSCompliant(false)]\r
public BigInteger(int sign, params uint[] data) {\r
\r
this.data = data;\r
this.sign = (short)(length == 0 ? 0 : sign);\r
-@@ -507,7 +508,7 @@
+@@ -507,7 +508,7 @@\r
}\r
\r
public bool TryToFloat64(out double result) {\r
System.Globalization.NumberStyles.Number,\r
System.Globalization.CultureInfo.InvariantCulture.NumberFormat,\r
out result);\r
-@@ -1355,17 +1356,92 @@
+@@ -1355,17 +1356,92 @@\r
return this * this;\r
}\r
\r
public override int GetHashCode() {\r
// The Object.GetHashCode function needs to be consistent with the Object.Equals function.\r
// Languages that build on top of this may have a more flexible equality function and \r
-@@ -1395,12 +1471,10 @@
+@@ -1395,12 +1471,10 @@\r
}\r
}\r
\r
public bool Equals(BigInteger other) {\r
if (object.ReferenceEquals(other, null)) return false;\r
return this == other;\r
-@@ -1492,17 +1566,14 @@
+@@ -1492,17 +1566,14 @@\r
\r
#region IConvertible Members\r
\r
public byte ToByte(IFormatProvider provider) {\r
uint ret;\r
if (AsUInt32(out ret) && (ret & ~0xFF) == 0) {\r
-@@ -1561,7 +1632,6 @@
+@@ -1561,7 +1632,6 @@\r
return trimmedBytes;\r
}\r
\r
public char ToChar(IFormatProvider provider) {\r
int ret;\r
if (AsInt32(out ret) && (ret <= Char.MaxValue) && (ret >= Char.MinValue)) {\r
-@@ -1570,24 +1640,20 @@
+@@ -1570,24 +1640,20 @@\r
throw new OverflowException("big integer won't fit into char");\r
}\r
\r
public short ToInt16(IFormatProvider provider) {\r
int ret;\r
if (AsInt32(out ret) && (ret <= short.MaxValue) && (ret >= short.MinValue)) {\r
-@@ -1596,7 +1662,6 @@
+@@ -1596,7 +1662,6 @@\r
throw new OverflowException("big integer won't fit into short");\r
}\r
\r
public int ToInt32(IFormatProvider provider) {\r
int ret;\r
if (AsInt32(out ret)) {\r
-@@ -1605,7 +1670,6 @@
+@@ -1605,7 +1670,6 @@\r
throw new OverflowException("big integer won't fit into int");\r
}\r
\r
public long ToInt64(IFormatProvider provider) {\r
long ret;\r
if (AsInt64(out ret)) {\r
-@@ -1614,7 +1678,7 @@
+@@ -1614,7 +1678,7 @@\r
throw new OverflowException("big integer won't fit into long");\r
}\r
\r
public sbyte ToSByte(IFormatProvider provider) {\r
int ret;\r
if (AsInt32(out ret) && (ret <= sbyte.MaxValue) && (ret >= sbyte.MinValue)) {\r
-@@ -1623,17 +1687,14 @@
+@@ -1623,17 +1687,14 @@\r
throw new OverflowException("big integer won't fit into sbyte");\r
}\r
\r
public object ToType(Type conversionType, IFormatProvider provider) {\r
if (conversionType == typeof(BigInteger)) {\r
return this;\r
-@@ -1641,7 +1702,7 @@
+@@ -1641,7 +1702,7 @@\r
throw new NotImplementedException();\r
}\r
\r
public ushort ToUInt16(IFormatProvider provider) {\r
uint ret;\r
if (AsUInt32(out ret) && ret <= ushort.MaxValue) {\r
-@@ -1650,7 +1711,7 @@
+@@ -1650,7 +1711,7 @@\r
throw new OverflowException("big integer won't fit into ushort");\r
}\r
\r
public uint ToUInt32(IFormatProvider provider) {\r
uint ret;\r
if (AsUInt32(out ret)) {\r
-@@ -1659,7 +1720,7 @@
+@@ -1659,7 +1720,7 @@\r
throw new OverflowException("big integer won't fit into uint");\r
}\r
\r
public ulong ToUInt64(IFormatProvider provider) {\r
ulong ret;\r
if (AsUInt64(out ret)) {\r
-@@ -1724,4 +1785,3 @@
+@@ -1724,4 +1785,3 @@\r
#endregion \r
}\r
}\r
*
* ***************************************************************************/
-using System;\r
-using System.Collections.Generic;\r
-using System.Diagnostics;\r
-using System.Diagnostics.CodeAnalysis;\r
-using System.Globalization;\r
-using System.Text;\r
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Diagnostics.CodeAnalysis;
+using System.Globalization;
+using System.Text;
using System.Threading;
/*
Optimize BitScanBackward
Use a carry variable to make shift opts do half the number of array ops.
Schoolbook multiply is O(n^2), use Karatsuba /Toom-3 for large numbers
-*/\r
-namespace System.Numerics {\r
+*/
+namespace System.Numerics {
public struct BigInteger : IComparable, IFormattable, IComparable<BigInteger>, IEquatable<BigInteger>
{
//LSB on [0]
{
//FIXME
try {
- return double.Parse (value.ToString (),\r
+ return double.Parse (value.ToString (),
System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
} catch (OverflowException) {
return value.sign == -1 ? double.NegativeInfinity : double.PositiveInfinity;
- }\r
+ }
}
public static explicit operator float (BigInteger value)
{
//FIXME
try {
- return float.Parse (value.ToString (),\r
- System.Globalization.CultureInfo.InvariantCulture.NumberFormat);\r
+ return float.Parse (value.ToString (),
+ System.Globalization.CultureInfo.InvariantCulture.NumberFormat);
} catch (OverflowException) {
return value.sign == -1 ? float.NegativeInfinity : float.PositiveInfinity;
- }\r
+ }
}
public static explicit operator decimal (BigInteger value)
static uint[] MakeTwoComplement (uint[] v)
{
- uint[] res = new uint [v.Length];\r
+ uint[] res = new uint [v.Length];
ulong carry = 1;
for (int i = 0; i < v.Length; ++i) {
for (int i = 1; i < idx; ++i)
mask = (mask << 8) | 0xFF;
- res [res.Length - 1] = last & mask;\r
- return res;\r
+ res [res.Length - 1] = last & mask;
+ return res;
}
string ToString (uint radix, IFormatProvider provider)
}
static byte[] Resize (byte[] v, int len)
- {\r
- byte[] res = new byte [len];\r
- Array.Copy (v, res, Math.Min (v.Length, len));\r
- return res;\r
+ {
+ byte[] res = new byte [len];
+ Array.Copy (v, res, Math.Min (v.Length, len));
+ return res;
}
static uint[] Resize (uint[] v, int len)
{
- uint[] res = new uint [len];\r
- Array.Copy (v, res, Math.Min (v.Length, len));\r
- return res;\r
+ uint[] res = new uint [len];
+ Array.Copy (v, res, Math.Min (v.Length, len));
+ return res;
}
static uint[] CoreAdd (uint[] a, uint[] b)
}
}
}
-}\r
+}
static byte[] huge_add = new byte[] {0xB3, 0x38, 0xD5, 0xFD, 0x45, 0x1A, 0x46, 0xD8, 0xB6, 0xC, 0x2C, 0x9E, 0x9C, 0x61, 0xC4, 0xE0, 0x26, 0xDB, 0xEF, 0x31, 0xC0, 0x67, 0xC3, 0xDD, 0xF0, 0x68, 0x57, 0xBD, 0xEF, 0x79, 0xFF, 0x78, 0x3, 0x35, 0x7, 0x15, 0x95, 0x22, 0x6A, 0x3A, 0x41, 0xCD, 0xD7, 0xD2, 0x91, 0x14, 0x8, 0xB3, 0x65, 0x16, 0xBF, 0x3D, 0x20, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7, };
- static byte[] a_m_b = new byte[] { 0x87, 0x2D, 0x21, 0x0, 0x1E, 0xEB, 0xC3, 0xB0, 0xDD, 0xAC, 0xCB, 0x43, 0x7E, 0x10, 0x9E, 0xAE, 0x45, 0xF2, 0x55, 0x71, 0x73, 0xD4, 0x7A, 0xEB, 0x88, 0xD3, 0xD4, 0xEE, 0x36, 0xBE, 0x9B, 0x2D, 0xB6, 0xB3, 0x8B, 0x66, 0x60, 0x8B, 0x16, 0x76, 0x17, 0x74, 0xFE, 0xD7, 0xB2, 0x96, 0x7B, 0xBD, 0xE2, 0xC4, 0x2D, 0xDC, 0xDE, 0x6A, 0x19, 0xB3, 0x1E, 0x1F, 0xB4, 0xB6, 0x2A, 0xA5, 0x48, };\r
- static byte[] b_m_a = new byte[] { 0x79, 0xD2, 0xDE, 0xFF, 0xE1, 0x14, 0x3C, 0x4F, 0x22, 0x53, 0x34, 0xBC, 0x81, 0xEF, 0x61, 0x51, 0xBA, 0xD, 0xAA, 0x8E, 0x8C, 0x2B, 0x85, 0x14, 0x77, 0x2C, 0x2B, 0x11, 0xC9, 0x41, 0x64, 0xD2, 0x49, 0x4C, 0x74, 0x99, 0x9F, 0x74, 0xE9, 0x89, 0xE8, 0x8B, 0x1, 0x28, 0x4D, 0x69, 0x84, 0x42, 0x1D, 0x3B, 0xD2, 0x23, 0x21, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7, };\r
+ static byte[] a_m_b = new byte[] { 0x87, 0x2D, 0x21, 0x0, 0x1E, 0xEB, 0xC3, 0xB0, 0xDD, 0xAC, 0xCB, 0x43, 0x7E, 0x10, 0x9E, 0xAE, 0x45, 0xF2, 0x55, 0x71, 0x73, 0xD4, 0x7A, 0xEB, 0x88, 0xD3, 0xD4, 0xEE, 0x36, 0xBE, 0x9B, 0x2D, 0xB6, 0xB3, 0x8B, 0x66, 0x60, 0x8B, 0x16, 0x76, 0x17, 0x74, 0xFE, 0xD7, 0xB2, 0x96, 0x7B, 0xBD, 0xE2, 0xC4, 0x2D, 0xDC, 0xDE, 0x6A, 0x19, 0xB3, 0x1E, 0x1F, 0xB4, 0xB6, 0x2A, 0xA5, 0x48, };
+ static byte[] b_m_a = new byte[] { 0x79, 0xD2, 0xDE, 0xFF, 0xE1, 0x14, 0x3C, 0x4F, 0x22, 0x53, 0x34, 0xBC, 0x81, 0xEF, 0x61, 0x51, 0xBA, 0xD, 0xAA, 0x8E, 0x8C, 0x2B, 0x85, 0x14, 0x77, 0x2C, 0x2B, 0x11, 0xC9, 0x41, 0x64, 0xD2, 0x49, 0x4C, 0x74, 0x99, 0x9F, 0x74, 0xE9, 0x89, 0xE8, 0x8B, 0x1, 0x28, 0x4D, 0x69, 0x84, 0x42, 0x1D, 0x3B, 0xD2, 0x23, 0x21, 0x95, 0xE6, 0x4C, 0xE1, 0xE0, 0x4B, 0x49, 0xD5, 0x5A, 0xB7, };
static byte[] huge_mul = new byte[] { 0xFE, 0x83, 0xE1, 0x9B, 0x8D, 0x61, 0x40, 0xD1, 0x60, 0x19, 0xBD, 0x38, 0xF0, 0xFF, 0x90, 0xAE, 0xDD, 0xAE, 0x73, 0x2C, 0x20, 0x23, 0xCF, 0x6, 0x7A, 0xB4, 0x1C, 0xE7, 0xD9, 0x64, 0x96, 0x2C, 0x87, 0x7E, 0x1D, 0xB3, 0x8F, 0xD4, 0x33, 0xBA, 0xF4, 0x22, 0xB4, 0xDB, 0xC0, 0x5B, 0xA5, 0x64, 0xA0, 0xBC, 0xCA, 0x3E, 0x94, 0x95, 0xDA, 0x49, 0xE2, 0xA8, 0x33, 0xA2, 0x6A, 0x33, 0xB1, 0xF2, 0xEA, 0x99, 0x32, 0xD0, 0xB2, 0xAE, 0x55, 0x75, 0xBD, 0x19, 0xFC, 0x9A, 0xEC, 0x54, 0x87, 0x2A, 0x6, 0xCC, 0x78, 0xDA, 0x88, 0xBB, 0xAB, 0xA5, 0x47, 0xEF, 0xC7, 0x2B, 0xC7, 0x5B, 0x32, 0x31, 0xCD, 0xD9, 0x53, 0x96, 0x1A, 0x9D, 0x9A, 0x57, 0x40, 0x51, 0xB6, 0x5D, 0xC, 0x17, 0xD1, 0x86, 0xE9, 0xA4, 0x20, };
- static byte[] huge_div = new byte[] { 0x0, };\r
- static byte[] huge_rem = new byte[] { 0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD, 0x39, 0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D, 0xD3, 0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4, 0x6D, 0xF6, 0x8C, };\r
+ static byte[] huge_div = new byte[] { 0x0, };
+ static byte[] huge_rem = new byte[] { 0x1D, 0x33, 0xFB, 0xFE, 0xB1, 0x2, 0x85, 0x44, 0xCA, 0xDC, 0xFB, 0x70, 0xD, 0x39, 0xB1, 0x47, 0xB6, 0xE6, 0xA2, 0xD1, 0x19, 0x1E, 0x9F, 0xE4, 0x3C, 0x1E, 0x16, 0x56, 0x13, 0x9C, 0x4D, 0xD3, 0x5C, 0x74, 0xC9, 0xBD, 0xFA, 0x56, 0x40, 0x58, 0xAC, 0x20, 0x6B, 0x55, 0xA2, 0xD5, 0x41, 0x38, 0xA4, 0x6D, 0xF6, 0x8C, };
static byte[][] add_a = new byte[][] {
new byte[] {1},
new byte[] {0xFF},
--- /dev/null
+/makefile.build -crlf
+/net_1_1_java_System.Runtime.Remoting.dll.exclude.sources -crlf
+/net_1_1_java_System.Runtime.Remoting.dll.sources -crlf
--- /dev/null
+/System.Runtime.Remoting.xml -crlf
--- /dev/null
+/AggregateDictionary.cs -crlf
+/HttpClientTransportSinkProvider.cs -crlf
--- /dev/null
+/IpcChannel.cs -crlf
+/IpcClientChannel.cs -crlf
+/IpcServerChannel.cs -crlf
Type type = obj.GetType ();
- if (type == typeof (String)) \r
+ if (type == typeof (String))
{
writer.Write ((byte)TypeId.String);
writer.Write ((String)obj);
--- /dev/null
+/TcpConnectionPool.cs -crlf
--- /dev/null
+/SoapClientFormatterSink.cs -crlf
+/SoapClientFormatterSinkProvider.cs -crlf
+/SoapMessageFormatter.cs -crlf
+/SoapServerFormatterSink.cs -crlf
+/SoapServerFormatterSinkProvider.cs -crlf
--- /dev/null
+/BaseCalls.cs -crlf
+/CallSeq.cs -crlf
+/ContextHookAttribute.cs -crlf
+/ContextsTest.cs -crlf
+/HttpCalls.cs -crlf
+/RemotingServicesTest.cs -crlf
+/ServerObject.cs -crlf
set { calls = value; }\r
}\r
}\r
-}
+}\r
--- /dev/null
+/README -crlf
+/Sample.txt -crlf
+/makefile.build -crlf
+/net_1_1_java_System.Runtime.Serialization.Formatters.Soap.dll.sources -crlf
--- /dev/null
+/System.Runtime.Serialization.Formatters.Soap.xml -crlf
--- /dev/null
+/SoapFormatter.cs -crlf
+/SoapReader.cs -crlf
+/SoapWriter.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/InternalSoapValuesTest.cs -crlf
+/SerializationTest.cs -crlf
+/SoapFormatterTest.cs -crlf
+/Test.cmbx -crlf
+/Test.prjx -crlf
[Serializable]\r
class SerializedClass\r
{\r
- public string str = "rrr";
- public bool m_bool;
- public sbyte m_sbyte;
- public byte m_byte;
- public long m_long;
- public ulong m_ulong;
- public int m_int;
- public uint m_uint;
- public float m_float;
- public double m_double;
- public decimal m_decimal;
- public short m_short;
- public ushort m_ushort;
- public object m_object = new object();
- public TimeSpan m_timeSpan = TimeSpan.FromTicks(TimeSpan.TicksPerDay);
+ public string str = "rrr";\r
+ public bool m_bool;\r
+ public sbyte m_sbyte;\r
+ public byte m_byte;\r
+ public long m_long;\r
+ public ulong m_ulong;\r
+ public int m_int;\r
+ public uint m_uint;\r
+ public float m_float;\r
+ public double m_double;\r
+ public decimal m_decimal;\r
+ public short m_short;\r
+ public ushort m_ushort;\r
+ public object m_object = new object();\r
+ public TimeSpan m_timeSpan = TimeSpan.FromTicks(TimeSpan.TicksPerDay);\r
public byte[] m_bytes = new byte[10];\r
public DateTime m_time = DateTime.Now;\r
}\r
using System.Runtime.Serialization.Formatters.Soap;\r
using System.Runtime.Remoting.Metadata.W3cXsd2001;\r
using System.IO;\r
-using NUnit.Framework;
+using NUnit.Framework;\r
\r
namespace MonoTests.System.Runtime.Serialization.Formatters.Soap {\r
\r
Assertion.AssertEquals("#Version1 Version2", "Version2", objReturn.GetType().Name);\r
Assertion.AssertEquals("#_value", 123, ((Version2) objReturn)._value);\r
Assertion.AssertEquals("#_foo", "Default value", ((Version2) objReturn)._foo);\r
- }
-
+ }\r
+ \r
[Test]\r
- public void TestMethodSignatureSerialization ()
+ public void TestMethodSignatureSerialization ()\r
{\r
Header h = new Header ("__MethodSignature", new Type [] { typeof(string),typeof(SignatureTest[]) }, false, "http://schemas.microsoft.com/clr/soap/messageProperties");\r
\r
\r
SoapMessage t = new SoapMessage ();\r
sf.TopObject = t;\r
- t = (SoapMessage) sf.Deserialize (ms);
-
+ t = (SoapMessage) sf.Deserialize (ms);\r
+ \r
Assertion.AssertNotNull ("#1", t.Headers[0].Value);\r
- Assertion.AssertEquals ("#2", t.Headers[0].Value.GetType (), typeof(Type[]));
-
- Type[] ts = (Type[]) t.Headers[0].Value;
-
- Assertion.AssertEquals ("#3", 2, ts.Length);
+ Assertion.AssertEquals ("#2", t.Headers[0].Value.GetType (), typeof(Type[]));\r
+ \r
+ Type[] ts = (Type[]) t.Headers[0].Value;\r
+ \r
+ Assertion.AssertEquals ("#3", 2, ts.Length);\r
Assertion.AssertNotNull ("#4", ts[0]);\r
- Assertion.AssertNotNull ("#5", ts[1]);
- Console.WriteLine ("PPP:" + ts[0].GetType());
+ Assertion.AssertNotNull ("#5", ts[1]);\r
+ Console.WriteLine ("PPP:" + ts[0].GetType());\r
Assertion.AssertEquals ("#6", typeof(string), ts[0]);\r
Assertion.AssertEquals ("#7", typeof(SignatureTest[]), ts[1]);\r
}\r
- }
-
+ }\r
+ \r
[Serializable]\r
public class SignatureTest\r
{\r
--- /dev/null
+/System.Security.Policy.ApplicationTrust.xml -crlf
--- /dev/null
+/AttributesTest.cs -crlf
+/DataContractSerializerTest_FrameworkTypes.cs -crlf
+/DataContractSerializerTest_FrameworkTypes_System.Data.cs -crlf
+/DataContractSerializerTest_FrameworkTypes_System.cs -crlf
+/DataContractSerializerTest_FrameworkTypes_mscorlib.cs -crlf
using System;
-using System.Xml;\r
+using System.Xml;
using NUnit.Framework;
namespace MonoTests
-{\r
+{
public class XmlComparer
{
[Flags]
public string Expected
{
get { return _expected; }
- }\r
-\r
- public static void AssertAreEqual (string expected, string actual) {\r
- AssertAreEqual (expected, actual, String.Empty);\r
- }\r
-\r
- public static void AssertAreEqual (string expected, string actual, string msg) {\r
-\r
- try {\r
- XmlDocument or = new XmlDocument ();\r
- or.LoadXml (expected);\r
- XmlDocument dr = new XmlDocument ();\r
- dr.LoadXml (actual);\r
- XmlComparer comparer = new XmlComparer ();\r
- if (!comparer.AreEqual (or, dr))\r
- Assert.AreEqual (comparer.Expected, comparer.Actual, msg);\r
- }\r
- catch (AssertionException) {\r
- throw;\r
- }\r
- catch (Exception e) {\r
- //swallow e when there is XML error and fallback\r
- //to the text comparison\r
- Assert.AreEqual (expected, actual, msg);\r
- }\r
+ }
+
+ public static void AssertAreEqual (string expected, string actual) {
+ AssertAreEqual (expected, actual, String.Empty);
+ }
+
+ public static void AssertAreEqual (string expected, string actual, string msg) {
+
+ try {
+ XmlDocument or = new XmlDocument ();
+ or.LoadXml (expected);
+ XmlDocument dr = new XmlDocument ();
+ dr.LoadXml (actual);
+ XmlComparer comparer = new XmlComparer ();
+ if (!comparer.AreEqual (or, dr))
+ Assert.AreEqual (comparer.Expected, comparer.Actual, msg);
+ }
+ catch (AssertionException) {
+ throw;
+ }
+ catch (Exception e) {
+ //swallow e when there is XML error and fallback
+ //to the text comparison
+ Assert.AreEqual (expected, actual, msg);
+ }
}
}
}
--- /dev/null
+/XmlDsigNodeList.cs -crlf
--- /dev/null
+/ProtectedData.cs -crlf
+/ProtectedMemory.cs -crlf
private ArrayList _list;
public CryptographicAttributeObjectCollection ()
- {\r
+ {
_list = new ArrayList ();
}
public CryptographicAttributeObjectCollection (CryptographicAttributeObject attribute)
: this ()
- {\r
+ {
_list.Add (attribute);
}
public int Add (AsnEncodedData asnEncodedData)
{
if (asnEncodedData == null)
- throw new ArgumentNullException ("asnEncodedData");\r
-\r
- AsnEncodedDataCollection coll = new AsnEncodedDataCollection (asnEncodedData);\r
+ throw new ArgumentNullException ("asnEncodedData");
+
+ AsnEncodedDataCollection coll = new AsnEncodedDataCollection (asnEncodedData);
return Add (new CryptographicAttributeObject (asnEncodedData.Oid, coll));
}
public int Add (CryptographicAttributeObject attribute)
{
if (attribute == null)
- throw new ArgumentNullException ("attribute");\r
-\r
- int existing = -1;\r
- string oid = attribute.Oid.Value;\r
- for (int i=0; i < _list.Count; i++) {\r
- if ((_list[i] as CryptographicAttributeObject).Oid.Value == oid) {\r
- existing = i;\r
- break;\r
- }\r
- }\r
- if (existing >= 0) {\r
- CryptographicAttributeObject cao = this[existing];\r
- foreach (AsnEncodedData value in attribute.Values) {\r
- cao.Values.Add (value);\r
- }\r
- return existing;\r
- } else {\r
- return _list.Add (attribute);\r
+ throw new ArgumentNullException ("attribute");
+
+ int existing = -1;
+ string oid = attribute.Oid.Value;
+ for (int i=0; i < _list.Count; i++) {
+ if ((_list[i] as CryptographicAttributeObject).Oid.Value == oid) {
+ existing = i;
+ break;
+ }
+ }
+ if (existing >= 0) {
+ CryptographicAttributeObject cao = this[existing];
+ foreach (AsnEncodedData value in attribute.Values) {
+ cao.Values.Add (value);
+ }
+ return existing;
+ } else {
+ return _list.Add (attribute);
}
}
}
public void Remove (CryptographicAttributeObject attribute)
- {\r
- if (attribute == null)\r
- throw new ArgumentNullException ("attribute");\r
-\r
+ {
+ if (attribute == null)
+ throw new ArgumentNullException ("attribute");
+
_list.Remove (attribute);
}
}
--- /dev/null
+/EncryptedXmlSample3.xml -crlf
--- /dev/null
+/WebServiceHostTest.cs -crlf
public class WebServiceHostTest\r
{\r
[Test]\r
- [Category("NotWorking")]
+ [Category("NotWorking")]\r
public void ServiceDebugBehaviorTest () {\r
\r
var host = new WebServiceHost (typeof (MyService), new Uri ("http://localhost:8080/"));\r
}\r
\r
[Test]\r
- [Category("NotWorking")]
+ [Category("NotWorking")]\r
public void WebHttpBehaviorTest2 () {\r
\r
var host = new WebServiceHost (typeof (MyService), new Uri ("http://localhost:8080/"));\r
--- /dev/null
+/System.ServiceModel_test_net_3_0.dll.config -crlf
+/System.ServiceModel_test_net_3_5.dll.config -crlf
--- /dev/null
+/README.txt -crlf
--- /dev/null
+/AsyncPatternServer.cs -crlf
+/ExitProcessHelperServer.cs -crlf
+/OperationContractServer.cs -crlf
+/PrimitiveTester.cs -crlf
--- /dev/null
+/AsyncPatternContract.cs -crlf
+/DualContract.cs -crlf
+/ExitpProcessHelper.cs -crlf
+/OperationContract.cs -crlf
--- /dev/null
+/AsyncPatternTester.cs -crlf
+/DualContractTester.cs -crlf
+/ExitProcessHelper.cs -crlf
+/OperationContractTester.cs -crlf
using System;
-using System.Xml;\r
+using System.Xml;
using System.IO;
namespace MonoTests.stand_alone.WebHarness
return false;//and another has none
return AreEqualNodeList (expected.ChildNodes, actual.ChildNodes);
}
- }\r
-\r
- public bool AreEqual (string expected, string actual) \r
- {\r
- XmlDocument eDocument = new XmlDocument();\r
- eDocument.LoadXml(expected);\r
- XmlNode eNode = eDocument.DocumentElement;\r
- XmlDocument aDocument = new XmlDocument ();\r
- aDocument.LoadXml (actual);\r
- XmlNode aNode = aDocument.DocumentElement;\r
- return AreEqual (eNode, aNode);\r
+ }
+
+ public bool AreEqual (string expected, string actual)
+ {
+ XmlDocument eDocument = new XmlDocument();
+ eDocument.LoadXml(expected);
+ XmlNode eNode = eDocument.DocumentElement;
+ XmlDocument aDocument = new XmlDocument ();
+ aDocument.LoadXml (actual);
+ XmlNode aNode = aDocument.DocumentElement;
+ return AreEqual (eNode, aNode);
}
public string LastCompare
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/basicHttpBinding -crlf
+/client.endpoint -crlf
+/client.endpoint.config -crlf
+/client.metadata -crlf
+/client.metadata.config -crlf
+/customBinding -crlf
+/customBinding.config -crlf
+/empty -crlf
+/empty.config -crlf
+/endpointBehaviors -crlf
+/endpointBehaviors.config -crlf
+/extensions -crlf
+/extensions.config -crlf
+/netTcpBinding -crlf
+/netTcpBinding.config -crlf
+/service -crlf
+/service.config -crlf
+/serviceBehaviors -crlf
+/serviceBehaviors.config -crlf
+/test1 -crlf
+/userBinding -crlf
+/userBinding.config -crlf
+/wsHttpBinding -crlf
+/wsHttpBinding.config -crlf
<xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
- <xs:documentation>\r
- If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements).\r
+ <xs:documentation>
+ If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements).
</xs:documentation>
</xs:annotation>
</xs:any>
--- /dev/null
+/Site.css -crlf
+/Site.master -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/makefile.build -crlf
+/run-tests.cmd -crlf
+/run-tests.selenium.cmd -crlf
--- /dev/null
+/MicrosoftAjaxExtension.js -crlf
+/MicrosoftAjaxWebFormsExtension.js -crlf
--- /dev/null
+/ScriptModule.cs -crlf
+/ScriptResourceHandler.cs -crlf
--- /dev/null
+/AuthenticationService.cs -crlf
+/ProxyGenerator.cs -crlf
readonly ScriptingAuthenticationServiceSection _section;\r
\r
public AuthenticationService () {\r
- _section = (ScriptingAuthenticationServiceSection) WebConfigurationManager.GetSection ("system.web.extensions/scripting/webServices/authenticationService");
+ _section = (ScriptingAuthenticationServiceSection) WebConfigurationManager.GetSection ("system.web.extensions/scripting/webServices/authenticationService");\r
}\r
\r
void EnsureEnabled() {\r
string contentType = request.ContentType;
if (!String.IsNullOrEmpty (contentType) && contentType.StartsWith ("application/json", StringComparison.OrdinalIgnoreCase)) {
Type handlerType = null;
- if (url.EndsWith (ProfileService.DefaultWebServicePath, StringComparison.Ordinal))\r
+ if (url.EndsWith (ProfileService.DefaultWebServicePath, StringComparison.Ordinal))
handlerType = typeof (ProfileService);
else
if (url.EndsWith (AuthenticationService.DefaultWebServicePath, StringComparison.Ordinal))
--- /dev/null
+/RegisteredArrayDeclaration.cs -crlf
+/RegisteredDisposeScript.cs -crlf
+/RegisteredExpandoAttribute.cs -crlf
+/RegisteredHiddenField.cs -crlf
+/RegisteredScript.cs -crlf
+/RegisteredScriptType.cs -crlf
--- /dev/null
+/CalendarInCalendarOut.aspx -crlf
+/CancelPostback.js -crlf
+/ClientPageLifecycleEvents.aspx -crlf
+/NoScriptManager.aspx -crlf
+/StopAsynchronousPostback.aspx -crlf
+/TwoPanelsProgress.aspx -crlf
+/TwoScriptManagers.aspx -crlf
+/TwoUpdatePanels.aspx -crlf
+/UpdateButtonInside.aspx -crlf
+/UpdateButtonOutside.aspx -crlf
+/Web.config -crlf
--- /dev/null
+/AjaxScript.aspx -crlf
+/AjaxScriptComplete.aspx -crlf
+/HelloWorldService.asmx -crlf
--- /dev/null
+/Contacts.xml -crlf
+/SurveyQuestions.xml -crlf
--- /dev/null
+/ArrayMembersSampleCSharp.aspx -crlf
--- /dev/null
+/BooleanParseSampleCSharp.aspx -crlf
--- /dev/null
+/ClientEventTest.js -crlf
+/default.aspx -crlf
--- /dev/null
+/EventSyntax.js -crlf
+/default.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/Question.js -crlf
+/Section.js -crlf
--- /dev/null
+/Default.aspx -crlf
+/Question.js -crlf
+/Section.js -crlf
--- /dev/null
+/DynamicScriptReferences1.aspx -crlf
+/DynamicScriptReferences2.aspx -crlf
--- /dev/null
+/Scripts.debug.js -crlf
+/Scripts.js -crlf
--- /dev/null
+/Enumeration.aspx -crlf
+/Enumeration.js -crlf
+/Inheritance.aspx -crlf
+/Inheritance.js -crlf
+/Interface.aspx -crlf
+/Interface.js -crlf
+/Namespace.aspx -crlf
+/Namespace.js -crlf
+/Reflection.aspx -crlf
--- /dev/null
+/ErrorArgumentNullSampleCSharp.aspx -crlf
+/ErrorCreateSampleCSharp.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/FocusBehavior.js -crlf
+/FocusExtender.cs -crlf
--- /dev/null
+/Default.aspx -crlf
+/SampleTextBox.cs -crlf
+/SampleTextBox.js -crlf
--- /dev/null
+/CheckAnswer.js -crlf
+/ClientVerification.cs -crlf
+/Default.aspx -crlf
+/VerificationResources.it.resx -crlf
+/VerificationResources.resx -crlf
--- /dev/null
+/localeFormat.aspx -crlf
+/web.config -crlf
--- /dev/null
+/localeFormat.aspx -crlf
+/web.config -crlf
--- /dev/null
+/localeFormat.aspx -crlf
+/web.config -crlf
--- /dev/null
+/localeFormat.aspx -crlf
+/web.config -crlf
--- /dev/null
+/MyAuthenticationService.asmx -crlf
--- /dev/null
+/MyProfileService.asmx -crlf
--- /dev/null
+/NumberParseSampleCSharp.aspx -crlf
--- /dev/null
+/TicketExampleCS.aspx -crlf
--- /dev/null
+/PartialPageRenderingOverviewCS.aspx -crlf
+/PartialPageRenderingOverviewSyntaxCS.aspx -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/CheckAnswer.it-IT.js -crlf
+/CheckAnswer.js -crlf
--- /dev/null
+/Employees.aspx -crlf
--- /dev/null
+/QuickStartTestSuite.html -crlf
--- /dev/null
+/PageRequestManagerTestSuite.html -crlf
--- /dev/null
+/UpdatePanelTestSuite.html -crlf
--- /dev/null
+/StringBuilderOverviewSample.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/HighVis.js -crlf
+/HoverButton.js -crlf
--- /dev/null
+/default.aspx -crlf
+/web.config -crlf
--- /dev/null
+/default.aspx -crlf
+/web.config -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/HoverButton.js -crlf
--- /dev/null
+/CallWebServiceMethods.aspx -crlf
+/CallWebServiceMethods.js -crlf
+/WebService.asmx -crlf
--- /dev/null
+/ConnectingEndPoints.aspx -crlf
+/ConnectingEndPoints.js -crlf
+/getTarget.htm -crlf
+/postTarget.aspx -crlf
--- /dev/null
+/WebService.asmx -crlf
+/WebServiceMethodError.aspx -crlf
+/WebServiceMethodError.js -crlf
--- /dev/null
+/HandleColor.asmx -crlf
+/HandleColor.js -crlf
+/default.aspx -crlf
--- /dev/null
+/ClientDeserializeServerSerialize.aspx -crlf
+/ClientSerializeServerDeserialize.aspx -crlf
--- /dev/null
+/WebService.asmx -crlf
+/WebServiceMultipleCallers.js -crlf
+/multiplecallers.aspx -crlf
--- /dev/null
+/PageMethod.aspx -crlf
+/PageMethod.js -crlf
--- /dev/null
+/HandleColor.asmx -crlf
+/HandleColor.js -crlf
+/default.aspx -crlf
--- /dev/null
+/HandleColor.asmx -crlf
+/HandleColor.js -crlf
+/default.aspx -crlf
--- /dev/null
+/ServerTypes.asmx -crlf
+/ServerTypes.js -crlf
+/default.aspx -crlf
--- /dev/null
+/ServerTime.asmx -crlf
+/ServerTime.aspx -crlf
--- /dev/null
+/SimpleWebService.asmx -crlf
+/SimpleWebService.aspx -crlf
--- /dev/null
+/UsingProxyClass.asmx -crlf
+/UsingProxyClass.js -crlf
+/default.aspx -crlf
--- /dev/null
+/WebRequest.js -crlf
+/getTarget.htm -crlf
+/postTarget.aspx -crlf
+/webrequest.aspx -crlf
--- /dev/null
+/WebRequestManager.aspx -crlf
+/WebRequestManager.js -crlf
+/getTarget.htm -crlf
--- /dev/null
+/WebService.asmx -crlf
+/default.aspx -crlf
+/generics.js -crlf
--- /dev/null
+/WebService.asmx -crlf
+/WebServiceProxy.aspx -crlf
+/WebServiceProxy.js -crlf
--- /dev/null
+/XmlHttpExecutor.aspx -crlf
+/XmlHttpExecutor.js -crlf
+/getTarget.aspx -crlf
+/getTarget.htm -crlf
+/getTarget.xml -crlf
--- /dev/null
+/Authentication.js -crlf
+/CreateNewUser.aspx -crlf
+/login.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/Web.config.txt -crlf
--- /dev/null
+/Login.aspx -crlf
+/LoginControl.ascx -crlf
--- /dev/null
+/Default.aspx -crlf
+/Web.config -crlf
--- /dev/null
+/Profile.js -crlf
+/login.aspx -crlf
--- /dev/null
+/LoginProfileControl.ascx -crlf
+/Profile.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/PageRequestManager_AbortPostBackCS.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/PageRequestManager_isInAsyncPostBack.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/PostBackTriggerCS.aspx -crlf
--- /dev/null
+/ConfigSectionSample.cs -crlf
+/DefaultDummy.aspx -crlf
--- /dev/null
+/DefaultDummy.aspx -crlf
+/ScriptIgnoreSample.cs -crlf
--- /dev/null
+/Default.aspx -crlf
+/TypeResolver.cs -crlf
--- /dev/null
+/Default.aspx -crlf
+/ListItemCollectionConverter.cs -crlf
--- /dev/null
+/GenerateScriptTypeSample.asmx -crlf
--- /dev/null
+/WebService.asmx -crlf
--- /dev/null
+/ScriptServiceSample.asmx -crlf
--- /dev/null
+/AsyncPostBackTriggerCS.aspx -crlf
--- /dev/null
+/UpdatePanelWizardValidatorsCS.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/Default.aspx.cs -crlf
+/Default.aspx.designer.cs -crlf
--- /dev/null
+/Default.aspx -crlf
+/Default.aspx.cs -crlf
+/Default.aspx.designer.cs -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/ScriptManager_AsyncPostBackErrorMessageCS.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/ErrorHandling.js -crlf
+/default.aspx -crlf
--- /dev/null
+/ScriptManager1CS.aspx -crlf
+/ScriptManager2CS.aspx -crlf
--- /dev/null
+/WebUserControl.ascx -crlf
--- /dev/null
+/ScriptManager_RegisterClientScriptBlockCS.aspx -crlf
--- /dev/null
+/Contacts.xml -crlf
--- /dev/null
+/ScriptManager_RegisterClientScriptIncludeCS.aspx -crlf
--- /dev/null
+/script_alertdiv.js -crlf
--- /dev/null
+/ScriptManagerRegisterDataItemCS.aspx -crlf
--- /dev/null
+/CustomClient.js -crlf
+/Default.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/UpdatePanelAnimation.js -crlf
--- /dev/null
+/Default.aspx -crlf
+/UpdatePanelAnimation.js -crlf
+/customcontrol.cs -crlf
--- /dev/null
+/Default.aspx -crlf
--- /dev/null
+/CustomScript.js -crlf
--- /dev/null
+/UpdatePanelConstructorCS.aspx -crlf
--- /dev/null
+/CustomContentTemplate.cs -crlf
+/UpdatePanelContentTemplateCS.aspx -crlf
+/UpdatePanelContentTemplateDynamicCS.aspx -crlf
--- /dev/null
+/CustomUpdatePanel.cs -crlf
+/UpdatePanelCreateContentTemplateContainerCS.aspx -crlf
--- /dev/null
+/UpdatePanelRenderModeCS.aspx -crlf
--- /dev/null
+/UpdatePanelUpdateMode2CS.aspx -crlf
+/UpdatePanelUpdateMode3CS.aspx -crlf
+/UpdatePanelUpdateModeCS.aspx -crlf
--- /dev/null
+/UpdatePanelExample1CS.aspx -crlf
+/UpdatePanelExample2CS.aspx -crlf
+/UpdatePanelExample3CS.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/ValidationSummaryCS.aspx -crlf
--- /dev/null
+/WizardValidationSummaryCS.aspx -crlf
--- /dev/null
+/UpdatePanel1CS.aspx -crlf
+/UpdatePanel2CS.aspx -crlf
+/UpdatePanel3CS.aspx -crlf
+/UpdatePanel4CS.aspx -crlf
--- /dev/null
+/UpdatePanelHowToNoUpdatePanel.aspx -crlf
+/UpdatePanelHowToWithUpdatePanel.aspx -crlf
--- /dev/null
+/ErrorHandlingBasicsCS.aspx -crlf
+/ErrorHandlingExampleCS.aspx -crlf
--- /dev/null
+/UpdatePanelHowTo1CS.aspx -crlf
+/UpdatePanelHowTo2CS.aspx -crlf
--- /dev/null
+/WebUserControl.ascx -crlf
--- /dev/null
+/MasterPageCS.master -crlf
+/UpdatePanelContentPage2CS.aspx -crlf
+/UpdatePanelContentPage3CS.aspx -crlf
+/UpdatePanelContentPageCS.aspx -crlf
+/UpdatePanelContentPageDisablePartialRenderingCS.aspx -crlf
--- /dev/null
+/UpdatePanelDynamicallyUpdatedCS1.aspx -crlf
+/UpdatePanelDynamicallyUpdatedCS2.aspx -crlf
+/UpdatePanelDynamicallyUpdatedCS3.aspx -crlf
--- /dev/null
+/UpdatePanelTriggerBasicsCS.aspx -crlf
+/UpdatePanelTriggerExampleCS.aspx -crlf
--- /dev/null
+/SurveyQuestionsExample.aspx -crlf
--- /dev/null
+/NewsHeadLineExampleCS.aspx -crlf
+/SimpleExample1CS.aspx -crlf
+/SimpleExample2CS.aspx -crlf
--- /dev/null
+/SimpleExample1CS.aspx -crlf
+/SimpleExample2CS.aspx -crlf
+/SimpleExample3CS.aspx -crlf
--- /dev/null
+/ExclusivePostBackBasicsCS.aspx -crlf
+/ExclusivePostBackCS.aspx -crlf
--- /dev/null
+/MasterCS.master -crlf
+/UpdatePanelCS.aspx -crlf
+/UpdatePanelContentPageCS.aspx -crlf
+/UpdatePanelNestedCS.aspx -crlf
+/UpdatePanelProgrammaticallyCS.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/ProductQueryScript.js -crlf
+/ProductQueryService.asmx -crlf
+/default.aspx -crlf
--- /dev/null
+/ProductQueryScript.js -crlf
+/ProductQueryService.asmx -crlf
+/default.aspx -crlf
--- /dev/null
+/UpdatePanelAnimation.js -crlf
+/default.aspx -crlf
--- /dev/null
+/CancelPostback.js -crlf
+/default.aspx -crlf
--- /dev/null
+/PostbackPrecedence.js -crlf
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/ChildTriggers.aspx -crlf
--- /dev/null
+/ProductsView.cs -crlf
+/ShowProducts.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/MasterPage.master -crlf
+/default.aspx -crlf
--- /dev/null
+/MasterPage.master -crlf
+/default.aspx -crlf
--- /dev/null
+/NestedPanels.aspx -crlf
--- /dev/null
+/DataEntry.aspx -crlf
--- /dev/null
+/Default.aspx -crlf
+/Default.aspx.cs -crlf
+/Default.aspx.designer.cs -crlf
+/EmployeeInfo.ascx -crlf
+/EmployeeInfo.ascx.cs -crlf
+/EmployeeInfo.ascx.designer.cs -crlf
+/EmployeeList.ascx -crlf
+/EmployeeList.ascx.cs -crlf
+/EmployeeList.ascx.designer.cs -crlf
--- /dev/null
+/DeclarativeMarkupCS.aspx -crlf
+/WizardWithUpdatePanelCS.aspx -crlf
+/WizardWithoutUpdatePanelCS.aspx -crlf
--- /dev/null
+/SearchResultsWithUpdatePanelCS.aspx -crlf
+/SearchResultsWithoutUpdatePanelCS.aspx -crlf
+/TriggersDeclarativeMarkupCS.aspx -crlf
--- /dev/null
+/DeclarativeMasterPageCS.master -crlf
+/DelcarativeContentPageCS.aspx -crlf
+/NorthwindTradersContentPageCS.aspx -crlf
+/NorthwindTradersMasterPageCS.master -crlf
--- /dev/null
+/SurveyExampleCS.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/default.aspx -crlf
--- /dev/null
+/faces-config.xml -crlf
+/web.xml -crlf
{
string originalHtml = @"<span id=""Bug604053ListView1""><table id=""Bug604053ListView1_itemPlaceholderContainer"" border=""0"" style=""""><tr style=""""><th>
M1</th><th>
- M2</th>\r
+ M2</th>
</tr>
<tr style="""">
<td>
<span id=""Bug604053ListView1_ctl10_M2Label"">0</span>
</td>
</tr>
- \r
+
<tr style="""">
<td>
<span id=""Bug604053ListView1_ctl12_M2Label"">1</span>
</td>
</tr>
- \r
-\r
-\r
-</table>\r
+
+
+
+</table>
<table><tr><td>
- </td>\r
+ </td>
</tr><tr><td style="""">
<span id=""DataPager1""><input type=""submit"" name=""Bug604053ListView1$DataPager1$ctl00$ctl00"" value=""First"" disabled=""disabled"" /> <span>1</span> <a href=""javascript:__doPostBack('Bug604053ListView1$DataPager1$ctl01$ctl01','')"">2</a> <a href=""javascript:__doPostBack('Bug604053ListView1$DataPager1$ctl01$ctl02','')"">3</a> <a href=""javascript:__doPostBack('Bug604053ListView1$DataPager1$ctl01$ctl03','')"">4</a> <a href=""javascript:__doPostBack('Bug604053ListView1$DataPager1$ctl01$ctl04','')"">5</a> <input type=""submit"" name=""Bug604053ListView1$DataPager1$ctl02$ctl00"" value=""Last"" /> </span>
- </td>\r
- </tr>\r
-\r
-</table>\r
+ </td>
+ </tr>
+
+</table>
</span>
<span id=""Bug604053ListView2""><table id=""Bug604053ListView2_itemPlaceholderContainer"" border=""0"" style=""""><tr style=""""><th>
M1</th><th>
- M2</th>\r
+ M2</th>
</tr>
<tr style="""">
<td>
<span id=""Bug604053ListView2_ctl10_M2Label"">0</span>
</td>
</tr>
- \r
+
<tr style="""">
<td>
<span id=""Bug604053ListView2_ctl12_M2Label"">1</span>
</td>
</tr>
- \r
-\r
-\r
-</table>\r
+
+
+
+</table>
<table><tr><td>
- </td>\r
+ </td>
</tr><tr><td style="""">
<span id=""DataPager1""><input type=""submit"" name=""Bug604053ListView2$DataPager1$ctl00$ctl00"" value=""First"" disabled=""disabled"" /> <input type=""submit"" name=""Bug604053ListView2$DataPager1$ctl00$ctl01"" value=""Previous"" disabled=""disabled"" /> <input type=""submit"" name=""Bug604053ListView2$DataPager1$ctl00$ctl02"" value=""Next"" /> <input type=""submit"" name=""Bug604053ListView2$DataPager1$ctl00$ctl03"" value=""Last"" /> </span>
- </td>\r
- </tr>\r
-\r
-</table>\r
+ </td>
+ </tr>
+
+</table>
</span>";
--- /dev/null
+/Web.mono.config -crlf
--- /dev/null
+/GlobalSuppressions.cs -crlf
+/license.htm -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/AcceptVerbsAttribute.cs -crlf
+/ActionDescriptor.cs -crlf
+/ActionExecutedContext.cs -crlf
+/ActionExecutingContext.cs -crlf
+/ActionFilterAttribute.cs -crlf
+/ActionMethodDispatcher.cs -crlf
+/ActionMethodDispatcherCache.cs -crlf
+/ActionMethodSelector.cs -crlf
+/ActionMethodSelectorAttribute.cs -crlf
+/ActionMethodSelectorCache.cs -crlf
+/ActionNameAttribute.cs -crlf
+/ActionNameSelectorAttribute.cs -crlf
+/ActionResult.cs -crlf
+/ActionSelector.cs -crlf
+/AjaxHelper.cs -crlf
+/AjaxHelper`1.cs -crlf
+/AjaxRequestExtensions.cs -crlf
+/AntiForgeryData.cs -crlf
+/AntiForgeryDataSerializer.cs -crlf
+/AntiForgeryToken.cs -crlf
+/AntiForgeryTokenSerializer.cs -crlf
+/AuthorizationContext.cs -crlf
+/AuthorizeAttribute.cs -crlf
+/BindAttribute.cs -crlf
+/BuildManagerWrapper.cs -crlf
+/ContentResult.cs -crlf
+/Controller.cs -crlf
+/ControllerActionInvoker.cs -crlf
+/ControllerBase.cs -crlf
+/ControllerBuilder.cs -crlf
+/ControllerContext.cs -crlf
+/ControllerDescriptor.cs -crlf
+/ControllerDescriptorCache.cs -crlf
+/ControllerTypeCache.cs -crlf
+/CustomModelBinderAttribute.cs -crlf
+/DefaultControllerFactory.cs -crlf
+/DefaultViewLocationCache.cs -crlf
+/DescriptorUtil.cs -crlf
+/DictionaryHelpers.cs -crlf
+/EmptyResult.cs -crlf
+/ExceptionContext.cs -crlf
+/FileContentResult.cs -crlf
+/FilePathResult.cs -crlf
+/FileResult.cs -crlf
+/FileStreamResult.cs -crlf
+/FilterAttribute.cs -crlf
+/FilterInfo.cs -crlf
+/FormCollection.cs -crlf
+/FormMethod.cs -crlf
+/HandleErrorAttribute.cs -crlf
+/HandleErrorInfo.cs -crlf
+/HtmlHelper.cs -crlf
+/HtmlHelper`1.cs -crlf
+/HttpAntiForgeryException.cs -crlf
+/HttpPostedFileBaseModelBinder.cs -crlf
+/HttpUnauthorizedResult.cs -crlf
+/HttpVerbs.cs -crlf
+/IActionFilter.cs -crlf
+/IActionInvoker.cs -crlf
+/IAuthorizationFilter.cs -crlf
+/IBuildManager.cs -crlf
+/IController.cs -crlf
+/IControllerFactory.cs -crlf
+/IExceptionFilter.cs -crlf
+/IModelBinder.cs -crlf
+/IResultFilter.cs -crlf
+/ITempDataProvider.cs -crlf
+/IView.cs -crlf
+/IViewDataContainer.cs -crlf
+/IViewEngine.cs -crlf
+/IViewLocationCache.cs -crlf
+/InputType.cs -crlf
+/JavaScriptResult.cs -crlf
+/JsonResult.cs -crlf
+/ModelBinderAttribute.cs -crlf
+/ModelBinderDictionary.cs -crlf
+/ModelBinders.cs -crlf
+/ModelBindingContext.cs -crlf
+/ModelError.cs -crlf
+/ModelErrorCollection.cs -crlf
+/ModelState.cs -crlf
+/ModelStateDictionary.cs -crlf
+/MultiSelectList.cs -crlf
+/MvcHandler.cs -crlf
+/MvcHttpHandler.cs -crlf
+/MvcRouteHandler.cs -crlf
+/NameValueCollectionExtensions.cs -crlf
+/NonActionAttribute.cs -crlf
+/NullViewLocationCache.cs -crlf
+/OutputCacheAttribute.cs -crlf
+/ParameterBindingInfo.cs -crlf
+/ParameterDescriptor.cs -crlf
+/PartialViewResult.cs -crlf
+/PathHelpers.cs -crlf
+/ReaderWriterCache`2.cs -crlf
+/RedirectResult.cs -crlf
+/RedirectToRouteResult.cs -crlf
+/ReflectedActionDescriptor.cs -crlf
+/ReflectedControllerDescriptor.cs -crlf
+/ReflectedParameterBindingInfo.cs -crlf
+/ReflectedParameterDescriptor.cs -crlf
+/ResultExecutedContext.cs -crlf
+/ResultExecutingContext.cs -crlf
+/RouteCollectionExtensions.cs -crlf
+/RouteValuesHelpers.cs -crlf
+/SelectList.cs -crlf
+/SelectListItem.cs -crlf
+/SessionStateTempDataProvider.cs -crlf
+/TagBuilder.cs -crlf
+/TagRenderMode.cs -crlf
+/TempDataDictionary.cs -crlf
+/TypeHelpers.cs -crlf
+/UrlHelper.cs -crlf
+/ValidateAntiForgeryTokenAttribute.cs -crlf
+/ValidateInputAttribute.cs -crlf
+/ValueProviderDictionary.cs -crlf
+/ValueProviderResult.cs -crlf
+/ViewContext.cs -crlf
+/ViewDataDictionary.cs -crlf
+/ViewDataDictionary`1.cs -crlf
+/ViewEngineCollection.cs -crlf
+/ViewEngineResult.cs -crlf
+/ViewEngines.cs -crlf
+/ViewMasterPage.cs -crlf
+/ViewMasterPage`1.cs -crlf
+/ViewPage.cs -crlf
+/ViewPageControlBuilder.cs -crlf
+/ViewPage`1.cs -crlf
+/ViewResult.cs -crlf
+/ViewResultBase.cs -crlf
+/ViewType.cs -crlf
+/ViewTypeControlBuilder.cs -crlf
+/ViewTypeParserFilter.cs -crlf
+/ViewUserControl.cs -crlf
+/ViewUserControlControlBuilder.cs -crlf
+/ViewUserControl`1.cs -crlf
+/VirtualPathProviderViewEngine.cs -crlf
+/WebFormView.cs -crlf
+/WebFormViewEngine.cs -crlf
--- /dev/null
+/AjaxExtensions.cs -crlf
+/AjaxOptions.cs -crlf
+/InsertionMode.cs -crlf
--- /dev/null
+/FormExtensions.cs -crlf
+/InputExtensions.cs -crlf
+/LinkExtensions.cs -crlf
+/MvcForm.cs -crlf
+/RenderPartialExtensions.cs -crlf
+/SelectExtensions.cs -crlf
+/TextAreaExtensions.cs -crlf
+/ValidationExtensions.cs -crlf
--- /dev/null
+/MvcResources.Designer.cs -crlf
--- /dev/null
+/GlobalSuppressions.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
\r
[assembly: SuppressMessage("Microsoft.Design", "CA2210:AssembliesShouldHaveValidStrongNames",\r
Justification = "Assembly is delay-signed.")]\r
-
+\r
[assembly: AssemblyDelaySign (true)]\r
[assembly: AssemblyKeyFile("../winfx.pub")]\r
--- /dev/null
+/AcceptVerbsAttribute.cs -crlf
+/ActionDescriptor.cs -crlf
+/ActionExecutedContext.cs -crlf
+/ActionExecutingContext.cs -crlf
+/ActionFilterAttribute.cs -crlf
+/ActionMethodDispatcher.cs -crlf
+/ActionMethodDispatcherCache.cs -crlf
+/ActionMethodSelector.cs -crlf
+/ActionMethodSelectorAttribute.cs -crlf
+/ActionNameAttribute.cs -crlf
+/ActionNameSelectorAttribute.cs -crlf
+/ActionResult.cs -crlf
+/ActionSelector.cs -crlf
+/AjaxHelper.cs -crlf
+/AjaxHelper`1.cs -crlf
+/AjaxRequestExtensions.cs -crlf
+/AntiForgeryData.cs -crlf
+/AntiForgeryDataSerializer.cs -crlf
+/AreaHelpers.cs -crlf
+/AreaRegistration.cs -crlf
+/AreaRegistrationContext.cs -crlf
+/AssociatedMetadataProvider.cs -crlf
+/AssociatedValidatorProvider.cs -crlf
+/AsyncController.cs -crlf
+/AsyncTimeoutAttribute.cs -crlf
+/AuthorizationContext.cs -crlf
+/AuthorizeAttribute.cs -crlf
+/BindAttribute.cs -crlf
+/BuildManagerWrapper.cs -crlf
+/ByteArrayModelBinder.cs -crlf
+/ChildActionOnlyAttribute.cs -crlf
+/ClientDataTypeModelValidatorProvider.cs -crlf
+/ContentResult.cs -crlf
+/Controller.cs -crlf
+/ControllerActionInvoker.cs -crlf
+/ControllerBase.cs -crlf
+/ControllerBuilder.cs -crlf
+/ControllerContext.cs -crlf
+/ControllerDescriptor.cs -crlf
+/ControllerDescriptorCache.cs -crlf
+/ControllerTypeCache.cs -crlf
+/CustomModelBinderAttribute.cs -crlf
+/DataAnnotationsModelMetadata.cs -crlf
+/DataAnnotationsModelMetadataProvider.cs -crlf
+/DataAnnotationsModelValidator.cs -crlf
+/DataAnnotationsModelValidatorProvider.cs -crlf
+/DataAnnotationsModelValidator`1.cs -crlf
+/DataErrorInfoModelValidatorProvider.cs -crlf
+/DefaultControllerFactory.cs -crlf
+/DefaultModelBinder.cs -crlf
+/DefaultViewLocationCache.cs -crlf
+/DescriptorUtil.cs -crlf
+/DictionaryHelpers.cs -crlf
+/DictionaryValueProvider`1.cs -crlf
+/DynamicTypeGenerator.cs -crlf
+/EmptyModelMetadataProvider.cs -crlf
+/EmptyModelValidatorProvider.cs -crlf
+/EmptyResult.cs -crlf
+/Error.cs -crlf
+/ExceptionContext.cs -crlf
+/ExpressionHelper.cs -crlf
+/FieldValidationMetadata.cs -crlf
+/FileContentResult.cs -crlf
+/FilePathResult.cs -crlf
+/FileResult.cs -crlf
+/FileStreamResult.cs -crlf
+/FilterAttribute.cs -crlf
+/FilterInfo.cs -crlf
+/FormCollection.cs -crlf
+/FormContext.cs -crlf
+/FormMethod.cs -crlf
+/FormValueProvider.cs -crlf
+/FormValueProviderFactory.cs -crlf
+/HandleErrorAttribute.cs -crlf
+/HandleErrorInfo.cs -crlf
+/HiddenInputAttribute.cs -crlf
+/HtmlHelper.cs -crlf
+/HtmlHelper`1.cs -crlf
+/HttpAntiForgeryException.cs -crlf
+/HttpDeleteAttribute.cs -crlf
+/HttpFileCollectionValueProvider.cs -crlf
+/HttpFileCollectionValueProviderFactory.cs -crlf
+/HttpGetAttribute.cs -crlf
+/HttpHandlerUtil.cs -crlf
+/HttpPostAttribute.cs -crlf
+/HttpPostedFileBaseModelBinder.cs -crlf
+/HttpPutAttribute.cs -crlf
+/HttpRequestExtensions.cs -crlf
+/HttpUnauthorizedResult.cs -crlf
+/HttpVerbs.cs -crlf
+/IActionFilter.cs -crlf
+/IActionInvoker.cs -crlf
+/IAuthorizationFilter.cs -crlf
+/IBuildManager.cs -crlf
+/IController.cs -crlf
+/IControllerFactory.cs -crlf
+/IExceptionFilter.cs -crlf
+/IModelBinder.cs -crlf
+/IResultFilter.cs -crlf
+/IRouteWithArea.cs -crlf
+/ITempDataProvider.cs -crlf
+/IValueProvider.cs -crlf
+/IView.cs -crlf
+/IViewDataContainer.cs -crlf
+/IViewEngine.cs -crlf
+/IViewLocationCache.cs -crlf
+/InputType.cs -crlf
+/JavaScriptResult.cs -crlf
+/JsonRequestBehavior.cs -crlf
+/JsonResult.cs -crlf
+/LinqBinaryModelBinder.cs -crlf
+/ModelBinderAttribute.cs -crlf
+/ModelBinderDictionary.cs -crlf
+/ModelBinders.cs -crlf
+/ModelBindingContext.cs -crlf
+/ModelClientValidationRangeRule.cs -crlf
+/ModelClientValidationRegexRule.cs -crlf
+/ModelClientValidationRequiredRule.cs -crlf
+/ModelClientValidationRule.cs -crlf
+/ModelClientValidationStringLengthRule.cs -crlf
+/ModelError.cs -crlf
+/ModelErrorCollection.cs -crlf
+/ModelMetadata.cs -crlf
+/ModelMetadataProvider.cs -crlf
+/ModelMetadataProviders.cs -crlf
+/ModelState.cs -crlf
+/ModelStateDictionary.cs -crlf
+/ModelValidationResult.cs -crlf
+/ModelValidator.cs -crlf
+/ModelValidatorProvider.cs -crlf
+/ModelValidatorProviderCollection.cs -crlf
+/ModelValidatorProviders.cs -crlf
+/MultiSelectList.cs -crlf
+/MvcHandler.cs -crlf
+/MvcHtmlString.cs -crlf
+/MvcHttpHandler.cs -crlf
+/MvcRouteHandler.cs -crlf
+/NameValueCollectionExtensions.cs -crlf
+/NameValueCollectionValueProvider.cs -crlf
+/NoAsyncTimeoutAttribute.cs -crlf
+/NonActionAttribute.cs -crlf
+/NullViewLocationCache.cs -crlf
+/OutputCacheAttribute.cs -crlf
+/ParameterBindingInfo.cs -crlf
+/ParameterDescriptor.cs -crlf
+/ParameterInfoUtil.cs -crlf
+/PartialViewResult.cs -crlf
+/PathHelpers.cs -crlf
+/QueryStringValueProvider.cs -crlf
+/QueryStringValueProviderFactory.cs -crlf
+/RangeAttributeAdapter.cs -crlf
+/ReaderWriterCache`2.cs -crlf
+/RedirectResult.cs -crlf
+/RedirectToRouteResult.cs -crlf
+/ReflectedActionDescriptor.cs -crlf
+/ReflectedControllerDescriptor.cs -crlf
+/ReflectedParameterBindingInfo.cs -crlf
+/ReflectedParameterDescriptor.cs -crlf
+/RegularExpressionAttributeAdapter.cs -crlf
+/RequireHttpsAttribute.cs -crlf
+/RequiredAttributeAdapter.cs -crlf
+/ResultExecutedContext.cs -crlf
+/ResultExecutingContext.cs -crlf
+/RouteCollectionExtensions.cs -crlf
+/RouteDataValueProvider.cs -crlf
+/RouteDataValueProviderFactory.cs -crlf
+/RouteValuesHelpers.cs -crlf
+/SelectList.cs -crlf
+/SelectListItem.cs -crlf
+/SessionStateTempDataProvider.cs -crlf
+/StringLengthAttributeAdapter.cs -crlf
+/TagBuilder.cs -crlf
+/TagRenderMode.cs -crlf
+/TempDataDictionary.cs -crlf
+/TemplateInfo.cs -crlf
+/TryGetValueDelegate.cs -crlf
+/TypeCacheSerializer.cs -crlf
+/TypeCacheUtil.cs -crlf
+/TypeDescriptorHelper.cs -crlf
+/TypeHelpers.cs -crlf
+/UrlHelper.cs -crlf
+/UrlParameter.cs -crlf
+/ValidateAntiForgeryTokenAttribute.cs -crlf
+/ValidateInputAttribute.cs -crlf
+/ValueProviderCollection.cs -crlf
+/ValueProviderDictionary.cs -crlf
+/ValueProviderFactories.cs -crlf
+/ValueProviderFactory.cs -crlf
+/ValueProviderFactoryCollection.cs -crlf
+/ValueProviderResult.cs -crlf
+/ValueProviderUtil.cs -crlf
+/ViewContext.cs -crlf
+/ViewDataDictionary.cs -crlf
+/ViewDataDictionary`1.cs -crlf
+/ViewDataInfo.cs -crlf
+/ViewEngineCollection.cs -crlf
+/ViewEngineResult.cs -crlf
+/ViewEngines.cs -crlf
+/ViewMasterPage.cs -crlf
+/ViewMasterPage`1.cs -crlf
+/ViewPage.cs -crlf
+/ViewPageControlBuilder.cs -crlf
+/ViewPage`1.cs -crlf
+/ViewResult.cs -crlf
+/ViewResultBase.cs -crlf
+/ViewTemplateUserControl.cs -crlf
+/ViewTemplateUserControl`1.cs -crlf
+/ViewType.cs -crlf
+/ViewTypeControlBuilder.cs -crlf
+/ViewTypeParserFilter.cs -crlf
+/ViewUserControl.cs -crlf
+/ViewUserControlControlBuilder.cs -crlf
+/ViewUserControl`1.cs -crlf
+/VirtualPathProviderViewEngine.cs -crlf
+/WebFormView.cs -crlf
+/WebFormViewEngine.cs -crlf
--- /dev/null
+/AjaxExtensions.cs -crlf
+/AjaxOptions.cs -crlf
+/InsertionMode.cs -crlf
--- /dev/null
+/ActionDescriptorCreator.cs -crlf
+/AsyncActionDescriptor.cs -crlf
+/AsyncActionMethodSelector.cs -crlf
+/AsyncControllerActionInvoker.cs -crlf
+/AsyncManager.cs -crlf
+/AsyncResultWrapper.cs -crlf
+/AsyncUtil.cs -crlf
+/AsyncVoid.cs -crlf
+/BeginInvokeDelegate.cs -crlf
+/EndInvokeDelegate.cs -crlf
+/EndInvokeDelegate`1.cs -crlf
+/IAsyncActionInvoker.cs -crlf
+/IAsyncController.cs -crlf
+/IAsyncManagerContainer.cs -crlf
+/OperationCounter.cs -crlf
+/ReflectedAsyncActionDescriptor.cs -crlf
+/ReflectedAsyncControllerDescriptor.cs -crlf
+/SimpleAsyncResult.cs -crlf
+/SingleEntryGate.cs -crlf
+/SynchronizationContextUtil.cs -crlf
+/SynchronousOperationException.cs -crlf
+/Trigger.cs -crlf
+/TriggerListener.cs -crlf
--- /dev/null
+/BinaryExpressionFingerprint.cs -crlf
+/CachedExpressionCompiler.cs -crlf
+/CompiledExpressionDelegate`2.cs -crlf
+/ConditionalExpressionFingerprint.cs -crlf
+/ConstantExpressionFingerprint.cs -crlf
+/ExpressionFingerprint.cs -crlf
+/ExpressionParser.cs -crlf
+/FastTrack`2.cs -crlf
+/HashCodeCombiner.cs -crlf
+/MemberExpressionFingerprint.cs -crlf
+/MethodCallExpressionFingerprint.cs -crlf
+/ParameterExpressionFingerprint.cs -crlf
+/ParserContext.cs -crlf
+/UnaryExpressionFingerprint.cs -crlf
--- /dev/null
+/ChildActionExtensions.cs -crlf
+/DefaultDisplayTemplates.cs -crlf
+/DefaultEditorTemplates.cs -crlf
+/DisplayExtensions.cs -crlf
+/DisplayTextExtensions.cs -crlf
+/EditorExtensions.cs -crlf
+/FormExtensions.cs -crlf
+/InputExtensions.cs -crlf
+/LabelExtensions.cs -crlf
+/LinkExtensions.cs -crlf
+/MvcForm.cs -crlf
+/PartialExtensions.cs -crlf
+/RenderPartialExtensions.cs -crlf
+/SelectExtensions.cs -crlf
+/TemplateHelpers.cs -crlf
+/TextAreaExtensions.cs -crlf
+/ValidationExtensions.cs -crlf
private static bool ShouldShow(ModelMetadata metadata, TemplateInfo templateInfo) {\r
return\r
metadata.ShowForDisplay\r
-#if false
+#if false\r
&& metadata.ModelType != typeof(EntityState)\r
-#endif
+#endif\r
&& !metadata.IsComplexType\r
&& !templateInfo.Visited(metadata);\r
}\r
private static bool ShouldShow(ModelMetadata metadata, TemplateInfo templateInfo) {\r
return\r
metadata.ShowForEdit\r
-#if false
+#if false\r
&& metadata.ModelType != typeof(EntityState)\r
-#endif
+#endif\r
&& !metadata.IsComplexType\r
&& !templateInfo.Visited(metadata);\r
}\r
--- /dev/null
+/MvcResources.Designer.cs -crlf
+/MvcResources.resx -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/Web.config -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/faces-config.xml -crlf
+/web.xml -crlf
--- /dev/null
+/System.Web.Services.xml -crlf
--- /dev/null
+/wsdl-1.1-soap.xsd -crlf
--- /dev/null
+/check-import.wsdl -crlf
+/check-import2.wsdl -crlf
+/test2.wsdl -crlf
-<%@ WebService Language="c#" Codebehind="InteropTestDocLitParameters.wsdl.cs" Class="InteropTestDocLitParameters.wsdl.WSDLInteropTestDocLitParameters" %>\r
+<%@ WebService Language="c#" Codebehind="InteropTestDocLitParameters.wsdl.cs" Class="InteropTestDocLitParameters.wsdl.WSDLInteropTestDocLitParameters" %>
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://soapinterop.org/", RequestNamespace="http://soapinterop.org/xsd", ResponseNamespace="http://soapinterop.org/xsd", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public SOAPStruct echoStruct([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] SOAPStruct param0, SOAPStruct X_WS_ReturnValue_X)
- {\r
+ {
return null;
}
-<%@ WebService Language="c#" Codebehind="BusinessList.wsdl.cs" Class="BusinessList.wsdl.BusinessList" %>\r
+<%@ WebService Language="c#" Codebehind="BusinessList.wsdl.cs" Class="BusinessList.wsdl.BusinessList" %>
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
-<%@ WebService Language="c#" Codebehind="main.wsdl.cs" Class="main.wsdl.Main" %>\r
-\r
+<%@ WebService Language="c#" Codebehind="main.wsdl.cs" Class="main.wsdl.Main" %>
+
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
-<%@ WebService Language="c#" Codebehind="GetData.wsdl.cs" Class="GetData.wsdl.GetData" %>\r
-\r
+<%@ WebService Language="c#" Codebehind="GetData.wsdl.cs" Class="GetData.wsdl.GetData" %>
+
using System.Xml.Serialization;
using System;
using System.Xml;
-<%@ WebService Language="c#" Codebehind="GetData.wsdl.cs" Class="GetData.wsdl.GetData" %>\r
-\r
+<%@ WebService Language="c#" Codebehind="GetData.wsdl.cs" Class="GetData.wsdl.GetData" %>
+
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
-<%@ WebService Language="c#" Codebehind="InteropTestExtensibilityRequired.wsdl.cs" Class="InteropTestExtensibilityRequired.wsdl.InteropTestExtensibilityRequired" %>\r
+<%@ WebService Language="c#" Codebehind="InteropTestExtensibilityRequired.wsdl.cs" Class="InteropTestExtensibilityRequired.wsdl.InteropTestExtensibilityRequired" %>
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
+2010-07-23 Marek Habersack <mhabersack@novell.com>
+
+ * ClientScriptManager.cs: 4.0 adds a class="aspNetHidden"
+ attribute to the div element surrounding the hidden elements.
+
2010-07-14 Marek Habersack <mhabersack@novell.com>
* DataKeyPropertyAttribute.cs: added (4.0)
return;
writer.WriteLine ();
+#if NET_4_0
+ writer.AddAttribute (HtmlTextWriterAttribute.Class, "aspNetHidden");
+#endif
writer.RenderBeginTag (HtmlTextWriterTag.Div);
int oldIndent = writer.Indent;
writer.Indent = 0;
--- /dev/null
+/NoDoubleOnInitOnRemoveAdd.aspx -crlf
+/NoDoubleOnInitOnRemoveAdd.aspx.cs -crlf
--- /dev/null
+/Common.fr-FR.resx -crlf
+/Common.resx -crlf
--- /dev/null
+/Makefile -crlf
+/System.Windows.Forms.DataVisualization.dll.sources -crlf
--- /dev/null
+/Form1.resx -crlf
--- /dev/null
+/Resources.resx -crlf
+/Settings.settings -crlf
--- /dev/null
+/Resources.resx -crlf
+/Settings.settings -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/System.Xml.xml -crlf
{
MyObject o = new MyObject (5, 8);
using (FileStream fs = new FileStream("test.xml", FileMode.Create)) {
- XmlSerializer serializer = new XmlSerializer(typeof(MyObject));\r
+ XmlSerializer serializer = new XmlSerializer(typeof(MyObject));
serializer.Serialize(fs, o);
}
}
public static void Main(string[] args) {
MyObject o;
using (FileStream fs = File.OpenRead("test.xml")) {
- XmlSerializer serializer = new XmlSerializer(typeof(MyObject));\r
+ XmlSerializer serializer = new XmlSerializer(typeof(MyObject));
o = (MyObject) serializer.Deserialize(fs);
}
Console.WriteLine("Deserialized object: " + o.X + "," + o.Y);
--- /dev/null
+/XsdWildcard.cs -crlf
return seq.ValidatedMinOccurs <= Occured && seq.ValidatedMaxOccurs >= Occured;
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
- if (seq.ValidatedMinOccurs > Occured + 1)\r
- return false;\r
- if (seq.ValidatedMinOccurs == 0 && currentAutomata == null)\r
- return true;\r
-\r
- if (emptiable)\r
- return true;\r
- if (seq.CompiledItems.Count == 0)\r
- return true;\r
-\r
+ internal override bool EvaluateIsEmptiable ()
+ {
+ if (seq.ValidatedMinOccurs > Occured + 1)
+ return false;
+ if (seq.ValidatedMinOccurs == 0 && currentAutomata == null)
+ return true;
+
+ if (emptiable)
+ return true;
+ if (seq.CompiledItems.Count == 0)
+ return true;
+
int idx = current < 0 ? 0 : current;
- XsdValidationState xa = currentAutomata;\r
+ XsdValidationState xa = currentAutomata;
if (xa == null)
xa = Manager.Create (seq.CompiledItems [idx] as XmlSchemaParticle);
while (xa != null) {
}
emptiable = true;
return true;
- }\r
+ }
}
return false;
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
+ internal override bool EvaluateIsEmptiable ()
+ {
if (emptiableComputed)
return emptiable;
-\r
- if (choice.ValidatedMaxOccurs < Occured)\r
- return false;\r
- else if (choice.ValidatedMinOccurs > Occured + 1)\r
- return false;\r
-\r
- for (int i = Occured; i < choice.ValidatedMinOccurs; i++) {\r
- bool next = false;\r
+
+ if (choice.ValidatedMaxOccurs < Occured)
+ return false;
+ else if (choice.ValidatedMinOccurs > Occured + 1)
+ return false;
+
+ for (int i = Occured; i < choice.ValidatedMinOccurs; i++) {
+ bool next = false;
for (int pi = 0; pi < choice.CompiledItems.Count; pi++) {
- XmlSchemaParticle p = (XmlSchemaParticle) choice.CompiledItems [pi];\r
+ XmlSchemaParticle p = (XmlSchemaParticle) choice.CompiledItems [pi];
if (Manager.Create (p).EvaluateIsEmptiable ()) {
next = true;
break;
}
- }\r
- if (!next)\r
- return false;\r
- }\r
- return true;\r
- }\r
+ }
+ if (!next)
+ return false;
+ }
+ return true;
+ }
}
internal class XsdAllValidationState : XsdValidationState
return true;
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
+ internal override bool EvaluateIsEmptiable ()
+ {
if (all.Emptiable || all.ValidatedMinOccurs == 0)
return true;
for (int i = 0; i < all.CompiledItems.Count; i++) {
return false;
}
return true;
- }\r
+ }
}
internal class XsdAnyValidationState : XsdValidationState
return EvaluateIsEmptiable ();
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
+ internal override bool EvaluateIsEmptiable ()
+ {
return any.ValidatedMinOccurs <= Occured &&
any.ValidatedMaxOccurs >= Occured;
- }\r
+ }
}
internal class XsdAppendedValidationState : XsdValidationState
return rest.EvaluateEndElement ();
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
- if (head.EvaluateIsEmptiable ())\r
- return rest.EvaluateIsEmptiable ();\r
- else\r
- return false;\r
- }\r
+ internal override bool EvaluateIsEmptiable ()
+ {
+ if (head.EvaluateIsEmptiable ())
+ return rest.EvaluateIsEmptiable ();
+ else
+ return false;
+ }
}
internal class XsdEmptyValidationState : XsdValidationState
return true;
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
- return true;\r
- }\r
-\r
+ internal override bool EvaluateIsEmptiable ()
+ {
+ return true;
+ }
+
}
internal class XsdInvalidValidationState : XsdValidationState
return false;
}
- internal override bool EvaluateIsEmptiable ()\r
- {\r
- return false;\r
- }\r
-\r
+ internal override bool EvaluateIsEmptiable ()
+ {
+ return false;
+ }
+
}
}
-//
-// Mono.Xml.Schema.XsdWildcard.cs
-//
-// Author:
-// Atsushi Enomoto (ginga@kit.hi-ho.ne.jp)
-//
-// (C)2003 Atsushi Enomoto
-//
-//
-// This class represents common part of xs:any and xs:anyAttribute
-//
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+//\r
+// Mono.Xml.Schema.XsdWildcard.cs\r
+//\r
+// Author:\r
+// Atsushi Enomoto (ginga@kit.hi-ho.ne.jp)\r
+//\r
+// (C)2003 Atsushi Enomoto\r
+//\r
+//\r
+// This class represents common part of xs:any and xs:anyAttribute\r
+//\r
+//\r
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
using System;\r
using System.Collections.Specialized;\r
using System.Xml;\r
int nscount = 0;\r
string actualNamespace = nss == null ? "##any" : nss;\r
string[] nslist = XmlSchemaUtil.SplitList(actualNamespace);\r
- for (int i = 0; i < nslist.Length; i++) {
- string ns = nslist [i];
+ for (int i = 0; i < nslist.Length; i++) {\r
+ string ns = nslist [i];\r
switch(ns) {\r
case "##any": \r
- if (HasValueAny)
- xsobj.error (h, "Multiple specification of ##any was found.");
+ if (HasValueAny)\r
+ xsobj.error (h, "Multiple specification of ##any was found.");\r
nscount |= 1;\r
- HasValueAny = true;
+ HasValueAny = true;\r
break;\r
case "##other":\r
- if (HasValueOther)
- xsobj.error (h, "Multiple specification of ##other was found.");
+ if (HasValueOther)\r
+ xsobj.error (h, "Multiple specification of ##other was found.");\r
nscount |= 2;\r
- HasValueOther = true;
+ HasValueOther = true;\r
break;\r
case "##targetNamespace":\r
- if (HasValueTargetNamespace)
- xsobj.error (h, "Multiple specification of ##targetNamespace was found.");
+ if (HasValueTargetNamespace)\r
+ xsobj.error (h, "Multiple specification of ##targetNamespace was found.");\r
nscount |= 4;\r
HasValueTargetNamespace = true;\r
break;\r
case "##local":\r
- if (HasValueLocal)
- xsobj.error (h, "Multiple specification of ##local was found.");
+ if (HasValueLocal)\r
+ xsobj.error (h, "Multiple specification of ##local was found.");\r
nscount |= 8;\r
- HasValueLocal = true;
+ HasValueLocal = true;\r
break;\r
default:\r
if(!XmlSchemaUtil.CheckAnyUri(ns))\r
xsobj.error(h,"the namespace is not a valid anyURI");\r
- else if (ResolvedNamespaces.Contains (ns))
- xsobj.error (h, "Multiple specification of '" + ns + "' was found.");
+ else if (ResolvedNamespaces.Contains (ns))\r
+ xsobj.error (h, "Multiple specification of '" + ns + "' was found.");\r
else {\r
nscount |= 16;\r
- ResolvedNamespaces.Add (ns);
- }
+ ResolvedNamespaces.Add (ns);\r
+ }\r
break;\r
}\r
}\r
public bool ValidateWildcardAllowsNamespaceName (string ns,\r
ValidationEventHandler h, XmlSchema schema, bool raiseError)\r
{\r
- if (HasValueAny)
- return true;
- if (HasValueOther && ns != TargetNamespace)
- return true;
- if (HasValueTargetNamespace && ns == TargetNamespace)
- return true;
- if (HasValueLocal && ns == "")
- return true;
- for (int i = 0; i < ResolvedNamespaces.Count; i++)
- if (ns == ResolvedNamespaces [i])
- return true;
- if (raiseError)
- xsobj.error (h, "This wildcard does not allow the namespace: " + ns);
- return false;
+ if (HasValueAny)\r
+ return true;\r
+ if (HasValueOther && ns != TargetNamespace)\r
+ return true;\r
+ if (HasValueTargetNamespace && ns == TargetNamespace)\r
+ return true;\r
+ if (HasValueLocal && ns == "")\r
+ return true;\r
+ for (int i = 0; i < ResolvedNamespaces.Count; i++)\r
+ if (ns == ResolvedNamespaces [i])\r
+ return true;\r
+ if (raiseError)\r
+ xsobj.error (h, "This wildcard does not allow the namespace: " + ns);\r
+ return false;\r
}\r
\r
// 3.10.6 Wildcard Subset\r
--- /dev/null
+/DTMXPathDocumentWriter.cs -crlf
+/DTMXPathDocumentWriter2.cs -crlf
+/XPathNavigatorReader.cs -crlf
--- /dev/null
+/XmlFilterReader.cs -crlf
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Xml;
-\r
-namespace Mono.Xml\r
-{\r
- internal interface IHasXmlParserContext\r
- {\r
- XmlParserContext ParserContext { get; }\r
- }\r
-}\r
+
+namespace Mono.Xml
+{
+ internal interface IHasXmlParserContext
+ {
+ XmlParserContext ParserContext { get; }
+ }
+}
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Xml;
-\r
-namespace Mono.Xml\r
-{\r
- internal interface IHasXmlSchemaInfo\r
- {\r
- object SchemaType { get; }\r
- }\r
-}\r
+
+namespace Mono.Xml
+{
+ internal interface IHasXmlSchemaInfo
+ {
+ object SchemaType { get; }
+ }
+}
// Atsushi Enomoto <atsushi@ximian.com>\r
//\r
// Copyright (c) 2004 Novell Inc. All rights reserved\r
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
//\r
// Similar to SAX DefaultHandler\r
--- /dev/null
+/BUGS-MS.txt -crlf
+/BUGS.txt -crlf
--- /dev/null
+/array.output -crlf
+/complex.output -crlf
+/dataset.output -crlf
+/icollection.output -crlf
+/potest.output -crlf
+/xmlelement.output -crlf
+/xmlnode.output -crlf
--- /dev/null
+/IXsltContextFunction.cs -crlf
+/IXsltContextVariable.cs -crlf
+/XslTransform.cs -crlf
+/XsltArgumentList.cs -crlf
+/XsltCompileException.cs -crlf
+/XsltContext.cs -crlf
+/XsltException.cs -crlf
--- /dev/null
+/XmlSchemaBuiltInDatatypeTests.cs -crlf
+/XmlSchemaLengthFacetTests.cs -crlf
--- /dev/null
+/xsdtest.cs -crlf
--- /dev/null
+/README.j2ee -crlf
+/XmlCompare.cs -crlf
+/XmlNormalizer.cs -crlf
--- /dev/null
+/XmlDocumentEventTests.cs -crlf
+/XmlNodeReaderTests.cs -crlf
+/XmlReaderCommonTests.cs -crlf
+/XmlUrlResolverTests.cs -crlf
+/XmlValidatingReaderTests.cs -crlf
+/XmlWriterTests.cs -crlf
+/XsdParticleValidationTests.cs -crlf
+/XsdValidatingReaderTests.cs -crlf
--- /dev/null
+/Makefile -crlf
+/README.j2ee -crlf
+/TODO -crlf
namespace MonoTests.W3C_xmlconf {
using NUnit.Core;
- using NUnit.Framework;\r
-\r
+ using NUnit.Framework;
+
public abstract class BaseTests
{
- TestSuite _suite;\r
+ TestSuite _suite;
#region test list fields
protected readonly ArrayList ignoredTests = new ArrayList ();
: base (suite)
{
}
- }\r
-\r
- public class CleanTests : BaseTests\r
+ }
+
+ public class CleanTests : BaseTests
{
[Suite]
static public TestSuite Suite{
base.ProcessTest (testId, test);
}
- }\r
-\r
- public class KnownFailureTests : BaseTests\r
+ }
+
+ public class KnownFailureTests : BaseTests
{
[Suite]
static public TestSuite Suite{
base.ProcessTest (testId, test);
}
- }\r
-\r
+ }
+
public class TestFromCatalog : NUnit.Core.TestCase
{
XmlElement _test;
u2 = xr.ResolveUri (null, "file:///mystuff");
Assert.IsTrue (u2.IsAbsoluteUri, "null,absolute/file");
}
-#endif\r
+#endif
}
}
--- /dev/null
+/ITest.cs -crlf
+/readme.txt -crlf
// Mainsoft Corporation (c) 2003-2004
//
//**************************************************************************
-using System;\r
-using System.Xml;\r
+using System;
+using System.Xml;
using nist_dom;
-using NUnit.Framework;\r
-\r
-namespace nist_dom.fundamental\r
+using NUnit.Framework;
+
+namespace nist_dom.fundamental
{
- [TestFixture]\r
- public class AttrTest//, ITest\r
- {\r
- public static int i = 1;\r
-/*\r
- public testResults[] RunTests()\r
- {\r
+ [TestFixture]
+ public class AttrTest//, ITest
+ {
+ public static int i = 1;
+/*
+ public testResults[] RunTests()
+ {
testResults[] tests = new testResults[] {core0001A(), core0002A(), core0003A(),core0004A(),
core0005A(), core0006A(), core0007A(), core0008A(),
core0009A(), core0010A(), core0011A(), core0012A(),
- core0013A(), core0014A()};\r
- \r
- return tests;\r
+ core0013A(), core0014A()};
+
+ return tests;
}
*/
//------------------------ test case core-0001A ------------------------
// Write out results
//
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
domesticAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("domestic");
computedValue = domesticAttr.PreviousSibling;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
domesticAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("domestic");
computedValue = domesticAttr.NextSibling;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
domesticAttr = (System.Xml.XmlAttribute)docFragment.FirstChild.Attributes.Item(0) ;
computedValue = domesticAttr.Name;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
domesticAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("domestic");
computedValue = domesticAttr.Value;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Value;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Name;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
domesticAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("domestic");;
computedValue = domesticAttr.Specified.ToString();
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Specified.ToString();
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Specified.ToString();
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Specified.ToString();
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr = (System.Xml.XmlAttribute)testNode.Attributes.GetNamedItem("street");
computedValue = streetAttr.Value;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
streetAttr.Value = "Y%ent1;";
computedValue = streetAttr.Value;
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
//
// attempt to set a value on a readonly node should raise an exception.
//
- try \r
+ try
{
readOnlyAttribute.Value = "ABCD";
}
- catch (ArgumentException ex)\r
+ catch (ArgumentException ex)
{
computedValue = ex.GetType ().FullName;
}
}
- catch(System.Exception ex)\r
+ catch(System.Exception ex)
{
computedValue = "Exception " + ex.Message;
}
// return results;
}
//------------------------ End test case core-0014A --------------------------
- }\r
-\r
-}\r
+ }
+
+}
--- /dev/null
+/Comment.cs -crlf
--- /dev/null
+/Document.cs -crlf
--- /dev/null
+/Element.cs -crlf
--- /dev/null
+/NamedNodeMap.cs -crlf
--- /dev/null
+/Node.cs -crlf
--- /dev/null
+/NodeList.cs -crlf
About the Test Suite:\r
==============================\r
NIST DOM is XML DOM Level 1 Test Suite,\r
-Mainsoft have converted part of the NIST DOM
+Mainsoft have converted part of the NIST DOM \r
Test Suite \r
from ECMAScript (Java Script) into \r
C# .Net System.XML Conformance Test Suite.\r
System.Xml.XmlNode tmpNode = getDOMDocument().ImportNode(getOriginalDOMDocument().DocumentElement,true);
getDOMDocument().AppendChild(tmpNode);
//getDOMDocument().AppendChild(getOriginalDOMDocument().DocumentElement.CloneNode(true));
- }\r
+ }
catch (NotImplementedException ex)
{
throw ex;
--- /dev/null
+/xmltest.cs -crlf
--- /dev/null
+/nested-dtd-test.dtd -crlf
+/nested-included.dtd -crlf
--- /dev/null
+/1.xsd -crlf
+/2.xsd -crlf
+/3.xsd -crlf
+/4.xsd -crlf
--- /dev/null
+/358408.xsd -crlf
+/361818-2.xsd -crlf
+/361818-3.xsd -crlf
+/361818.xsd -crlf
+/422581.xml -crlf
+/422581.xsd -crlf
+/79650.xsd -crlf
+/81360.xsd -crlf
+/81360inc1.xsd -crlf
+/81360inc2.xsd -crlf
+/resolveUriSchema.xsd -crlf
--- /dev/null
+/empty.xsl -crlf
--- /dev/null
+/makefile.build -crlf
--- /dev/null
+/machine.config -crlf
+/makefile.build -crlf
--- /dev/null
+/System.xml -crlf
--- /dev/null
+/PowerModeChangedEventArgs.cs -crlf
+/PowerModeChangedEventHandler.cs -crlf
+/PowerModes.cs -crlf
+/SessionEndReasons.cs -crlf
+/SessionEndedEventArgs.cs -crlf
+/SessionEndedEventHandler.cs -crlf
+/SessionEndingEventArgs.cs -crlf
+/SessionEndingEventHandler.cs -crlf
+/TimerElapsedEventHandler.cs -crlf
+/UserPreferenceCategory.cs -crlf
+/UserPreferenceChangedEventArgs.cs -crlf
+/UserPreferenceChangedEventHandler.cs -crlf
+/UserPreferenceChangingEventArgs.cs -crlf
+/UserPreferenceChangingEventHandler.cs -crlf
using System.Security.Permissions;
using System.Timers;
-namespace Microsoft.Win32 {\r
-\r
+namespace Microsoft.Win32 {
+
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
public sealed class SystemEvents
{
remove { }
}
}
-}\r
+}
using System.Runtime.InteropServices;
using System.Security.Permissions;
-namespace Microsoft.Win32 {\r
+namespace Microsoft.Win32 {
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
[PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)]
--- /dev/null
+/CollectionsUtil.cs -crlf
+/OrderedDictionary.cs -crlf
+/StringDictionary.cs -crlf
+/StringEnumerator.cs -crlf
--- /dev/null
+/DataObjectAttribute.cs -crlf
--- /dev/null
+/Debugger.jvm.cs -crlf
+/StackFrame.jvm.cs -crlf
+/StackTrace.jvm.cs -crlf
+/TraceEventCache.jvm.cs -crlf
--- /dev/null
+/Handshake.cs -crlf
+/Parity.cs -crlf
+/SerialData.cs -crlf
+/SerialError.cs -crlf
+/SerialPinChange.cs -crlf
+/StopBits.cs -crlf
--- /dev/null
+/ErrorEventArgs.cs -crlf
+/ErrorEventHandler.cs -crlf
+/FileSystemEventArgs.cs -crlf
+/FileSystemEventHandler.cs -crlf
+/IODescriptionAttribute.cs -crlf
+/InternalBufferOverflowException.cs -crlf
+/MonoIOError.cs -crlf
+/NotifyFilters.cs -crlf
+/RenamedEventArgs.cs -crlf
+/RenamedEventHandler.cs -crlf
+/WaitForChangedResult.cs -crlf
+/WatcherChangeTypes.cs -crlf
//\r
// (C) 2002\r
//\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
\r
public sealed class SmtpSection : ConfigurationSection
{
[ConfigurationProperty ("deliveryMethod", DefaultValue = "Network")]
- public SmtpDeliveryMethod DeliveryMethod {\r
- get { return (SmtpDeliveryMethod) base ["deliveryMethod"]; }\r
+ public SmtpDeliveryMethod DeliveryMethod {
+ get { return (SmtpDeliveryMethod) base ["deliveryMethod"]; }
set { base ["deliveryMethod"] = value; }
}
[ConfigurationProperty ("from")]
- public string From {\r
- get { return (string) base ["from"]; }\r
+ public string From {
+ get { return (string) base ["from"]; }
set { base ["from"] = value; }
}
[ConfigurationProperty ("network")]
- public SmtpNetworkElement Network {\r
+ public SmtpNetworkElement Network {
get { return (SmtpNetworkElement) base ["network"]; }
}
[ConfigurationProperty ("specifiedPickupDirectory")]
- public SmtpSpecifiedPickupDirectoryElement SpecifiedPickupDirectory {\r
+ public SmtpSpecifiedPickupDirectoryElement SpecifiedPickupDirectory {
get { return (SmtpSpecifiedPickupDirectoryElement) base ["specifiedPickupDirectory"]; }
}
--- /dev/null
+/SmtpPermission.cs -crlf
+/SmtpPermissionAttribute.cs -crlf
--- /dev/null
+/GHSocket.jvm.cs -crlf
+/GHSocketFactory.jvm.cs -crlf
+/GHStreamSocket.jvm.cs -crlf
+/GHStreamSocketSSL.jvm.cs -crlf
--- /dev/null
+/CookieException.cs -crlf
+/DnsPermission.cs -crlf
+/DnsPermissionAttribute.cs -crlf
+/EndpointPermission.cs -crlf
+/FileWebRequest.cs -crlf
+/FileWebResponse.cs -crlf
+/FtpStatus.cs -crlf
+/HttpContinueDelegate.cs -crlf
+/HttpProvider.jvm.cs -crlf
+/HttpStateCache.jvm.cs -crlf
+/HttpVersion.cs -crlf
+/HttpWebRequest.jvm.cs -crlf
+/HttpWebResponse.jvm.cs -crlf
+/IPv6Address.cs -crlf
+/MonoHttpDate.cs -crlf
+/ProtocolViolationException.cs -crlf
+/SocketPermission.cs -crlf
+/VMWHttpProvider.jvm.cs -crlf
+/WebException.cs -crlf
+/WebResponse.cs -crlf
+/WebUtility.cs -crlf
--- /dev/null
+/BaseMachine.cs -crlf
+/LookBehindWithUndefinedLength.jvm.cs -crlf
+/NotAllowedConstruct.jvm.cs -crlf
+/RegexRunnerFactory.cs -crlf
+/cache.cs -crlf
+/category.cs -crlf
+/debug.cs -crlf
+/interval.cs -crlf
\r
int gcount = m.Groups.Count;\r
for (int gindex = 1; gindex < gcount; gindex++) {\r
- Group grp = m.Groups [gindex];
+ Group grp = m.Groups [gindex];\r
if (grp.Length > 0)\r
splits.Add (input.Substring (grp.Index, grp.Length));\r
}\r
--- /dev/null
+/UriBuilder.cs -crlf
new NameValueCollection (-1, new EqualityComparer ());
}
- [Test]\r
- public void Constructor_IEqualityComparer_Null ()\r
- {\r
- NameValueCollection c1 = new NameValueCollection ((IEqualityComparer)null);\r
- c1.Add ("key", "value");\r
- Assert.AreEqual (c1.Get ("KEY"), "value", "Constructor_IEqualityComparer_Null");\r
- c1.Remove ("key");\r
- }\r
-\r
- [Test]\r
- public void Constructor_NameValueCollection ()\r
- {\r
- NameValueCollection c1 = new NameValueCollection (StringComparer.InvariantCultureIgnoreCase);\r
- c1.Add ("key", "value");\r
- NameValueCollection c2 = new NameValueCollection (c1);\r
- Assert.AreEqual (c2.Get ("KEY"), "value", "Constructor_NameValueCollection");\r
- c2.Remove ("key");\r
- }
-#endif\r
+ [Test]
+ public void Constructor_IEqualityComparer_Null ()
+ {
+ NameValueCollection c1 = new NameValueCollection ((IEqualityComparer)null);
+ c1.Add ("key", "value");
+ Assert.AreEqual (c1.Get ("KEY"), "value", "Constructor_IEqualityComparer_Null");
+ c1.Remove ("key");
+ }
+
+ [Test]
+ public void Constructor_NameValueCollection ()
+ {
+ NameValueCollection c1 = new NameValueCollection (StringComparer.InvariantCultureIgnoreCase);
+ c1.Add ("key", "value");
+ NameValueCollection c2 = new NameValueCollection (c1);
+ Assert.AreEqual (c2.Get ("KEY"), "value", "Constructor_NameValueCollection");
+ c2.Remove ("key");
+ }
+#endif
}
}
--- /dev/null
+/AsyncOperationManagerTest.cs -crlf
--- /dev/null
+/Makefile -crlf
+/TypeDescriptorTest.cs -crlf
--- /dev/null
+/EventLogPermissionAttributeTest.cs -crlf
+/PerformanceCounterPermissionAttributeTest.cs -crlf
case 12:\r
case 13:\r
case 32:\r
- case 92:
+ case 92:\r
#if NET_2_0\r
- case 133:
+ case 133:\r
#endif\r
case 160:\r
// known invalid chars\r
case 32:\r
case 92:\r
#if NET_2_0\r
- case 133:
+ case 133:\r
#endif\r
case 160:\r
// known invalid chars\r
--- /dev/null
+/CookieCollectionTest.cs -crlf
+/CredentialCacheTest.cs -crlf
+/DnsTest.cs -crlf
+/ServicePointManagerTest.cs -crlf
+/ServicePointTest.cs -crlf
+/SocketPermissionTest.cs -crlf
+/WebRequestTest.cs -crlf
using System;
using System.Net;
-using NUnit.Framework;\r
+using NUnit.Framework;
namespace MoonTest.System.Net {
--- /dev/null
+/x509build.cs -crlf
--- /dev/null
+/AspNetHostingPermissionAttributeTest.cs -crlf
+/AspNetHostingPermissionTest.cs -crlf
Assert.AreEqual (AspNetHostingPermissionLevel.Unrestricted, anhp.Level, "Level");\r
Assert.IsTrue (anhp.IsUnrestricted (), "IsUnrestricted");\r
\r
- SecurityElement se = anhp.ToXml ();
-#if NET_2_0
+ SecurityElement se = anhp.ToXml ();\r
+#if NET_2_0\r
// fixed in 2.0 RC\r
- Assert.IsNotNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
+ Assert.IsNotNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");\r
#else\r
- Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");
+ Assert.IsNull (se.Attribute ("Unrestricted"), "Xml-Unrestricted");\r
#endif\r
Assert.AreEqual ("Unrestricted", se.Attribute ("Level"), "Xml-Level");\r
Assert.IsNull (se.Children, "Xml-Children");\r
AspNetHostingPermission anhp = new AspNetHostingPermission (PermissionState.None);\r
// No intersection with null\r
foreach (AspNetHostingPermissionLevel ppl in AllLevel) {\r
- anhp.Level = ppl;
- IPermission p = anhp.Intersect (null);
-#if ! NET_2_0
- if (p != null)
+ anhp.Level = ppl;\r
+ IPermission p = anhp.Intersect (null);\r
+#if ! NET_2_0\r
+ if (p != null)\r
Assert.Ignore ("Behaviour changed in FX 1.1 SP1");\r
#endif\r
Assert.IsNull (p, ppl.ToString ());\r
--- /dev/null
+/UriTest2.cs -crlf
+/test-uri-props-manual.txt -crlf
+/test-uri-props.txt -crlf
+/test-uri-relative-props.txt -crlf
+/uri-test-generator.cs -crlf
--- /dev/null
+/ca.pem -crlf
+/client.pem -crlf
--- /dev/null
+/ChangeLog -crlf
-2010-02-19 Alan McGovern <amcgovern@novell.com>
-
- * System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648 so
- that PackUris can be combined properly.
-
+2010-02-19 Alan McGovern <amcgovern@novell.com>\r
+\r
+ * System.IO.Packaging/PackUriHelper.cs: Commit a fix for #570648 so\r
+ that PackUris can be combined properly.\r
+\r
2009-11-21 Raja R Harinath <harinath@hurrynot.org>\r
\r
* System.Collections.ObjectModel/ObservableCollection.cs [NET_4_0]:\r
}
public override int GetHashCode ()
- {\r
+ {
return (x.GetHashCode() ^ y.GetHashCode());
}
}
public static Point Parse (string source)
- {\r
- string[] points = source.Split(',');\r
-\r
- if (points.Length<2)\r
- throw new InvalidOperationException ("source does not contain two numbers");\r
- if (points.Length > 2)\r
- throw new InvalidOperationException ("source contains too many delimiters");\r
-\r
+ {
+ string[] points = source.Split(',');
+
+ if (points.Length<2)
+ throw new InvalidOperationException ("source does not contain two numbers");
+ if (points.Length > 2)
+ throw new InvalidOperationException ("source contains too many delimiters");
+
CultureInfo ci = CultureInfo.InvariantCulture;
return new Point (Convert.ToDouble(points[0],ci), Convert.ToDouble(points[1],ci));
}
public override string ToString ()
- {\r
+ {
return this.ToString(null, null);
}
public string ToString (IFormatProvider formatProvider)
- {\r
+ {
return this.ToString(null,formatProvider);
}
- private string ToString(string format,IFormatProvider formatProvider)\r
- {\r
- CultureInfo ci = (CultureInfo)formatProvider;\r
-\r
- if (ci == null)\r
- ci = CultureInfo.CurrentCulture;\r
- string seperator = ci.NumberFormat.NumberDecimalSeparator;\r
- if (seperator.Equals(","))\r
- seperator = ";";\r
- else\r
- seperator = ",";\r
- object[] ob = { this.x, seperator, this.y };\r
-\r
- return string.Format(formatProvider, "{0:" + format + "}{1}{2:" + format + "}", ob);\r
+ private string ToString(string format,IFormatProvider formatProvider)
+ {
+ CultureInfo ci = (CultureInfo)formatProvider;
+
+ if (ci == null)
+ ci = CultureInfo.CurrentCulture;
+ string seperator = ci.NumberFormat.NumberDecimalSeparator;
+ if (seperator.Equals(","))
+ seperator = ";";
+ else
+ seperator = ",";
+ object[] ob = { this.x, seperator, this.y };
+
+ return string.Format(formatProvider, "{0:" + format + "}{1}{2:" + format + "}", ob);
}
string IFormattable.ToString (string format, IFormatProvider formatProvider)
- {\r
+ {
return this.ToString(format, formatProvider);
}
// Removing the PropertyChanged event handler should work as well:
((INotifyPropertyChanged)collection).PropertyChanged -= pceh;
- }\r
-\r
- //Private test class for protected members of ObservableCollection\r
- private class ObservableCollectionTestHelper : ObservableCollection<char> {\r
- internal void DoubleEnterReentrant()\r
- {\r
- IDisposable object1 = BlockReentrancy ();\r
- IDisposable object2 = BlockReentrancy ();\r
-\r
- Assert.AreSame (object1, object2);\r
-\r
- //With double block, try the reentrant:\r
- NotifyCollectionChangedEventArgs args = null;\r
-\r
- CollectionChanged += delegate (object sender, NotifyCollectionChangedEventArgs e) {\r
- args = e;\r
- };\r
-\r
- // We need a second callback for reentrancy to matter\r
- CollectionChanged += delegate (object sender, NotifyCollectionChangedEventArgs e) {\r
- // Doesn't need to do anything; just needs more than one callback registered.\r
- };\r
-\r
- // Try adding - this should cause reentrancy, and fail\r
- try {\r
- Add ('I');\r
- Assert.Fail ("Reentrancy should not be allowed. -- #2");\r
- } catch (InvalidOperationException) {\r
- }\r
- \r
- // Release the first reentrant\r
- object1.Dispose ();\r
-\r
- // Try adding again - this should cause reentrancy, and fail again\r
- try {\r
- Add ('J');\r
- Assert.Fail ("Reentrancy should not be allowed. -- #3");\r
- } catch (InvalidOperationException) {\r
- }\r
-\r
- // Release the reentrant a second time\r
- object1.Dispose ();\r
-\r
- // This last add should work fine.\r
- Add ('K');\r
- CollectionChangedEventValidators.ValidateAddOperation (args, new char [] { 'K' }, 0, "REENTHELP_1");\r
- }\r
- }\r
-\r
- [Test]\r
- public void ReentrantReuseObject()\r
- {\r
- ObservableCollectionTestHelper helper = new ObservableCollectionTestHelper ();\r
-\r
- helper.DoubleEnterReentrant ();\r
+ }
+
+ //Private test class for protected members of ObservableCollection
+ private class ObservableCollectionTestHelper : ObservableCollection<char> {
+ internal void DoubleEnterReentrant()
+ {
+ IDisposable object1 = BlockReentrancy ();
+ IDisposable object2 = BlockReentrancy ();
+
+ Assert.AreSame (object1, object2);
+
+ //With double block, try the reentrant:
+ NotifyCollectionChangedEventArgs args = null;
+
+ CollectionChanged += delegate (object sender, NotifyCollectionChangedEventArgs e) {
+ args = e;
+ };
+
+ // We need a second callback for reentrancy to matter
+ CollectionChanged += delegate (object sender, NotifyCollectionChangedEventArgs e) {
+ // Doesn't need to do anything; just needs more than one callback registered.
+ };
+
+ // Try adding - this should cause reentrancy, and fail
+ try {
+ Add ('I');
+ Assert.Fail ("Reentrancy should not be allowed. -- #2");
+ } catch (InvalidOperationException) {
+ }
+
+ // Release the first reentrant
+ object1.Dispose ();
+
+ // Try adding again - this should cause reentrancy, and fail again
+ try {
+ Add ('J');
+ Assert.Fail ("Reentrancy should not be allowed. -- #3");
+ } catch (InvalidOperationException) {
+ }
+
+ // Release the reentrant a second time
+ object1.Dispose ();
+
+ // This last add should work fine.
+ Add ('K');
+ CollectionChangedEventValidators.ValidateAddOperation (args, new char [] { 'K' }, 0, "REENTHELP_1");
+ }
+ }
+
+ [Test]
+ public void ReentrantReuseObject()
+ {
+ ObservableCollectionTestHelper helper = new ObservableCollectionTestHelper ();
+
+ helper.DoubleEnterReentrant ();
}
[Test]
--- /dev/null
+/FakePackage.cs -crlf
+/FakePackagePartTests.cs -crlf
+/FakePackageTests.cs -crlf
+/PackUriHelperTests.cs -crlf
+/PackagePartStreamTests.cs -crlf
+/PackagePartTest.cs -crlf
+/PackageRelationshipTests.cs -crlf
+/PackageTest.cs -crlf
}
[DllImport ("MonoPosixHelper")]
- static extern unsafe int zipWriteInFileInZip (ZipHandle handle,\r
- byte* buffer,\r
+ static extern unsafe int zipWriteInFileInZip (ZipHandle handle,
+ byte* buffer,
uint len);
[DllImport ("MonoPosixHelper")]
{
[StructLayout (LayoutKind.Sequential)]
struct UnzipFileInfo
- {\r
- IntPtr version; /* version made by 2 bytes */\r
- IntPtr version_needed; /* version needed to extract 2 bytes */\r
- IntPtr flag; /* general purpose bit flag 2 bytes */\r
- IntPtr compression_method; /* compression method 2 bytes */\r
- IntPtr dosDate; /* last mod file date in Dos fmt 4 bytes */\r
- IntPtr crc; /* crc-32 4 bytes */\r
- IntPtr compressed_size; /* compressed size 4 bytes */\r
- IntPtr uncompressed_size; /* uncompressed size 4 bytes */\r
- IntPtr size_filename; /* filename length 2 bytes */\r
- IntPtr size_file_extra; /* extra field length 2 bytes */\r
- IntPtr size_file_comment; /* file comment length 2 bytes */\r
- \r
- IntPtr disk_num_start; /* disk number start 2 bytes */\r
- IntPtr internal_fa; /* internal file attributes 2 bytes */\r
- IntPtr external_fa; /* external file attributes 4 bytes */\r
- \r
+ {
+ IntPtr version; /* version made by 2 bytes */
+ IntPtr version_needed; /* version needed to extract 2 bytes */
+ IntPtr flag; /* general purpose bit flag 2 bytes */
+ IntPtr compression_method; /* compression method 2 bytes */
+ IntPtr dosDate; /* last mod file date in Dos fmt 4 bytes */
+ IntPtr crc; /* crc-32 4 bytes */
+ IntPtr compressed_size; /* compressed size 4 bytes */
+ IntPtr uncompressed_size; /* uncompressed size 4 bytes */
+ IntPtr size_filename; /* filename length 2 bytes */
+ IntPtr size_file_extra; /* extra field length 2 bytes */
+ IntPtr size_file_comment; /* file comment length 2 bytes */
+
+ IntPtr disk_num_start; /* disk number start 2 bytes */
+ IntPtr internal_fa; /* internal file attributes 2 bytes */
+ IntPtr external_fa; /* external file attributes 4 bytes */
+
ZipTime tmu_date;
public ulong VersionNeeded {
--- /dev/null
+/mscorlib.xml -crlf
<ReturnValue />
<Parameters />
<Docs>
- <summary>Constructor, no idea why it is here (abstract class) :-)\r
+ <summary>Constructor, no idea why it is here (abstract class) :-)
</summary>
<remarks>Included for compatibility with MS.</remarks>
</Docs>
--- /dev/null
+/ChangeLog -crlf
--- /dev/null
+/CodePageDataItem.cs -crlf
{\r
[Serializable]\r
internal sealed class CodePageDataItem\r
- {
+ {\r
#pragma warning disable 169 \r
private string m_bodyName;\r
private int m_codePage;\r
\r
private CodePageDataItem ()\r
{\r
- }
+ }\r
#pragma warning disable 169 \r
}\r
}\r
--- /dev/null
+/MonoIOError.cs -crlf
+/MonoIOStat.cs -crlf
+/SearchPattern.cs -crlf
+/StreamWriter.cs -crlf
+/StringWriter.cs -crlf
-//
-// System.IO.MonoIOError.cs: Win32 error codes. Yuck.
-//
-// Author:
-// Dan Lewis (dihlewis@yahoo.co.uk)
-//
-// (C) 2002
-//
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+//\r
+// System.IO.MonoIOError.cs: Win32 error codes. Yuck.\r
+//\r
+// Author:\r
+// Dan Lewis (dihlewis@yahoo.co.uk)\r
+//\r
+// (C) 2002\r
+//\r
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
\r
ERROR_PATH_NOT_FOUND = 3,\r
ERROR_TOO_MANY_OPEN_FILES = 4,\r
ERROR_ACCESS_DENIED = 5,\r
- ERROR_INVALID_HANDLE = 6,
+ ERROR_INVALID_HANDLE = 6,\r
/* ERROR_ARENA_TRASHED = 7,\r
ERROR_NOT_ENOUGH_MEMORY = 8,\r
ERROR_INVALID_BLOCK = 9,\r
ERROR_SEEK = 25,\r
ERROR_NOT_DOS_DISK = 26,\r
ERROR_SECTOR_NOT_FOUND = 27,\r
- ERROR_OUT_OF_PAPER = 28,*/
+ ERROR_OUT_OF_PAPER = 28,*/\r
ERROR_WRITE_FAULT = 29,\r
ERROR_READ_FAULT = 30,\r
- ERROR_GEN_FAILURE = 31,
- ERROR_SHARING_VIOLATION = 32,
+ ERROR_GEN_FAILURE = 31,\r
+ ERROR_SHARING_VIOLATION = 32,\r
ERROR_LOCK_VIOLATION = 33,\r
/* ERROR_WRONG_DISK = 34,\r
ERROR_SHARING_BUFFER_EXCEEDED = 36,\r
ERROR_SHARING_PAUSED = 70,\r
ERROR_REQ_NOT_ACCEP = 71,\r
ERROR_REDIR_PAUSED = 72,\r
- */ ERROR_FILE_EXISTS = 80,
- ERROR_CANNOT_MAKE = 82,
+ */ ERROR_FILE_EXISTS = 80,\r
+ ERROR_CANNOT_MAKE = 82,\r
/* ERROR_FAIL_I24 = 83,\r
ERROR_OUT_OF_STRUCTURES = 84,\r
ERROR_ALREADY_ASSIGNED = 85,\r
ERROR_BUSY_DRIVE = 142,\r
ERROR_SAME_DRIVE = 143,\r
ERROR_DIR_NOT_ROOT = 144,\r
- */
+ */\r
ERROR_DIR_NOT_EMPTY = 145,\r
- /*
+ /*\r
ERROR_IS_SUBST_PATH = 146,\r
ERROR_IS_JOIN_PATH = 147,\r
ERROR_PATH_BUSY = 148,\r
ERROR_NODE_CANNOT_BE_CLUSTERED = 5898,\r
ERROR_CLUSTER_WRONG_OS_VERSION = 5899,\r
ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME = 5900,\r
- */
- ERROR_ENCRYPTION_FAILED = 6000,
- /*
+ */\r
+ ERROR_ENCRYPTION_FAILED = 6000,\r
+ /*\r
ERROR_DECRYPTION_FAILED = 6001,\r
ERROR_FILE_ENCRYPTED = 6002,\r
ERROR_NO_RECOVERY_POLICY = 6003,\r
//\r
// (C) 2002\r
//\r
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
\r
--- /dev/null
+/IOperatingSystem.cs -crlf
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-//
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
/*---------------------------------------------------------------------\r
\r
XX X XXX\r
-//------------------------------------------------------------------------------\r
-// \r
-// System.Runtime.CompilerServices.MethodCodeType.cs \r
-//\r
-// Copyright (C) 2001 Michael Lambert, All Rights Reserved\r
-// \r
-// Author: Michael Lambert, michaellambert@email.com\r
-// Created: Thu 07/18/2001 \r
-//\r
-//------------------------------------------------------------------------------\r
+//------------------------------------------------------------------------------
+//
+// System.Runtime.CompilerServices.MethodCodeType.cs
+//
+// Copyright (C) 2001 Michael Lambert, All Rights Reserved
+//
+// Author: Michael Lambert, michaellambert@email.com
+// Created: Thu 07/18/2001
+//
+//------------------------------------------------------------------------------
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-using System;\r
-using System.Threading;\r
-using System.Runtime.Remoting.Messaging;\r
-using System.Runtime.Remoting.Activation;\r
-using System.Runtime.Remoting.Channels;\r
-\r
-namespace System.Runtime.Remoting.Contexts\r
-{\r
- internal class CrossContextChannel: IMessageSink\r
- {\r
+
+using System;
+using System.Threading;
+using System.Runtime.Remoting.Messaging;
+using System.Runtime.Remoting.Activation;
+using System.Runtime.Remoting.Channels;
+
+namespace System.Runtime.Remoting.Contexts
+{
+ internal class CrossContextChannel: IMessageSink
+ {
public IMessage SyncProcessMessage (IMessage msg)
{
ServerIdentity identity = (ServerIdentity) RemotingServices.GetMessageTargetIdentity (msg);
public IMessageSink NextSink
{
get { return null; }
- }\r
-\r
- class ContextRestoreSink: IMessageSink\r
- {\r
- IMessageSink _next;\r
- Context _context;\r
- IMessage _call;\r
-\r
- public ContextRestoreSink (IMessageSink next, Context context, IMessage call)\r
- {\r
- _next = next;\r
- _context = context;\r
- _call = call;\r
- }\r
-\r
+ }
+
+ class ContextRestoreSink: IMessageSink
+ {
+ IMessageSink _next;
+ Context _context;
+ IMessage _call;
+
+ public ContextRestoreSink (IMessageSink next, Context context, IMessage call)
+ {
+ _next = next;
+ _context = context;
+ _call = call;
+ }
+
public IMessage SyncProcessMessage (IMessage msg)
{
try
{
if (_context != null)
Context.SwitchToContext (_context);
- } \r
+ }
}
public IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
public IMessageSink NextSink
{
get { return _next; }
- } \r
- }\r
-\r
- }\r
-}\r
+ }
+ }
+
+ }
+}
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-using System;\r
-using System.Threading;\r
-using System.Collections;\r
-\r
-namespace System.Runtime.Remoting.Lifetime\r
-{\r
- internal class Lease : MarshalByRefObject, ILease\r
- {\r
+
+using System;
+using System.Threading;
+using System.Collections;
+
+namespace System.Runtime.Remoting.Lifetime
+{
+ internal class Lease : MarshalByRefObject, ILease
+ {
DateTime _leaseExpireTime;
LeaseState _currentState;
TimeSpan _initialLeaseTime;
RenewalDelegate _renewalDelegate;
delegate TimeSpan RenewalDelegate(ILease lease);
-\r
- public Lease()\r
- {\r
- _currentState = LeaseState.Initial;\r
- _initialLeaseTime = LifetimeServices.LeaseTime;\r
- _renewOnCallTime = LifetimeServices.RenewOnCallTime;\r
- _sponsorshipTimeout = LifetimeServices.SponsorshipTimeout;\r
- _leaseExpireTime = DateTime.Now + _initialLeaseTime;\r
- }\r
-\r
+
+ public Lease()
+ {
+ _currentState = LeaseState.Initial;
+ _initialLeaseTime = LifetimeServices.LeaseTime;
+ _renewOnCallTime = LifetimeServices.RenewOnCallTime;
+ _sponsorshipTimeout = LifetimeServices.SponsorshipTimeout;
+ _leaseExpireTime = DateTime.Now + _initialLeaseTime;
+ }
+
public TimeSpan CurrentLeaseTime
{
get { return _leaseExpireTime - DateTime.Now; }
throw new RemotingException ("InitialLeaseTime property can only be set when the lease is in initial state; state is " + _currentState + ".");
_initialLeaseTime = value;
- _leaseExpireTime = DateTime.Now + _initialLeaseTime;\r
+ _leaseExpireTime = DateTime.Now + _initialLeaseTime;
if (value == TimeSpan.Zero) _currentState = LeaseState.Null;
}
}
Unregister ((ISponsor) _renewingSponsors.Dequeue()); // Drop the sponsor
CheckNextSponsor ();
}
- }\r
-}\r
+ }
+}
--- /dev/null
+/EnvoyTerminatorSink.cs -crlf
+/Header.cs -crlf
+/IInternalMessage.cs -crlf
+/MethodCallDictionary.cs -crlf
+/MethodReturnDictionary.cs -crlf
+/RemotingSurrogate.cs -crlf
// Author: Lluis Sanchez Gual (lluis@ideary.com)
//
// (C) 2003, Lluis Sanchez Gual
-//\r
+//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-\r
-using System;\r
-using System.Runtime.Remoting.Activation;\r
-\r
-namespace System.Runtime.Remoting.Messaging\r
-{\r
- class ConstructionCallDictionary : MethodDictionary\r
- {\r
- public static string[] InternalKeys = new string[] {"__Uri", "__MethodName", "__TypeName", "__MethodSignature", "__Args", "__CallContext", "__CallSiteActivationAttributes", "__ActivationType", "__ContextProperties", "__Activator", "__ActivationTypeName"};\r
-\r
- public ConstructionCallDictionary(IConstructionCallMessage message) : base (message) \r
- { \r
- MethodKeys = InternalKeys;\r
- }\r
+
+using System;
+using System.Runtime.Remoting.Activation;
+
+namespace System.Runtime.Remoting.Messaging
+{
+ class ConstructionCallDictionary : MethodDictionary
+ {
+ public static string[] InternalKeys = new string[] {"__Uri", "__MethodName", "__TypeName", "__MethodSignature", "__Args", "__CallContext", "__CallSiteActivationAttributes", "__ActivationType", "__ContextProperties", "__Activator", "__ActivationTypeName"};
+
+ public ConstructionCallDictionary(IConstructionCallMessage message) : base (message)
+ {
+ MethodKeys = InternalKeys;
+ }
protected override object GetMethodProperty (string key)
{
default: base.SetMethodProperty (key, value); break;
}
}
- }\r
-}\r
+ }
+}
// Author: Lluis Sanchez Gual (lluis@ideary.com)
//
// (C) 2003, Lluis Sanchez Gual
-//\r
+//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
// simple message to avoid serialization of crap data
[Serializable]
- internal class ErrorMessage : IMethodCallMessage\r
+ internal class ErrorMessage : IMethodCallMessage
{
string _uri = "Exception";
return "unknown";
}
- public int InArgCount \r
- { \r
- get { \r
- return 0;\r
- } \r
- }\r
-\r
- public String GetInArgName(int index) \r
- { \r
- return null; \r
- }\r
-\r
- public Object GetInArg(int argNum) \r
- { \r
- return null;\r
- }\r
-\r
- public Object[] InArgs \r
- { \r
- get { return null; }\r
- }\r
-\r
- public LogicalCallContext LogicalCallContext \r
- { \r
- get { return null; } \r
- }\r
+ public int InArgCount
+ {
+ get {
+ return 0;
+ }
+ }
+
+ public String GetInArgName(int index)
+ {
+ return null;
+ }
+
+ public Object GetInArg(int argNum)
+ {
+ return null;
+ }
+
+ public Object[] InArgs
+ {
+ get { return null; }
+ }
+
+ public LogicalCallContext LogicalCallContext
+ {
+ get { return null; }
+ }
}
}
return _inArgInfo.GetInOutArgName(index);
}
- class DictionaryWrapper : MethodCallDictionary\r
- {\r
- IDictionary _wrappedDictionary;\r
- static string[] _keys = new string[] {"__Args"};\r
-\r
- public DictionaryWrapper(IMethodMessage message, IDictionary wrappedDictionary) : base (message)\r
- {\r
- _wrappedDictionary = wrappedDictionary;\r
- MethodKeys = _keys;\r
- }\r
-
- protected override IDictionary AllocInternalProperties()\r
- {\r
- return _wrappedDictionary;\r
- }\r
+ class DictionaryWrapper : MethodCallDictionary
+ {
+ IDictionary _wrappedDictionary;
+ static string[] _keys = new string[] {"__Args"};
+
+ public DictionaryWrapper(IMethodMessage message, IDictionary wrappedDictionary) : base (message)
+ {
+ _wrappedDictionary = wrappedDictionary;
+ MethodKeys = _keys;
+ }
+
+ protected override IDictionary AllocInternalProperties()
+ {
+ return _wrappedDictionary;
+ }
protected override void SetMethodProperty (string key, object value)
{
get { return _args.Length; }
}
- public virtual object [] Args \r
+ public virtual object [] Args
{
get { return _args; }
set { _args = value; }
get { return ((IMethodReturnMessage)WrappedMessage).TypeName; }
}
- public string Uri \r
+ public string Uri
{
get { return ((IMethodReturnMessage)WrappedMessage).Uri; }
set { Properties["__Uri"] = value; }
return _outArgInfo.GetInOutArgName(index);
}
- class DictionaryWrapper : MethodReturnDictionary\r
- {\r
- IDictionary _wrappedDictionary;\r
- static string[] _keys = new string[] {"__Args", "__Return"};\r
-\r
- public DictionaryWrapper(IMethodReturnMessage message, IDictionary wrappedDictionary) : base (message)\r
- {\r
- _wrappedDictionary = wrappedDictionary;\r
- MethodKeys = _keys;\r
- }\r
-
- protected override IDictionary AllocInternalProperties()\r
- {\r
- return _wrappedDictionary;\r
- }\r
+ class DictionaryWrapper : MethodReturnDictionary
+ {
+ IDictionary _wrappedDictionary;
+ static string[] _keys = new string[] {"__Args", "__Return"};
+
+ public DictionaryWrapper(IMethodReturnMessage message, IDictionary wrappedDictionary) : base (message)
+ {
+ _wrappedDictionary = wrappedDictionary;
+ MethodKeys = _keys;
+ }
+
+ protected override IDictionary AllocInternalProperties()
+ {
+ return _wrappedDictionary;
+ }
protected override void SetMethodProperty (string key, object value)
{
[System.Runtime.InteropServices.ComVisible (true)]
public class RemotingSurrogateSelector : ISurrogateSelector
{
- static Type s_cachedTypeObjRef = typeof(ObjRef);\r
+ static Type s_cachedTypeObjRef = typeof(ObjRef);
static ObjRefSurrogate _objRefSurrogate = new ObjRefSurrogate();
static RemotingSurrogate _objRemotingSurrogate = new RemotingSurrogate();
- Object _rootObj = null; \r
+ Object _rootObj = null;
MessageSurrogateFilter _filter = null;
ISurrogateSelector _next;
--- /dev/null
+/TrackingServices.cs -crlf
--- /dev/null
+/EnvoyInfo.cs -crlf
--- /dev/null
+/binary_serialization_format.htm -crlf
--- /dev/null
+/IFieldInfo.cs -crlf
+/ISoapMessage.cs -crlf
+/ServerFault.cs -crlf
+/SoapFault.cs -crlf
+/SoapMessage.cs -crlf
{\r
string exceptionType;\r
string message;\r
- string stackTrace;
-
-#pragma warning disable 169
- // Used by some remoting magic
- Exception exception;
+ string stackTrace;\r
+ \r
+#pragma warning disable 169 \r
+ // Used by some remoting magic\r
+ Exception exception;\r
#pragma warning restore 169 \r
\r
public ServerFault (string exceptionType, string message,\r
--- /dev/null
+/AsymmetricKeyExchangeDeformatter.cs -crlf
+/AsymmetricKeyExchangeFormatter.cs -crlf
+/Base64Constants.cs -crlf
+/CspParameters.cs -crlf
+/DSAParameters.cs -crlf
+/DeriveBytes.cs -crlf
+/MD5.cs -crlf
+/RSAParameters.cs -crlf
+/Rijndael.cs -crlf
+/SHA1.cs -crlf
+/SHA256.cs -crlf
+/SHA384.cs -crlf
+/SHA512.cs -crlf
// Ek1(Ek2(m)) = m
internal static readonly byte[,] semiWeakKeys = {
- { 0x00, 0x1E, 0x00, 0x1E, 0x00, 0x0E, 0x00, 0x0E }, // map to packed key 011F011F010E010E\r
- { 0x00, 0xE0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF0 }, // map to packed key 01E001E001F101F1\r
- { 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE }, // map to packed key 01FE01FE01FE01FE\r
- { 0x1E, 0x00, 0x1E, 0x00, 0x0E, 0x00, 0x0E, 0x00 }, // map to packed key 1F011F010E010E01\r
- { 0x1E, 0xE0, 0x1E, 0xE0, 0x0E, 0xF0, 0x0E, 0xF0 }, // map to packed key 1FE01FE00EF10EF1\r
- { 0x1E, 0xFE, 0x1E, 0xFE, 0x0E, 0xFE, 0x0E, 0xFE }, // map to packed key 1FFE1FFE0EFE0EFE\r
- { 0xE0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF0, 0x00 }, // map to packed key E001E001F101F101\r
- { 0xE0, 0x1E, 0xE0, 0x1E, 0xF0, 0x0E, 0xF0, 0x0E }, // map to packed key E01FE01FF10EF10E\r
- { 0xE0, 0xFE, 0xE0, 0xFE, 0xF0, 0xFE, 0xF0, 0xFE }, // map to packed key E0FEE0FEF1FEF1FE\r
- { 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00 }, // map to packed key FE01FE01FE01FE01\r
- { 0xFE, 0x1E, 0xFE, 0x1E, 0xFE, 0x0E, 0xFE, 0x0E }, // map to packed key FE1FFE1FFE0EFE0E\r
- { 0xFE, 0xE0, 0xFE, 0xE0, 0xFE, 0xF0, 0xFE, 0xF0 }, // map to packed key FEE0FEE0FEF1FEF1\r
- };\r
+ { 0x00, 0x1E, 0x00, 0x1E, 0x00, 0x0E, 0x00, 0x0E }, // map to packed key 011F011F010E010E
+ { 0x00, 0xE0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF0 }, // map to packed key 01E001E001F101F1
+ { 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE }, // map to packed key 01FE01FE01FE01FE
+ { 0x1E, 0x00, 0x1E, 0x00, 0x0E, 0x00, 0x0E, 0x00 }, // map to packed key 1F011F010E010E01
+ { 0x1E, 0xE0, 0x1E, 0xE0, 0x0E, 0xF0, 0x0E, 0xF0 }, // map to packed key 1FE01FE00EF10EF1
+ { 0x1E, 0xFE, 0x1E, 0xFE, 0x0E, 0xFE, 0x0E, 0xFE }, // map to packed key 1FFE1FFE0EFE0EFE
+ { 0xE0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF0, 0x00 }, // map to packed key E001E001F101F101
+ { 0xE0, 0x1E, 0xE0, 0x1E, 0xF0, 0x0E, 0xF0, 0x0E }, // map to packed key E01FE01FF10EF10E
+ { 0xE0, 0xFE, 0xE0, 0xFE, 0xF0, 0xFE, 0xF0, 0xFE }, // map to packed key E0FEE0FEF1FEF1FE
+ { 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00, 0xFE, 0x00 }, // map to packed key FE01FE01FE01FE01
+ { 0xFE, 0x1E, 0xFE, 0x1E, 0xFE, 0x0E, 0xFE, 0x0E }, // map to packed key FE1FFE1FFE0EFE0E
+ { 0xFE, 0xE0, 0xFE, 0xE0, 0xFE, 0xF0, 0xFE, 0xF0 }, // map to packed key FEE0FEE0FEF1FEF1
+ };
public static bool IsWeakKey (byte[] rgbKey)
{
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-namespace System.Security.Cryptography {\r
+namespace System.Security.Cryptography {
internal static class SHAConstants {
// SHA-256 Constants
0x4cc5d4becb3e42b6L, 0x597f299cfc657e2aL, 0x5fcb6fab3ad6faecL, 0x6c44198c4a475817L
};
}
-}\r
+}
--- /dev/null
+/IUnrestrictedPermission.cs -crlf
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
+
+namespace System.Security.Permissions {
#if NET_2_1
[Obsolete ("CAS support is not available with Silverlight applications.")]
-#endif\r
+#endif
[ComVisible (true)]
[AttributeUsage(
AttributeTargets.Assembly
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[Serializable]
public sealed class EnvironmentPermission : CodeAccessPermission, IUnrestrictedPermission, IBuiltInPermission {
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[Serializable]
public sealed class FileDialogPermission : CodeAccessPermission, IUnrestrictedPermission, IBuiltInPermission {
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
using System.Globalization;
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[Serializable]
public sealed class GacIdentityPermission : CodeAccessPermission, IBuiltInPermission {
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[AttributeUsage ( AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
+
+namespace System.Security.Permissions {
+
[ComVisible (true)]
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class |
AttributeTargets.Struct | AttributeTargets.Constructor |
--- /dev/null
+/ApplicationDirectoryMembershipCondition.cs -crlf
+/ApplicationMembershipCondition.cs -crlf
+/DomainApplicationMembershipCondition.cs -crlf
+/IIdentityPermissionFactory.cs -crlf
+/IMembershipCondition.cs -crlf
+/PermissionRequestEvidence.cs -crlf
+/PolicyStatement.cs -crlf
HasElevatedPermissions = !SecurityEnabled;
}
- // note: this let us differentiate between running in the browser (w/CoreCLR) and \r
- // running on the desktop (e.g. smcs compiling stuff)\r
+ // note: this let us differentiate between running in the browser (w/CoreCLR) and
+ // running on the desktop (e.g. smcs compiling stuff)
extern public static bool SecurityEnabled {
[MethodImplAttribute (MethodImplOptions.InternalCall)]
get;
--- /dev/null
+/HashtableTest.cs -crlf
isf.Close ();
}
-\r
- private ulong MaximumSize (SecurityZone zone)\r
- {\r
- IsolatedStorageScope scope = IsolatedStorageScope.User | IsolatedStorageScope.Assembly;\r
-\r
- Evidence ae = new Evidence ();\r
- ae.AddHost (new Zone (zone));\r
- IsolatedStorageFile isf = IsolatedStorageFile.GetStore (scope, null, null, ae, typeof (Zone));\r
- return isf.MaximumSize;\r
- }\r
-\r
- [Test]\r
- public void MaximumSize ()\r
- {\r
- Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.MyComputer), "MyComputer");\r
+
+ private ulong MaximumSize (SecurityZone zone)
+ {
+ IsolatedStorageScope scope = IsolatedStorageScope.User | IsolatedStorageScope.Assembly;
+
+ Evidence ae = new Evidence ();
+ ae.AddHost (new Zone (zone));
+ IsolatedStorageFile isf = IsolatedStorageFile.GetStore (scope, null, null, ae, typeof (Zone));
+ return isf.MaximumSize;
+ }
+
+ [Test]
+ public void MaximumSize ()
+ {
+ Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.MyComputer), "MyComputer");
Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.Intranet), "Intranet");
#if NET_2_0
- Assert.AreEqual (512000, MaximumSize (SecurityZone.Internet), "Internet");\r
+ Assert.AreEqual (512000, MaximumSize (SecurityZone.Internet), "Internet");
Assert.AreEqual (512000, MaximumSize (SecurityZone.Trusted), "Trusted");
#else
- Assert.AreEqual (10240, MaximumSize (SecurityZone.Internet), "Internet");\r
+ Assert.AreEqual (10240, MaximumSize (SecurityZone.Internet), "Internet");
Assert.AreEqual (10240, MaximumSize (SecurityZone.Trusted), "Trusted");
-#endif\r
- }\r
-\r
- [Test]\r
- [ExpectedException (typeof (PolicyException))]\r
- public void MaximumSize_Untrusted ()\r
- {\r
- Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.Untrusted), "Untrusted");\r
- }\r
-\r
- [Test]\r
- [ExpectedException (typeof (PolicyException))]\r
- public void MaximumSize_NoZone ()\r
- {\r
- Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.NoZone), "NoZone");\r
- }\r
+#endif
+ }
+
+ [Test]
+ [ExpectedException (typeof (PolicyException))]
+ public void MaximumSize_Untrusted ()
+ {
+ Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.Untrusted), "Untrusted");
+ }
+
+ [Test]
+ [ExpectedException (typeof (PolicyException))]
+ public void MaximumSize_NoZone ()
+ {
+ Assert.AreEqual (Int64.MaxValue, MaximumSize (SecurityZone.NoZone), "NoZone");
+ }
}
}
--- /dev/null
+/DirectoryTest.cs -crlf
--- /dev/null
+/MutexTest.cs -crlf
--- /dev/null
+/DecimalTest2.cs -crlf
+/ExceptionTest.cs -crlf
+/MulticastDelegate.cs -crlf
--- /dev/null
+/AFile.txt -crlf
--- /dev/null
+/BindingRestrictions.cs -crlf
+/ExpandoObject.cs -crlf
--- /dev/null
+/Expression.cs -crlf
+/ListInitExpression.cs -crlf
--- /dev/null
+/LambdaCompiler.Lambda.cs -crlf
--- /dev/null
+/ExtensionAssemblyInfo.cs -crlf
--- /dev/null
+/CS0122-19-lib.cs -crlf
+/cs0019-21.cs -crlf
+/cs0019-22.cs -crlf
+/cs0019-23.cs -crlf
+/cs0029-11.cs -crlf
+/cs0029-2.cs -crlf
+/cs0035.cs -crlf
+/cs0037-6.cs -crlf
+/cs0103-4.cs -crlf
+/cs0117-6.cs -crlf
+/cs0121-10.cs -crlf
+/cs0121-9.cs -crlf
+/cs0144-3.cs -crlf
+/cs0154-3.cs -crlf
+/cs0173-4.cs -crlf
+/cs0221-10.cs -crlf
+/cs0221-5.cs -crlf
+/cs0221-6.cs -crlf
+/cs0221-7.cs -crlf
+/cs0221-8.cs -crlf
+/cs0221-9.cs -crlf
+/cs0236-2.cs -crlf
+/cs0266-9.cs -crlf
+/cs0466.cs -crlf
+/cs0469.cs -crlf
+/cs0553-2.cs -crlf
+/cs0596-2.cs -crlf
+/cs0596.cs -crlf
+/cs0619-47.cs -crlf
+/cs0619-48.cs -crlf
+/cs0619-49.cs -crlf
+/cs0619-50.cs -crlf
+/cs0619-51.cs -crlf
+/cs0664-3.cs -crlf
+/cs1059-2.cs -crlf
+/cs1503.cs -crlf
+/cs1547-3.cs -crlf
+/cs1547-5.cs -crlf
+/cs1547-6.cs -crlf
+/cs1547-7.cs -crlf
+/cs1706-2.cs -crlf
+/cs1729-12.cs -crlf
+/cs3003-6.cs -crlf
+/gcs0019-4.cs -crlf
+/gcs0019-5.cs -crlf
+/gcs0019-6.cs -crlf
+/gcs0029-3.cs -crlf
+/gcs0266.cs -crlf
+/gcs0453-4.cs -crlf
+/gcs1644-15.cs -crlf
+/gcs1644-16.cs -crlf
+/gcs1960-2.cs -crlf
+/gcs1960.cs -crlf
+/gcs1961-10.cs -crlf
+/gcs1961-11.cs -crlf
+/gcs1961-12.cs -crlf
+/gcs1961-15.cs -crlf
+/gcs1961-16.cs -crlf
+/gcs1961-17.cs -crlf
+/gcs1961-2.cs -crlf
+/gcs1961-24.cs -crlf
+/gcs1961-25.cs -crlf
+/gcs1961-26.cs -crlf
+/gcs1961-27.cs -crlf
+/gcs1961-30.cs -crlf
+/gcs1961-31.cs -crlf
+/gcs1961-32.cs -crlf
+/gcs1961-33.cs -crlf
+/gcs1961-34.cs -crlf
+/gcs1961-35.cs -crlf
+/gcs1961-36.cs -crlf
+/gcs1961-37.cs -crlf
+/gcs1961-9.cs -crlf
+/gcs1961.cs -crlf
-// CS0019: Operator `+' cannot be applied to operands of type `AA' and `uint'
+// CS0019: Operator `+' cannot be applied to operands of type `AA' and `uint'\r
// Line: 11\r
\r
enum AA : byte { a, b = 200 }\r
const uint ul = 1;\r
AA b = AA.a + ul;\r
}\r
-}
+}\r
-// CS0019: Operator `-' cannot be applied to operands of type `AA' and `long'
+// CS0019: Operator `-' cannot be applied to operands of type `AA' and `long'\r
// Line: 11\r
\r
enum AA : short { a, b = 200 }\r
const long ul = 1;\r
AA b = AA.a - ul;\r
}\r
-}
+}\r
class T {
public static bool Main ()
- {\r
+ {
return false;
}
}
A a = new A ();\r
float f = -a; \r
}\r
-}
+}\r
-// cs0037.cs: Cannot convert null to `bool' because it is a value type
+// cs0037.cs: Cannot convert null to `bool' because it is a value type\r
// Line: 13\r
-
+\r
using System;\r
\r
public sealed class BoundAttribute : System.Attribute\r
-// CS0117: `string' does not contain a definition for `Parse'
-// Line: 10
+// CS0117: `string' does not contain a definition for `Parse'\r
+// Line: 10\r
\r
using System;\r
\r
// cs0132.-2cs: `X.X(int)': The static constructor must be parameterless
// Line: 5
-class X {\r
+class X {
static int ii = 55;
static X (int x)
{
{\r
int i = new Test()[false];\r
}\r
-}
+}\r
using System;
-class C {\r
- bool T () { return true; }\r
+class C {
+ bool T () { return true; }
void Close()
{
class X {\r
const E1 e = ~E2.A;\r
}\r
-
+\r
// cs0466.cs: `Base.I.M(params int[])': the explicit interface implementation cannot introduce the params modifier\r
-// Line: 10
+// Line: 10\r
\r
interface I\r
{\r
-// cs0469.cs: The `goto case' value is not implicitly convertible to type `char'
-// Line: 16
+// cs0469.cs: The `goto case' value is not implicitly convertible to type `char'\r
+// Line: 16\r
// Compiler options: -warnaserror -warn:2\r
\r
class Test\r
return null;\r
}\r
}\r
-}
+}\r
-// cs0619-50.cs: `A.B' is obsolete: `yes'
+// cs0619-50.cs: `A.B' is obsolete: `yes'\r
// Line: 12\r
-
+\r
using Z = A.B;\r
\r
class A\r
-// cs0619-51.cs: `A.comparer' is obsolete: `Please use ...'
+// cs0619-51.cs: `A.comparer' is obsolete: `Please use ...'\r
// Line: 16\r
// Compiler options: -reference:CS0619-51-lib.dll\r
\r
// cs0664-3.cs: Literal of type double cannot be implicitly converted to type `float'. Add suffix `f' to create a literal of this type\r
// Line: 13\r
-
+\r
using System;\r
\r
public sealed class BoundAttribute : System.Attribute\r
void Main () {\r
Console.WriteLine (++0);\r
}\r
-}
+}\r
{\r
A.Foo (1);\r
}\r
-}
+}\r
-// CS1706: Anonymous methods and lambda expressions cannot be used in the current context
+// CS1706: Anonymous methods and lambda expressions cannot be used in the current context\r
// Line: 14\r
\r
public delegate void Proc();\r
public void Foo()\r
{\r
}\r
-}
+} \r
class A
{
public A ()
- {\r
+ {
int a = a = 5;
}
}
\ No newline at end of file
{\r
A a = new A.Foo ("test"); \r
}\r
-}
+}\r
// CS3003: Type of `I.Foo' is not CLS-compliant\r
-// Line: 10
-// Compiler options: -warnaserror -warn:1
+// Line: 10\r
+// Compiler options: -warnaserror -warn:1\r
\r
using System;\r
[assembly:CLSCompliant (true)]\r
-// CS0019: Operator `+=' cannot be applied to operands of type `EventHandler' and `T'
+// CS0019: Operator `+=' cannot be applied to operands of type `EventHandler' and `T'\r
// Line: 10\r
\r
using System;\r
-// CS0266: Cannot implicitly convert type `I' to `C'. An explicit conversion exists (are you missing a cast?)
-// Line: 16
+// CS0266: Cannot implicitly convert type `I' to `C'. An explicit conversion exists (are you missing a cast?)\r
+// Line: 16\r
\r
interface I\r
{\r
-// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>.A'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be covariantly valid on `B<T>.A'
+// Line: 9
// Compiler options: -langversion:future
interface A<out T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1923: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'\r
-// Line: 9\r
+// CS1923: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be contravariantly valid on `B<T>.A'
+// Line: 9
// Compiler options: -langversion:future
interface A<in T>
-// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'\r
-// Line: 9\r
+// CS1961: The covariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.A'
-// Line: 9\r
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C()'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<T>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
-// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'\r
-// Line: 9\r
+// CS1961: The contravariant type parameter `T' must be invariantly valid on `B<T>.C(A<A<T>>)'
+// Line: 9
// Compiler options: -langversion:future
interface A<T>
--- /dev/null
+/Main.cs -crlf
--- /dev/null
+/Class.cs -crlf
+/CodeGen.cs -crlf
+/Method.cs -crlf
+/Types.cs -crlf
--- /dev/null
+/abs_method4.il -crlf
+/abs_method9.il -crlf
+/err-cattr.il -crlf
+/err-gen-cattr-1.il -crlf
+/err-gen-cattr-2.il -crlf
+/err-gen-cattr-3.il -crlf
+/err-gen-cattr-4.il -crlf
+/err-global.il -crlf
+/err-global2.il -crlf
--- /dev/null
+/ILParser.jay -crlf
+/ScannerAdapter.cs -crlf
--- /dev/null
+/ILReader.cs -crlf
+/ILSyntaxError.cs -crlf
+/ILTables.cs -crlf
+/ILToken.cs -crlf
+/ILTokenizer.cs -crlf
+/ITokenStream.cs -crlf
+/InstrToken.cs -crlf
+/Location.cs -crlf
+/NumberHelper.cs -crlf
+/StringHelper.cs -crlf
+/StringHelperBase.cs -crlf
--- /dev/null
+/abs_method1.il -crlf
+/abs_method10.il -crlf
+/abs_method2.il -crlf
+/abs_method3.il -crlf
+/abs_method5.il -crlf
+/abs_method6.il -crlf
+/abs_method7.il -crlf
+/abs_method8.il -crlf
+/dotted-names.il -crlf
+/gen-1.il -crlf
+/gen-extern-type.il -crlf
+/global.il -crlf
+/test-33.il -crlf
+/test-34.il -crlf
+/test-bounded-array.il -crlf
+/test-cattr-1.il -crlf
+/test-field-init.il -crlf
+/test-perm_pass-2.il -crlf
+/test-perm_pass-3.il -crlf
--- /dev/null
+/gmcs.exe.config -crlf
--- /dev/null
+/CommonAssemblyInfo.cs -crlf
+/license.rtf -crlf
+/nunit20under21.config -crlf
+/nunit20under22.config -crlf
+/nunit21under22.config -crlf
--- /dev/null
+/AggregatingTestRunner.cs -crlf
+/AssemblyInfo.cs -crlf
+/AssemblyItem.cs -crlf
+/AssemblyList.cs -crlf
+/AssemblyWatcher.cs -crlf
+/CategoryExpression.cs -crlf
+/CategoryManager.cs -crlf
+/CommandLineOptions.cs -crlf
+/ConsoleWriter.cs -crlf
+/ISettings.cs -crlf
+/ITestEvents.cs -crlf
+/ITestLoader.cs -crlf
+/MemorySettingsStorage.cs -crlf
+/MultipleTestDomainRunner.cs -crlf
+/NUnitProject.cs -crlf
+/NUnitRegistry.cs -crlf
+/PathUtils.cs -crlf
+/ProcessRunner.cs -crlf
+/ProjectConfig.cs -crlf
+/ProjectConfigCollection.cs -crlf
+/ProjectFormatException.cs -crlf
+/ProxyTestRunner.cs -crlf
+/RecentFileEntry.cs -crlf
+/RecentFiles.cs -crlf
+/RecentFilesCollection.cs -crlf
+/RegistrySettingsStorage.cs -crlf
+/RemoteTestAgent.cs -crlf
+/ResultSummarizer.cs -crlf
+/ServerBase.cs -crlf
+/ServerUtilities.cs -crlf
+/Services.cs -crlf
+/SettingsGroup.cs -crlf
+/SettingsStorage.cs -crlf
+/StackTraceFilter.cs -crlf
+/SummaryVisitor.cs -crlf
+/TestAgent.cs -crlf
+/TestDomain.cs -crlf
+/TestEventArgs.cs -crlf
+/TestEventDispatcher.cs -crlf
+/TestExceptionHandler.cs -crlf
+/TestLoader.cs -crlf
+/TestObserver.cs -crlf
+/TestResultItem.cs -crlf
+/TestServer.cs -crlf
+/Transform.resx -crlf
+/VSProject.cs -crlf
+/VSProjectConfig.cs -crlf
+/VSProjectConfigCollection.cs -crlf
+/XmlResultTransform.cs -crlf
+/XmlResultVisitor.cs -crlf
+/XmlSettingsStorage.cs -crlf
+/nunit.util.build -crlf
--- /dev/null
+/AddinManager.cs -crlf
+/AddinRegistry.cs -crlf
+/DomainManager.cs -crlf
+/RecentFilesService.cs -crlf
+/ServiceManager.cs -crlf
+/SettingsService.cs -crlf
+/TestAgency.cs -crlf
+/TestAgentManager.cs -crlf
--- /dev/null
+/App.config -crlf
+/Class1.cs -crlf
+/assemblyinfo.cs -crlf
+/nunit-console.exe.build -crlf
+/nunit-console.exe.config -crlf
+/nunit-console.exe.config.net_2_0 -crlf
+/nunit-console.exe.config.net_3_5 -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/ConsoleOptions.cs -crlf
+/ConsoleUi.cs -crlf
+/EventCollector.cs -crlf
+/Runner.cs -crlf
+/nunit-console.build -crlf
--- /dev/null
+/AbstractTestCaseDecoration.cs -crlf
+/AssemblyInfo.cs -crlf
+/AssemblyReader.cs -crlf
+/AssemblyResolver.cs -crlf
+/CoreExtensions.cs -crlf
+/CoreExtensions.save.cs -crlf
+/CultureDetector.cs -crlf
+/DelegatingTestRunner.cs -crlf
+/DirectorySwapper.cs -crlf
+/EventListenerTextWriter.cs -crlf
+/EventPump.cs -crlf
+/EventQueue.cs -crlf
+/ExtensionHost.cs -crlf
+/ExtensionPoint.cs -crlf
+/IgnoreDecorator.cs -crlf
+/InvalidSuiteException.cs -crlf
+/InvalidTestFixtureException.cs -crlf
+/LegacySuite.cs -crlf
+/Log4NetCapture.cs -crlf
+/LogCapture.cs -crlf
+/NTrace.cs -crlf
+/NUnitException.cs -crlf
+/NUnitFramework.cs -crlf
+/NUnitTestFixture.cs -crlf
+/NUnitTestMethod.cs -crlf
+/NamespaceTreeBuilder.cs -crlf
+/NoTestFixturesException.cs -crlf
+/NotRunnableTestCase.cs -crlf
+/NullListener.cs -crlf
+/PlatformHelper.cs -crlf
+/ProxyTestRunner.cs -crlf
+/QueuingEventListener.cs -crlf
+/Reflect.cs -crlf
+/RemoteTestRunner.cs -crlf
+/Results.xsd -crlf
+/SetUpFixture.cs -crlf
+/SimpleTestRunner.cs -crlf
+/StringTextWriter.cs -crlf
+/SuiteBuilderAttribute.cs -crlf
+/Summary.xslt -crlf
+/TestBuilderAttribute.cs -crlf
+/TestCase.cs -crlf
+/TestCaseBuilder.cs -crlf
+/TestCaseBuilderAttribute.cs -crlf
+/TestContext.cs -crlf
+/TestDecoratorAttribute.cs -crlf
+/TestFixture.cs -crlf
+/TestFixtureBuilder.cs -crlf
+/TestMethod.cs -crlf
+/TestRunnerThread.cs -crlf
+/TestSuite.cs -crlf
+/TestSuiteBuilder.cs -crlf
+/TextCapture.cs -crlf
+/ThreadedTestRunner.cs -crlf
+/nunit.core.build -crlf
--- /dev/null
+/AbstractFixtureBuilder.cs -crlf
+/AbstractTestCaseBuilder.cs -crlf
+/LegacySuiteBuilder.cs -crlf
+/MultiCultureDecorator.cs -crlf
+/NUnitTestCaseBuilder.cs -crlf
+/NUnitTestFixtureBuilder.cs -crlf
+/SetUpFixtureBuilder.cs -crlf
+/TestAssemblyBuilder.cs -crlf
--- /dev/null
+/AddinRegistry.cs -crlf
+/EventListenerCollection.cs -crlf
+/FrameworkRegistry.cs -crlf
+/SuiteBuilderCollection.cs -crlf
+/TestCaseBuilderCollection.cs -crlf
+/TestDecoratorCollection.cs -crlf
+/TestDecoratorCollection.save.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/EventListener.cs -crlf
+/IService.cs -crlf
+/ITest.cs -crlf
+/ITestFilter.cs -crlf
+/ResultState.cs -crlf
+/ResultVisitor.cs -crlf
+/RunState.cs -crlf
+/RuntimeFramework.cs -crlf
+/Test.cs -crlf
+/TestAssemblyInfo.cs -crlf
+/TestCaseResult.cs -crlf
+/TestFilter.cs -crlf
+/TestID.cs -crlf
+/TestInfo.cs -crlf
+/TestName.cs -crlf
+/TestNode.cs -crlf
+/TestOutput.cs -crlf
+/TestPackage.cs -crlf
+/TestResult.cs -crlf
+/TestRunner.cs -crlf
+/TestSuiteResult.cs -crlf
+/nunit.core.interfaces.build -crlf
--- /dev/null
+/Addin.cs -crlf
+/AddinStatus.cs -crlf
+/ExtensionType.cs -crlf
+/IAddin.cs -crlf
+/IAddinManager.cs -crlf
+/IAddinRegistry.cs -crlf
+/IExtensionHost.cs -crlf
+/IExtensionPoint.cs -crlf
+/IFrameworkRegistry.cs -crlf
+/ISuiteBuilder.cs -crlf
+/ITestCaseBuilder.cs -crlf
+/ITestDecorator.cs -crlf
+/NUnitAddinAttribute.cs -crlf
+/TestFramework.cs -crlf
--- /dev/null
+/AndFilter.cs -crlf
+/CategoryFilter.cs -crlf
+/NameFilter.cs -crlf
+/NotFilter.cs -crlf
+/OrFilter.cs -crlf
+/SimpleNameFilter.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/RepeatedTestCase.cs -crlf
+/RepeatedTestDecorator.cs -crlf
+/nunit.core.extensions.build -crlf
--- /dev/null
+/RowTestAddIn.cs -crlf
+/RowTestCase.cs -crlf
+/RowTestFactory.cs -crlf
+/RowTestFramework.cs -crlf
+/RowTestNameBuilder.cs -crlf
+/RowTestSuite.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/RepeatAttribute.cs -crlf
+/RowAttribute.cs -crlf
+/RowTestAttribute.cs -crlf
+/SpecialValue.cs -crlf
+/nunit.framework.extensions.build -crlf
--- /dev/null
+/RowAttribute.cs -crlf
+/RowTestAttribute.cs -crlf
+/SpecialValue.cs -crlf
--- /dev/null
+/AssemblyRunner.cs -crlf
+/PlatformInfo.cs -crlf
+/SnippetRunner.cs -crlf
+/TestCompiler.cs -crlf
+/TestLoadFixture.cs -crlf
+/TestTree.cs -crlf
+/nunit.fixtures.build -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/CompilationTests.cs -crlf
+/TestTreeTests.cs -crlf
+/nunit.fixtures.tests.build -crlf
--- /dev/null
+/AbstractAsserter.cs -crlf
+/AssemblyInfo.cs -crlf
+/Assert.cs -crlf
+/Assertion.cs -crlf
+/AssertionException.cs -crlf
+/AssertionFailureMessage.cs -crlf
+/AssertionHelper.cs -crlf
+/CategoryAttribute.cs -crlf
+/CollectionAssert.cs -crlf
+/DescriptionAttribute.cs -crlf
+/ExpectedExceptionAttribute.cs -crlf
+/ExplicitAttribute.cs -crlf
+/FileAssert.cs -crlf
+/GlobalSettings.cs -crlf
+/IAsserter.cs -crlf
+/IExpectException.cs -crlf
+/IgnoreAttribute.cs -crlf
+/IgnoreException.cs -crlf
+/IncludeExcludeAttributes.cs -crlf
+/MessageWriter.cs -crlf
+/MsgUtils.cs -crlf
+/OldTestCase.cs -crlf
+/PropertyAttribute.cs -crlf
+/SetCultureAttribute.cs -crlf
+/SetUpAttribute.cs -crlf
+/SetUpFixtureAttribute.cs -crlf
+/StringAssert.cs -crlf
+/SuiteAttribute.cs -crlf
+/TearDownAttribute.cs -crlf
+/TestAttribute.cs -crlf
+/TestFixtureAttribute.cs -crlf
+/TestFixtureSetUpAttribute.cs -crlf
+/TestFixtureTearDownAttribute.cs -crlf
+/TextMessageWriter.cs -crlf
+/nunit.framework.build -crlf
--- /dev/null
+/BinaryOperations.cs -crlf
+/CollectionConstraints.cs -crlf
+/ComparisonConstraints.cs -crlf
+/Constraint.cs -crlf
+/ConstraintBuilder.cs -crlf
+/ContainsConstraint.cs -crlf
+/EmptyConstraint.cs -crlf
+/EqualConstraint.cs -crlf
+/Numerics.cs -crlf
+/PrefixConstraints.cs -crlf
+/PropertyConstraint.cs -crlf
+/SameAsConstraint.cs -crlf
+/StringConstraints.cs -crlf
+/TypeConstraints.cs -crlf
--- /dev/null
+/Has.cs -crlf
+/Is.cs -crlf
+/List.cs -crlf
+/ListMapper.cs -crlf
+/Text.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/DynamicMock.cs -crlf
+/ICall.cs -crlf
+/ICallHandler.cs -crlf
+/IMethod.cs -crlf
+/IMock.cs -crlf
+/IVerify.cs -crlf
+/MethodSignature.cs -crlf
+/Mock.cs -crlf
+/MockCall.cs -crlf
+/MockInterfaceHandler.cs -crlf
+/MockMethod.cs -crlf
+/nunit.mocks.build -crlf
--- /dev/null
+/gtest-504-lib.cs -crlf
+/gtest-523.cs -crlf
+/gtest-xml-2-ref.xml -crlf
+/gtest-xml-3-ref.xml -crlf
+/test-746.cs -crlf
+/test-xml-001-ref.xml -crlf
+/test-xml-002-ref.xml -crlf
+/test-xml-003-ref.xml -crlf
+/test-xml-004-ref.xml -crlf
+/test-xml-005-ref.xml -crlf
+/test-xml-006-ref.xml -crlf
+/test-xml-007-ref.xml -crlf
+/test-xml-008-ref.xml -crlf
+/test-xml-009-ref.xml -crlf
+/test-xml-010-ref.xml -crlf
+/test-xml-011-ref.xml -crlf
+/test-xml-012-ref.xml -crlf
+/test-xml-013-ref.xml -crlf
+/test-xml-014-ref.xml -crlf
+/test-xml-015-ref.xml -crlf
+/test-xml-016-ref.xml -crlf
+/test-xml-017-ref.xml -crlf
+/test-xml-018-ref.xml -crlf
+/test-xml-019-ref.xml -crlf
+/test-xml-020-ref.xml -crlf
+/test-xml-021-ref.xml -crlf
+/test-xml-022-ref.xml -crlf
+/test-xml-023-ref.xml -crlf
+/test-xml-024-ref.xml -crlf
+/test-xml-025-ref.xml -crlf
+/test-xml-026-ref.xml -crlf
+/test-xml-027-ref.xml -crlf
+/test-xml-028-ref.xml -crlf
+/test-xml-029-ref.xml -crlf
+/test-xml-030-ref.xml -crlf
+/test-xml-031-ref.xml -crlf
+/test-xml-032-ref.xml -crlf
+/test-xml-033-ref.xml -crlf
+/test-xml-034-ref.xml -crlf
+/test-xml-035-ref.xml -crlf
+/test-xml-036-ref.xml -crlf
+/test-xml-037-ref.xml -crlf
+/test-xml-038-ref.xml -crlf
+/test-xml-050-ref.xml -crlf
</assembly>\r
<members>\r
<member name="T:Testing.Test">\r
- comment without markup on class - it is allowed
+ comment without markup on class - it is allowed\r
</member>\r
<!-- Badly formed XML comment ignored for member "T:Testing.Test2" -->\r
<!-- Badly formed XML comment ignored for member "T:Testing.Test3" -->\r
</assembly>\r
<members>\r
<member name="M:Testing.Test.Foo">\r
- comment on method without parameter
+ comment on method without parameter\r
</member>\r
<member name="M:Testing.Test.Foo(System.Int64,Testing.Test,System.Collections.ArrayList)">\r
- here is a documentation with parameters (and has same name)
+ here is a documentation with parameters (and has same name)\r
</member>\r
<member name="M:Testing.Test.Foo(System.String[])">\r
- here is a documentation with parameters (and has same name)
+ here is a documentation with parameters (and has same name)\r
</member>\r
</members>\r
</doc>\r
</assembly>\r
<members>\r
<member name="M:Testing.Test.#ctor">\r
- comment for constructor
+ comment for constructor\r
</member>\r
<member name="M:Testing.Test.Finalize">\r
- comment for destructor
+ comment for destructor\r
</member>\r
</members>\r
</doc>\r
</assembly>\r
<members>\r
<member name="T:Testing.Test.InternalClass">\r
- comment for internal class
+ comment for internal class\r
</member>\r
<member name="T:Testing.Test.InternalStruct">\r
- comment for internal struct
+ comment for internal struct\r
</member>\r
</members>\r
</doc>\r
</assembly>\r
<members>\r
<member name="M:Test.Foo(Test.A,System.Int32)">\r
- here is a documentation
+ here is a documentation\r
</member>\r
</members>\r
</doc>\r
</assembly>\r
<members>\r
<member name="T:MyClass">\r
- <summary>help text</summary>
+ <summary>help text</summary>\r
</member>\r
<member name="M:MyClass.Main">\r
- <summary>help text</summary>
+ <summary>help text</summary>\r
</member>\r
<member name="M:MyClass.op_Explicit(MyClass)~System.Int32">\r
- <summary>help text</summary>
+ <summary>help text</summary>\r
</member>\r
<member name="M:MyClass.op_Implicit(MyClass)~System.Char">\r
- <summary>help text</summary>
+ <summary>help text</summary>\r
</member>\r
</members>\r
</doc>\r
</assembly>\r
<members>\r
<member name="T:Test">\r
- valid comment.
+ valid comment.\r
</member>\r
</members>\r
</doc>\r
</summary>\r
</member>\r
<member name="M:Whatever.Main">\r
- <summary>
- </summary>
+ <summary>\r
+ </summary>\r
</member>\r
</members>\r
</doc>\r
--- /dev/null
+/mono-win32-setup.nsi -crlf
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/xmldocdiff.cs -crlf
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/.cvsignore -crlf
+/depgraph.cs -crlf
+/ictool-config.xml -crlf
+/ictool.cs -crlf
+/peer.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/lc.cs -crlf
--- /dev/null
+/TestEcmaDocs.xml -crlf
--- /dev/null
+/EnumCheck.cs -crlf
+/EnumCheckAssemblyCollection.cs -crlf
+/GenerateDelegate.cs -crlf
+/IFaceDisco.cs -crlf
+/XMLUtil.cs -crlf
\r
; create bin/mono wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\mono.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe "$$@"'\r
FileClose $0\r
\r
; create bin/mint wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\mint.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mint.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mint.exe "$$@"'\r
FileClose $0\r
\r
; create bin/mcs wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\mcs.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/mcs.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/mcs.exe "$$@"'\r
FileClose $0\r
\r
; create bin/mbas wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\mbas.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/mbas.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/mbas.exe "$$@"'\r
FileClose $0\r
\r
; create bin/sqlsharp wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\sqlsharp.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/sqlsharp.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/sqlsharp.exe "$$@"'\r
FileClose $0\r
\r
; create bin/monodis wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\monodis.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/monodis.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/monodis.exe "$$@"'\r
FileClose $0\r
\r
; create bin/monoresgen wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\monoresgen.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/monoresgen.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/monoresgen.exe "$$@"'\r
FileClose $0\r
\r
; create bin/monoilasm wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\monoilasm.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/monoilasm.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/monoilasm.exe "$$@"'\r
FileClose $0\r
\r
; create bin/monosn wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\monosn.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/monosn.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/monosn.exe "$$@"'\r
FileClose $0\r
\r
; create bin/secutil wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\secutil.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/secutil.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/secutil.exe "$$@"'\r
FileClose $0\r
\r
; create bin/cert2spc wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\cert2spc.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/cert2spc.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/cert2spc.exe "$$@"'\r
FileClose $0\r
\r
; create bin/cilc wrapper to be used if the user has cygwin\r
FileOpen $0 "$INSTDIR\bin\cilc.exe.sh" "w"\r
-FileWrite $0 "#!/bin/sh$\r$\n"
-FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"
-FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"
-FileWrite $0 '$6/bin/mono.exe $6/bin/cilc.exe "$$@"'
+FileWrite $0 "#!/bin/sh$\r$\n"\r
+FileWrite $0 "export MONO_PATH=$6/lib$\r$\n"\r
+FileWrite $0 "export MONO_CFG_DIR=$6/etc/mono$\r$\n"\r
+FileWrite $0 '$6/bin/mono.exe $6/bin/cilc.exe "$$@"'\r
FileClose $0\r
\r
;\r
--- /dev/null
+/nunit_transform.xslt -crlf
--- /dev/null
+/.cvsignore -crlf
+/MonoXSD.cs -crlf
+/NewMonoXSD.cs -crlf
--- /dev/null
+/ABOUT.txt -crlf
+/BUILD.txt -crlf
+/CHANGES.txt -crlf
+/HISTORY.txt -crlf
+/LICENSE.txt -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/DeleteFiles.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/FileDocument.cs -crlf
+/HTMLDocument.cs -crlf
--- /dev/null
+/Entities.cs -crlf
+/HTMLParser.cs -crlf
+/HTMLParserConstants.cs -crlf
+/HTMLParserTokenManager.cs -crlf
+/ParseException.cs -crlf
+/ParserThread.cs -crlf
+/SimpleCharStream.cs -crlf
+/Tags.cs -crlf
+/Test.cs -crlf
+/Token.cs -crlf
+/TokenMgrError.cs -crlf
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << (int) curChar;\r\r
+ ulong l = ((ulong) 1L) << (int) curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
else\r
{\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
--- /dev/null
+/AssemblyInfo.cs -crlf
+/IndexFiles.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/IndexHtml.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/SearchFiles.cs -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/Lucene.Net.xml -crlf
+/Overview.html -crlf
+/SupportClass.cs -crlf
--- /dev/null
+/Analyzer.cs -crlf
+/CharTokenizer.cs -crlf
+/LetterTokenizer.cs -crlf
+/LowerCaseFilter.cs -crlf
+/LowerCaseTokenizer.cs -crlf
+/Package.html -crlf
+/PerFieldAnalyzerWrapper.cs -crlf
+/PorterStemFilter.cs -crlf
+/PorterStemmer.cs -crlf
+/SimpleAnalyzer.cs -crlf
+/StopAnalyzer.cs -crlf
+/StopFilter.cs -crlf
+/Token.cs -crlf
+/TokenFilter.cs -crlf
+/TokenStream.cs -crlf
+/Tokenizer.cs -crlf
+/WhitespaceAnalyzer.cs -crlf
+/WhitespaceTokenizer.cs -crlf
--- /dev/null
+/GermanAnalyzer.cs -crlf
+/GermanStemFilter.cs -crlf
+/GermanStemmer.cs -crlf
+/Package.html -crlf
+/WordlistLoader.cs -crlf
--- /dev/null
+/Package.html -crlf
+/RussianAnalyzer.cs -crlf
+/RussianCharsets.cs -crlf
+/RussianLetterTokenizer.cs -crlf
+/RussianLowerCaseFilter.cs -crlf
+/RussianStemFilter.cs -crlf
+/RussianStemmer.cs -crlf
--- /dev/null
+/CharStream.cs -crlf
+/FastCharStream.cs -crlf
+/Package.html -crlf
+/ParseException.cs -crlf
+/StandardAnalyzer.cs -crlf
+/StandardFilter.cs -crlf
+/StandardTokenizer.cs -crlf
+/StandardTokenizerConstants.cs -crlf
+/StandardTokenizerTokenManager.cs -crlf
+/Token.cs -crlf
+/TokenMgrError.cs -crlf
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
do \r
{\r
switch (jjstateSet[--ii])\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
do \r
{\r
switch (jjstateSet[--ii])\r
int i1 = hiByte >> 6;\r
ulong l1 = ((ulong) 1L) << (hiByte & 63);\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
do \r
{\r
switch (jjstateSet[--ii])\r
--- /dev/null
+/DateField.cs -crlf
+/Document.cs -crlf
+/Field.cs -crlf
+/Package.html -crlf
}\r
\r
// make date strings long enough to last a millenium\r
- private static int DATE_LEN = SupportClass.Number.ToString(
+ private static int DATE_LEN = SupportClass.Number.ToString(\r
1000L * 365 * 24 * 60 * 60 * 1000, SupportClass.Number.MAX_RADIX).Length;\r
\r
public static System.String MIN_DATE_STRING()\r
if (time < 0)\r
throw new System.SystemException("time too early");\r
\r
- System.String s = SupportClass.Number.ToString(time, SupportClass.Number.MAX_RADIX);
+ System.String s = SupportClass.Number.ToString(time, SupportClass.Number.MAX_RADIX);\r
\r
if (s.Length > DATE_LEN)\r
throw new System.SystemException("time too late");\r
/// <summary>Converts a string-encoded date into a Date object. </summary>\r
public static System.DateTime StringToDate(System.String s)\r
{\r
- long ticks = StringToTime(s) * TimeSpan.TicksPerMillisecond;
- System.DateTime date = new System.DateTime(1970, 1, 1);
- date = date.AddTicks(ticks);
- date = date.Add(TimeZone.CurrentTimeZone.GetUtcOffset(date));
- return date;
+ long ticks = StringToTime(s) * TimeSpan.TicksPerMillisecond;\r
+ System.DateTime date = new System.DateTime(1970, 1, 1);\r
+ date = date.AddTicks(ticks);\r
+ date = date.Add(TimeZone.CurrentTimeZone.GetUtcOffset(date));\r
+ return date;\r
\r
/*\r
System.TimeSpan ts = System.TimeSpan.FromMilliseconds(System.DateField.StringToTime(s));\r
--- /dev/null
+/CompoundFileReader.cs -crlf
+/CompoundFileWriter.cs -crlf
+/DocumentWriter.cs -crlf
+/FieldInfo.cs -crlf
+/FieldInfos.cs -crlf
+/FieldsReader.cs -crlf
+/FieldsWriter.cs -crlf
+/FilterIndexReader.cs -crlf
+/IndexReader.cs -crlf
+/IndexWriter.cs -crlf
+/MultiReader.cs -crlf
+/MultipleTermPositions.cs -crlf
+/Package.html -crlf
+/SegmentInfo.cs -crlf
+/SegmentInfos.cs -crlf
+/SegmentMergeInfo.cs -crlf
+/SegmentMergeQueue.cs -crlf
+/SegmentMerger.cs -crlf
+/SegmentReader.cs -crlf
+/SegmentTermDocs.cs -crlf
+/SegmentTermEnum.cs -crlf
+/SegmentTermPositions.cs -crlf
+/SegmentTermVector.cs -crlf
+/Term.cs -crlf
+/TermDocs.cs -crlf
+/TermEnum.cs -crlf
+/TermFreqVector.cs -crlf
+/TermInfo.cs -crlf
+/TermInfosReader.cs -crlf
+/TermInfosWriter.cs -crlf
+/TermPositionVector.cs -crlf
+/TermPositions.cs -crlf
+/TermVectorsReader.cs -crlf
+/TermVectorsWriter.cs -crlf
fieldPositions = new int[fieldInfos.Size()]; // init fieldPositions\r
\r
fieldBoosts = new float[fieldInfos.Size()]; // init fieldBoosts\r
- float boost = doc.GetBoost();
- for (int i = 0; i < fieldBoosts.Length; i++)
- {
- fieldBoosts[i] = boost;
- }
+ float boost = doc.GetBoost();\r
+ for (int i = 0; i < fieldBoosts.Length; i++)\r
+ {\r
+ fieldBoosts[i] = boost;\r
+ }\r
\r
InvertDocument(doc);\r
\r
--- /dev/null
+/CharStream.cs -crlf
+/FastCharStream.cs -crlf
+/MultiFieldQueryParser.cs -crlf
+/Package.html -crlf
+/ParseException.cs -crlf
+/QueryParser.cs -crlf
+/QueryParserConstants.cs -crlf
+/QueryParserTokenManager.cs -crlf
+/Token.cs -crlf
+/TokenMgrError.cs -crlf
\r
int charsRead = 0;\r
\r
- try
- {
+ try\r
+ {\r
charsRead = input.Read(buffer, newPosition, buffer.Length - newPosition);\r
}\r
- catch
- {
- }
+ catch \r
+ {\r
+ }\r
\r
if (charsRead <= 0)\r
throw new System.IO.IOException("read past eof");\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
int i1 = hiByte >> 6;\r
ulong l1 = ((ulong) 1L) << (hiByte & 63);\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
int i1 = hiByte >> 6;\r
ulong l1 = ((ulong) 1L) << (hiByte & 63);\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
int i1 = hiByte >> 6;\r
ulong l1 = ((ulong) 1L) << (hiByte & 63);\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
ReInitRounds();\r
if (curChar < 64)\r
{\r
- ulong l = ((ulong) 1L) << curChar;\r\r
+ ulong l = ((ulong) 1L) << curChar;\r
MatchLoop1: \r
do \r
{\r
}\r
else if (curChar < 128)\r
{\r
- ulong l = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
int i1 = hiByte >> 6;\r
ulong l1 = ((ulong) 1L) << (hiByte & 63);\r
int i2 = (curChar & 0xff) >> 6;\r
- ulong l2 = ((ulong) 1L) << (curChar & 63);\r\r
+ ulong l2 = ((ulong) 1L) << (curChar & 63);\r
MatchLoop1: \r
do \r
{\r
--- /dev/null
+/BooleanClause.cs -crlf
+/BooleanQuery.cs -crlf
+/BooleanScorer.cs -crlf
+/CachingWrapperFilter.cs -crlf
+/ConjunctionScorer.cs -crlf
+/DateFilter.cs -crlf
+/DefaultSimilarity.cs -crlf
+/ExactPhraseScorer.cs -crlf
+/Explanation.cs -crlf
+/FieldCache.cs -crlf
+/FieldCacheImpl.cs -crlf
+/FieldDoc.cs -crlf
+/FieldDocSortedHitQueue.cs -crlf
+/FieldSortedHitQueue.cs -crlf
+/Filter.cs -crlf
+/FilteredQuery.cs -crlf
+/FilteredTermEnum.cs -crlf
+/FuzzyQuery.cs -crlf
+/FuzzyTermEnum.cs -crlf
+/HitCollector.cs -crlf
+/HitQueue.cs -crlf
+/Hits.cs -crlf
+/IndexSearcher.cs -crlf
+/MultiSearcher.cs -crlf
+/MultiTermQuery.cs -crlf
+/Package.html -crlf
+/ParallelMultiSearcher.cs -crlf
+/PhrasePositions.cs -crlf
+/PhrasePrefixQuery.cs -crlf
+/PhraseQuery.cs -crlf
+/PhraseQueue.cs -crlf
+/PhraseScorer.cs -crlf
+/PrefixQuery.cs -crlf
+/Query.cs -crlf
+/QueryFilter.cs -crlf
+/QueryTermVector.cs -crlf
+/RangeQuery.cs -crlf
+/RemoteSearchable.cs -crlf
+/ScoreDoc.cs -crlf
+/ScoreDocComparator.cs -crlf
+/Scorer.cs -crlf
+/Searchable.cs -crlf
+/Searcher.cs -crlf
+/Similarity.cs -crlf
+/SloppyPhraseScorer.cs -crlf
+/Sort.cs -crlf
+/SortComparator.cs -crlf
+/SortComparatorSource.cs -crlf
+/SortField.cs -crlf
+/TermQuery.cs -crlf
+/TermScorer.cs -crlf
+/TopDocs.cs -crlf
+/TopFieldDocs.cs -crlf
+/Weight.cs -crlf
+/WildcardQuery.cs -crlf
+/WildcardTermEnum.cs -crlf
/// <summary>Returns a hash code value for this object.</summary>\r
public override int GetHashCode()\r
{\r
- int boostInt = BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0);
- return boostInt ^ clauses.GetHashCode();
+ int boostInt = BitConverter.ToInt32(BitConverter.GetBytes(GetBoost()), 0);\r
+ return boostInt ^ clauses.GetHashCode();\r
}\r
}\r
}
\ No newline at end of file
/// <summary>Returns a hash code value for this object.</summary>\r
public override int GetHashCode()\r
{\r
- return System.BitConverter.ToInt32(System.BitConverter.GetBytes(GetBoost()), 0) ^
- System.BitConverter.ToInt32(System.BitConverter.GetBytes(slop), 0) ^
- terms.GetHashCode() ^
- positions.GetHashCode();
+ return System.BitConverter.ToInt32(System.BitConverter.GetBytes(GetBoost()), 0) ^ \r
+ System.BitConverter.ToInt32(System.BitConverter.GetBytes(slop), 0) ^ \r
+ terms.GetHashCode() ^ \r
+ positions.GetHashCode();\r
}\r
override public System.Object Clone()\r
{\r
}\r
}\r
\r
- BooleanQuery result = new BooleanQuery();
- foreach (BooleanClause booleanClause in allClauses.Keys)
- {
- result.Add(booleanClause);
+ BooleanQuery result = new BooleanQuery();\r
+ foreach (BooleanClause booleanClause in allClauses.Keys)\r
+ {\r
+ result.Add(booleanClause);\r
}\r
return result;\r
}\r
--- /dev/null
+/NearSpans.cs -crlf
+/Package.html -crlf
+/SpanFirstQuery.cs -crlf
+/SpanNearQuery.cs -crlf
+/SpanNotQuery.cs -crlf
+/SpanOrQuery.cs -crlf
+/SpanQuery.cs -crlf
+/SpanScorer.cs -crlf
+/SpanTermQuery.cs -crlf
+/SpanWeight.cs -crlf
+/Spans.cs -crlf
--- /dev/null
+/Directory.cs -crlf
+/FSDirectory.cs -crlf
+/InputStream.cs -crlf
+/Lock.cs -crlf
+/OutputStream.cs -crlf
+/Package.html -crlf
+/RAMDirectory.cs -crlf
+/RAMFile.cs -crlf
+/RAMInputStream.cs -crlf
+/RAMOutputStream.cs -crlf
/* DEBUG */\r
// {{Aroush\r
public long position;\r
- public Descriptor(FSInputStream enclosingInstance, System.IO.FileInfo file, System.IO.FileAccess fileAccess)
- : base(new System.IO.FileStream(file.FullName, System.IO.FileMode.Open, fileAccess, System.IO.FileShare.ReadWrite))
- {
- }
+ public Descriptor(FSInputStream enclosingInstance, System.IO.FileInfo file, System.IO.FileAccess fileAccess) \r
+ : base(new System.IO.FileStream(file.FullName, System.IO.FileMode.Open, fileAccess, System.IO.FileShare.ReadWrite))\r
+ {\r
+ }\r
\r
//{{}}// public Descriptor(FSInputStream enclosingInstance, System.IO.FileInfo file, System.String mode) : base(file, mode)\r
//{{}}// {\r
\r
public FSOutputStream(System.IO.FileInfo path)\r
{\r
- file = new System.IO.BinaryWriter(new System.IO.FileStream(path.FullName, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite));
+ file = new System.IO.BinaryWriter(new System.IO.FileStream(path.FullName, System.IO.FileMode.OpenOrCreate, System.IO.FileAccess.Write, System.IO.FileShare.ReadWrite));\r
}\r
\r
/// <summary>output methods: </summary>\r
--- /dev/null
+/BitVector.cs -crlf
+/Constants.cs -crlf
+/Package.html -crlf
+/PriorityQueue.cs -crlf
+/StringHelper.cs -crlf
--- /dev/null
+/AnalysisTest.cs -crlf
+/AssemblyInfo.cs -crlf
+/IndexTest.cs -crlf
+/SearchTest.cs -crlf
+/SearchTestForDuplicates.cs -crlf
+/StoreTest.cs -crlf
+/Test.nunit -crlf
+/TestSearch.cs -crlf
+/TestSearchForDuplicates.cs -crlf
+/ThreadSafetyTest.cs -crlf
--- /dev/null
+/TestAnalyzers.cs -crlf
+/TestPerFieldAnalzyerWrapper.cs -crlf
+/TestStopAnalyzer.cs -crlf
--- /dev/null
+/TEST1251.TXT -crlf
+/TESTKOI8.TXT -crlf
+/TestRussianAnalyzer.cs -crlf
+/TestRussianStem.cs -crlf
stopWordsSet.Add("analyzer", "analyzer");\r
\r
// {{Aroush how can we copy 'stopWordsSet' to 'System.String[]'?\r
- System.String[] arrStopWordsSet = new System.String[3];
- arrStopWordsSet[0] = "good";
- arrStopWordsSet[1] = "test";
- arrStopWordsSet[2] = "analyzer";
- // Aroush}}
+ System.String[] arrStopWordsSet = new System.String[3];\r
+ arrStopWordsSet[0] = "good";\r
+ arrStopWordsSet[1] = "test";\r
+ arrStopWordsSet[2] = "analyzer";\r
+ // Aroush}}\r
\r
StopAnalyzer newStop = new StopAnalyzer(arrStopWordsSet);\r
System.IO.StringReader reader = new System.IO.StringReader("This is a good test of the english stop analyzer");\r
--- /dev/null
+/test.txt -crlf
+/test2.txt -crlf
--- /dev/null
+/TestDocument.cs -crlf
--- /dev/null
+/DocHelper.cs -crlf
+/DocTest.cs -crlf
+/MockInputStream.cs -crlf
+/TermInfosTest.cs -crlf
+/TestCompoundFile.cs -crlf
+/TestDoc.cs -crlf
+/TestDocumentWriter.cs -crlf
+/TestFieldInfos.cs -crlf
+/TestFieldsReader.cs -crlf
+/TestFilterIndexReader.cs -crlf
+/TestIndexReader.cs -crlf
+/TestIndexWriter.cs -crlf
+/TestInputStream.cs -crlf
+/TestMultiReader.cs -crlf
+/TestSegmentMerger.cs -crlf
+/TestSegmentReader.cs -crlf
+/TestSegmentTermDocs.cs -crlf
+/TestSegmentTermEnum.cs -crlf
+/TestTermVectorsReader.cs -crlf
+/TestTermVectorsWriter.cs -crlf
--- /dev/null
+/FSDirectoryTestCase.cs -crlf
--- /dev/null
+/TestQueryParser.cs -crlf
--- /dev/null
+/CheckHits.cs -crlf
+/MockFilter.cs -crlf
+/SampleComparable.cs -crlf
+/TestBooleanPrefixQuery.cs -crlf
+/TestCachingWrapperFilter.cs -crlf
+/TestDateFilter.cs -crlf
+/TestDocBoost.cs -crlf
+/TestFilteredQuery.cs -crlf
+/TestMultiSearcher.cs -crlf
+/TestNot.cs -crlf
+/TestParallelMultiSearcher.cs -crlf
+/TestPhrasePrefixQuery.cs -crlf
+/TestPhraseQuery.cs -crlf
+/TestPositionIncrement.cs -crlf
+/TestPrefixQuery.cs -crlf
+/TestQueryTermVector.cs -crlf
+/TestRangeQuery.cs -crlf
+/TestRemoteSearchable.cs -crlf
+/TestSetNorm.cs -crlf
+/TestSimilarity.cs -crlf
+/TestSort.cs -crlf
+/TestTermVectors.cs -crlf
+/TestWildcard.cs -crlf
--- /dev/null
+/TestBasics.cs -crlf
+/TestSpans.cs -crlf
--- /dev/null
+/_TestHelper.cs -crlf
--- /dev/null
+/English.cs -crlf
+/StringHelperTest.cs -crlf
+/TestBitVector.cs -crlf
+/TestPriorityQueue.cs -crlf
--- /dev/null
+/commentservice.cs -crlf
--- /dev/null
+/helper.js -crlf
--- /dev/null
+/FailedTest.cs -crlf
+/NUnitReport.cs -crlf
--- /dev/null
+/style.css -crlf
--- /dev/null
+/ChangeLog -crlf
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/.cvsignore -crlf
[assembly: AssemblyTitle ("Mono PermView")]
[assembly: AssemblyDescription ("Managed Permission Viewer for .NET assemblies")]
-namespace Mono.Tools {\r
-\r
- class SecurityElementComparer : IComparer {\r
-\r
- public int Compare (object x, object y)\r
- {\r
- SecurityElement sx = (x as SecurityElement);\r
- SecurityElement sy = (y as SecurityElement);\r
- if (sx == null)\r
- return (sy == null) ? 0 : -1;\r
- else if (sy == null)\r
- return 1;\r
-\r
- // compare by name (type name, method name, action name)\r
- return String.Compare (sx.Attribute ("Name"), sy.Attribute ("Name"));\r
- }\r
+namespace Mono.Tools {
+
+ class SecurityElementComparer : IComparer {
+
+ public int Compare (object x, object y)
+ {
+ SecurityElement sx = (x as SecurityElement);
+ SecurityElement sy = (y as SecurityElement);
+ if (sx == null)
+ return (sy == null) ? 0 : -1;
+ else if (sy == null)
+ return 1;
+
+ // compare by name (type name, method name, action name)
+ return String.Compare (sx.Attribute ("Name"), sy.Attribute ("Name"));
+ }
}
class PermView {
Console.WriteLine ("Usage: permview [options] assembly{0}", Environment.NewLine);
Console.WriteLine ("where options are:");
Console.WriteLine (" -output filename Output information into specified file.");
- Console.WriteLine (" -decl Show declarative security attributes on classes and methods.");\r
- Console.WriteLine (" -xml Output in XML format");\r
+ Console.WriteLine (" -decl Show declarative security attributes on classes and methods.");
+ Console.WriteLine (" -xml Output in XML format");
Console.WriteLine (" -help Show help informations (this text)");
Console.WriteLine ();
}
}
static SecurityElement AddSecurityXml (SecurityDeclarationCollection declarations)
- {\r
- ArrayList list = new ArrayList ();\r
- foreach (SecurityDeclaration declsec in declarations) {\r
- SecurityElement child = new SecurityElement ("Action");\r
- AddAttribute (child, "Name", declsec.Action.ToString ());\r
- child.AddChild (declsec.PermissionSet.ToXml ());\r
- list.Add (child);\r
- }\r
- // sort actions\r
+ {
+ ArrayList list = new ArrayList ();
+ foreach (SecurityDeclaration declsec in declarations) {
+ SecurityElement child = new SecurityElement ("Action");
+ AddAttribute (child, "Name", declsec.Action.ToString ());
+ child.AddChild (declsec.PermissionSet.ToXml ());
+ list.Add (child);
+ }
+ // sort actions
list.Sort (Comparer);
SecurityElement se = new SecurityElement ("Actions");
se.AddChild (child);
}
return se;
- }\r
-\r
+ }
+
static SecurityElementComparer comparer;
static IComparer Comparer {
get {
}
static bool ProcessAssemblyXml (TextWriter tw, AssemblyDefinition ad)
- {\r
+ {
SecurityElement se = new SecurityElement ("Assembly");
se.AddAttribute ("Name", ad.Name.FullName);
se.AddChild (AddSecurityXml (ad.SecurityDeclarations));
}
- ArrayList tlist = new ArrayList ();\r
+ ArrayList tlist = new ArrayList ();
ArrayList mlist = new ArrayList ();
foreach (ModuleDefinition module in ad.Modules) {
SecurityElement typelem = null;
if (type.SecurityDeclarations.Count > 0) {
typelem = AddSecurityXml (type.SecurityDeclarations);
- }\r
-\r
- if (mlist.Count > 0)\r
+ }
+
+ if (mlist.Count > 0)
mlist.Clear ();
foreach (MethodDefinition method in type.Methods) {
- if (method.SecurityDeclarations.Count > 0) {\r
+ if (method.SecurityDeclarations.Count > 0) {
SecurityElement meth = new SecurityElement ("Method");
AddAttribute (meth, "Name", method.ToString ());
meth.AddChild (AddSecurityXml (method.SecurityDeclarations));
}
}
- // sort methods\r
- mlist.Sort (Comparer);\r
- foreach (SecurityElement method in mlist) {\r
- methods.AddChild (method);\r
+ // sort methods
+ mlist.Sort (Comparer);
+ foreach (SecurityElement method in mlist) {
+ methods.AddChild (method);
}
if ((typelem != null) || ((methods.Children != null) && (methods.Children.Count > 0))) {
- AddAttribute (klass, "Name", type.ToString ());\r
+ AddAttribute (klass, "Name", type.ToString ());
if (typelem != null)
klass.AddChild (typelem);
if ((methods.Children != null) && (methods.Children.Count > 0))
}
// sort types
- tlist.Sort (Comparer);\r
- foreach (SecurityElement type in tlist) {\r
- se.AddChild (type);\r
+ tlist.Sort (Comparer);
+ foreach (SecurityElement type in tlist) {
+ se.AddChild (type);
}
}
Console.WriteLine ("No certificates available to sign the assembly.");
return 1;
}
- af.Certificates.AddRange (certs);\r
-\r
- if (!af.Sign (tbsFilename)) {\r
- Console.WriteLine ("Couldn't sign file '{0}'.", tbsFilename);\r
- return 1;\r
- }\r
- } else if (af.TimestampUrl != null) {\r
- bool ts = false;\r
- // only timestamp an already signed file\r
- for (int j = 0; j < timestampRetry && !ts; j++) {\r
- ts = af.Timestamp (tbsFilename);\r
- // wait (unless it's the last try) and retry\r
- if (!ts && (j < timestampRetry - 1)) {\r
- Console.WriteLine ("Couldn't timestamp file '{0}', will retry in {1} ms", tbsFilename, timestampDelay);\r
- Thread.Sleep (timestampDelay);\r
- }\r
- }\r
- if (!ts) {\r
- Console.WriteLine ("Couldn't timestamp file '{0}' after {1} retries.", tbsFilename, timestampRetry);\r
- return 1;\r
- }\r
- } else {\r
- Help ();\r
- return 1;\r
- }\r
-\r
+ af.Certificates.AddRange (certs);
+
+ if (!af.Sign (tbsFilename)) {
+ Console.WriteLine ("Couldn't sign file '{0}'.", tbsFilename);
+ return 1;
+ }
+ } else if (af.TimestampUrl != null) {
+ bool ts = false;
+ // only timestamp an already signed file
+ for (int j = 0; j < timestampRetry && !ts; j++) {
+ ts = af.Timestamp (tbsFilename);
+ // wait (unless it's the last try) and retry
+ if (!ts && (j < timestampRetry - 1)) {
+ Console.WriteLine ("Couldn't timestamp file '{0}', will retry in {1} ms", tbsFilename, timestampDelay);
+ Thread.Sleep (timestampDelay);
+ }
+ }
+ if (!ts) {
+ Console.WriteLine ("Couldn't timestamp file '{0}' after {1} retries.", tbsFilename, timestampRetry);
+ return 1;
+ }
+ } else {
+ Help ();
+ return 1;
+ }
+
Console.WriteLine ("Success");
return 0;
}
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
+/sqlmetal.exe.config -crlf
--- /dev/null
+/AssemblyInfo.cs -crlf
--- /dev/null
+/.cvsignore -crlf
--- /dev/null
+/Makefile -crlf
editor = new SqlEditorSharp ();
editor.UseSyntaxHiLighting = true;
editor.View.Show ();
- editor.View.KeyPressEvent +=\r
- new GtkSharp.KeyPressEventHandler(OnKeyPressEventKey);\r
+ editor.View.KeyPressEvent +=
+ new GtkSharp.KeyPressEventHandler(OnKeyPressEventKey);
lastUnknownFile ++;
string unknownFile = "Unknown" +
return sw;
}
- void OnKeyPressEventKey(object o, GtkSharp.KeyPressEventArgs args) \r
- {\r
- if (o is TextView) {\r
- TextView tv = (TextView) o;\r
- //Gdk.EventKey k = args.Event;\r
-\r
- // if the F5 key was pressed\r
- if (args.Event.keyval == 0xFFC2) {\r
- if (tv.Editable == true) {\r
- // execute SQL\r
- ExecuteSQL (ExecuteOutputType.Normal, "");\r
- }\r
- }\r
- }\r
+ void OnKeyPressEventKey(object o, GtkSharp.KeyPressEventArgs args)
+ {
+ if (o is TextView) {
+ TextView tv = (TextView) o;
+ //Gdk.EventKey k = args.Event;
+
+ // if the F5 key was pressed
+ if (args.Event.keyval == 0xFFC2) {
+ if (tv.Editable == true) {
+ // execute SQL
+ ExecuteSQL (ExecuteOutputType.Normal, "");
+ }
+ }
+ }
}
Toolbar CreateToolbar ()
--- /dev/null
+/.cvsignore -crlf
+/MonoWSDL.cs -crlf
+/MonoWSDL2.cs -crlf
--- /dev/null
+/arm-wmmx.h -crlf
--- /dev/null
+/bulkcpy.il -crlf
+/life.cs -crlf
+/zipmark.cs -crlf
-// created on 03/03/2002 at 15:12
-using System;
-
-class App {
- static String s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15;
- static int[] offsets = {-16, -15, -14, -1, 1, 14, 15, 16};
- public static int Main(String[] args) {
- int i2 = 500;
- int i0;
- double n2;
- DateTime start, end;
- start = DateTime.Now;
+// created on 03/03/2002 at 15:12\r
+using System;\r
+\r
+class App {\r
+ static String s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15;\r
+ static int[] offsets = {-16, -15, -14, -1, 1, 14, 15, 16};\r
+ public static int Main(String[] args) {\r
+ int i2 = 500;\r
+ int i0;\r
+ double n2;\r
+ DateTime start, end;\r
+ start = DateTime.Now;\r
s0 = " ";\r
s1 = " ";\r
s2 = " ";\r
s15 ="";\r
s15 = s0+s1+s2+s3+s4+s5+s6+s7+s8+s9+s10+s11+s12+s13+s14;\r
dump();\r
- i0 =0;\r\r
+ i0 =0;\r
while (i0++ < i2) {\r
generate();\r
dump();\r
Console.WriteLine("{0} generations in {1} milliseconds, {2} gen/sec.",\r
i2, (int)n2, (int)(i2/(n2/1000)));\r
return 0;\r
-}\r\r
+}\r\r \r
static void generate() {\r
int i0, i1, i2, i3;\r
i0 = s15.Length;\r
i3 = (offset + i0 + i1) % i0;\r
if (s15.Substring(i3, 1) == "*")\r
i2++;\r
- }\r
+ }\r \r
if (s15.Substring(i1, 1) == "*") {\r
if (i2 < 2 || i2 > 3) {\r
s1 += " ";\r
;\r
}\r
}\r\r\r
-
+\r
--- /dev/null
+/make-opcode-def.xsl -crlf
--- /dev/null
+/normalization-tables.h -crlf
+2010-07-25 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-internal.c: Only compile this if HAVE_SGEN_GC is defined.
+
+2010-07-24 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-internal.c, sgen-gc.h, sgen-major-copying.c: Make the
+ internal allocator fast by keeping free-lists of chunks, not only
+ within chunks. Align the chunks, so that on freeing we can get
+ the chunk without searching.
+
+2010-07-24 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-internal.c, sgen-gc.c, sgen-gc.h, sgen-gray.c,
+ sgen-major-copying.c, sgen-marksweep.c, sgen-pinning-stats.c,
+ sgen-pinning.c: Allocate fixed-size structs without specifying the
+ size, instead registering it once with its type.
+ Dynamically-sized need their size specified when being freed.
+
+2010-07-24 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-major-copying.c, sgen-internal.c, sgen-gc.c, sgen-gc.h,
+ sgen-pinning.c: Copying major collector doesn't mess around with
+ internals of the internal allocator anymore, instead using public
+ functions.
+
+2010-07-24 Mark Probst <mark.probst@gmail.com>
+
+ * sgen-internal.c: Internal allocator in its own module.
+
+ * sgen-gc.c, sgen-gc.h, sgen-gray.c, sgen-los.c,
+ sgen-major-copying.c, sgen-marksweep.c, sgen-pinning.c,
+ sgen-pinning-stats.c: Remove internal allocator and call the
+ public functions now.
+
+ * Makefile.am: Added new file.
+
+2010-07-24 Zoltan Varga <vargaz@gmail.com>
+
+ * sgen-archdep.h (ARCH_COPY_SIGCTX_REGS): Fix warnings on amd64.
+
+2010-07-24 Sanjoy Das <sanjoy@playingwithpointers.com>
+
+ * sgen-gc.h: Removed 'foo defined but not used' warnings for the
+ *_signal_num variables.
+
+2010-07-23 Zoltan Varga <vargaz@gmail.com>
+
+ * file-io.c (ves_icall_System_IO_MonoIO_Read): Add a null check.
+ (ves_icall_System_IO_MonoIO_Write): Ditto.
+
+ * loader.c (mono_loader_cleanup): Delete loader_mutex, the shutdown races should
+ be fixed now.
+
2010-07-23 Zoltan Varga <vargaz@gmail.com>
* loader.c (mono_loader_lock_if_inited): New helper function which can be called
during startup before the loader lock is initialized.
(mono_loader_unlock_if_inited): Ditto.
+
2010-07-21 Geoff Norton <gnorton@novell.com>
* sgen-archdep.h: Fix the build on amd64-darwin.
sgen-os-posix.c \
sgen-os-mach.c \
sgen-gc.c \
+ sgen-internal.c \
sgen-gc.h \
sgen-archdep.h \
sgen-scan-object.h \
MONO_ARCH_SAVE_REGS;
*error=ERROR_SUCCESS;
+
+ MONO_CHECK_ARG_NULL (dest);
if (dest_offset + count > mono_array_length (dest))
return 0;
MONO_ARCH_SAVE_REGS;
*error=ERROR_SUCCESS;
+
+ MONO_CHECK_ARG_NULL (src);
if (src_offset + count > mono_array_length (src))
return 0;
TlsFree (loader_error_thread_id);
TlsFree (loader_lock_nest_id);
- /*DeleteCriticalSection (&loader_mutex);*/
+ DeleteCriticalSection (&loader_mutex);
loader_lock_inited = FALSE;
}
#define ARCH_SIGCTX_SP(ctx) (UCONTEXT_REG_RSP (ctx))
#define ARCH_SIGCTX_IP(ctx) (UCONTEXT_REG_RIP (ctx))
#define ARCH_COPY_SIGCTX_REGS(a,ctx) do { \
- ((a)[0] = (UCONTEXT_REG_RAX (ctx))); \
- ((a)[1] = (UCONTEXT_REG_RBX (ctx))); \
- ((a)[2] = (UCONTEXT_REG_RCX (ctx))); \
- ((a)[3] = (UCONTEXT_REG_RDX (ctx))); \
- ((a)[4] = (UCONTEXT_REG_RSI (ctx))); \
- ((a)[5] = (UCONTEXT_REG_RDI (ctx))); \
- ((a)[6] = (UCONTEXT_REG_RBP (ctx))); \
- ((a)[7] = (UCONTEXT_REG_RSP (ctx))); \
- ((a)[8] = (UCONTEXT_REG_RSI (ctx))); \
- ((a)[9] = (UCONTEXT_REG_RDI (ctx))); \
- ((a)[10] = (UCONTEXT_REG_RIP (ctx))); \
- ((a)[11] = (UCONTEXT_REG_R12 (ctx))); \
- ((a)[12] = (UCONTEXT_REG_R13 (ctx))); \
- ((a)[13] = (UCONTEXT_REG_R14 (ctx))); \
- ((a)[14] = (UCONTEXT_REG_R15 (ctx))); \
+ ((a)[0] = (gpointer)(UCONTEXT_REG_RAX (ctx))); \
+ ((a)[1] = (gpointer)(UCONTEXT_REG_RBX (ctx))); \
+ ((a)[2] = (gpointer)(UCONTEXT_REG_RCX (ctx))); \
+ ((a)[3] = (gpointer)(UCONTEXT_REG_RDX (ctx))); \
+ ((a)[4] = (gpointer)(UCONTEXT_REG_RSI (ctx))); \
+ ((a)[5] = (gpointer)(UCONTEXT_REG_RDI (ctx))); \
+ ((a)[6] = (gpointer)(UCONTEXT_REG_RBP (ctx))); \
+ ((a)[7] = (gpointer)(UCONTEXT_REG_RSP (ctx))); \
+ ((a)[8] = (gpointer)(UCONTEXT_REG_RSI (ctx))); \
+ ((a)[9] = (gpointer)(UCONTEXT_REG_RDI (ctx))); \
+ ((a)[10] = (gpointer)(UCONTEXT_REG_RIP (ctx))); \
+ ((a)[11] = (gpointer)(UCONTEXT_REG_R12 (ctx))); \
+ ((a)[12] = (gpointer)(UCONTEXT_REG_R13 (ctx))); \
+ ((a)[13] = (gpointer)(UCONTEXT_REG_R14 (ctx))); \
+ ((a)[14] = (gpointer)(UCONTEXT_REG_R15 (ctx))); \
} while (0)
#elif defined(__ppc__)
*/
static int gc_initialized = 0;
-static int gc_debug_level = 0;
-static FILE* gc_debug_file;
/* If set, do a minor collection before every allocation */
static gboolean collect_before_allocs = FALSE;
/* If set, do a heap consistency check before each minor collection */
each collection */
static gboolean do_scan_starts_check = FALSE;
-/*
- * Turning on heavy statistics will turn off the managed allocator and
- * the managed write barrier.
- */
-//#define HEAVY_STATISTICS
-
-#ifdef HEAVY_STATISTICS
-#define HEAVY_STAT(x) x
-#else
-#define HEAVY_STAT(x)
-#endif
-
#ifdef HEAVY_STATISTICS
static long long stat_objects_alloced = 0;
static long long stat_bytes_alloced = 0;
static int stat_wbarrier_set_root = 0;
static int stat_wbarrier_value_copy = 0;
static int stat_wbarrier_object_copy = 0;
-
-static long long stat_internal_alloc = 0;
-static long long stat_internal_alloc_loop1 = 0;
-static long long stat_internal_alloc_loop2 = 0;
#endif
static long long time_minor_pre_collection_fragment_clear = 0;
static long long time_major_sweep = 0;
static long long time_major_fragment_creation = 0;
-static long long pinned_chunk_bytes_alloced = 0;
-static long long large_internal_bytes_alloced = 0;
+#define MAX_DEBUG_LEVEL 2
+#define DEBUG(level,a) do {if (G_UNLIKELY ((level) <= MAX_DEBUG_LEVEL && (level) <= gc_debug_level)) a;} while (0)
-/* Keep in sync with internal_mem_names in dump_heap()! */
-enum {
- INTERNAL_MEM_PIN_QUEUE,
- INTERNAL_MEM_FRAGMENT,
- INTERNAL_MEM_SECTION,
- INTERNAL_MEM_SCAN_STARTS,
- INTERNAL_MEM_FIN_TABLE,
- INTERNAL_MEM_FINALIZE_ENTRY,
- INTERNAL_MEM_DISLINK_TABLE,
- INTERNAL_MEM_DISLINK,
- INTERNAL_MEM_ROOTS_TABLE,
- INTERNAL_MEM_ROOT_RECORD,
- INTERNAL_MEM_STATISTICS,
- INTERNAL_MEM_REMSET,
- INTERNAL_MEM_GRAY_QUEUE,
- INTERNAL_MEM_STORE_REMSET,
- INTERNAL_MEM_MS_TABLES,
- INTERNAL_MEM_MS_BLOCK_INFO,
- INTERNAL_MEM_EPHEMERON_LINK,
- INTERNAL_MEM_MAX
-};
-
-static long small_internal_mem_bytes [INTERNAL_MEM_MAX];
+static int gc_debug_level = 0;
+static FILE* gc_debug_file;
/*
void
#define GC_BITS_PER_WORD (sizeof (mword) * 8)
-enum {
- MEMORY_ROLE_GEN0,
- MEMORY_ROLE_GEN1,
- MEMORY_ROLE_PINNED
-};
-
-typedef struct _Block Block;
-struct _Block {
- void *next;
- unsigned char role;
-};
-
/* each request from the OS ends up in a GCMemSection */
typedef struct _GCMemSection GCMemSection;
struct _GCMemSection {
- Block block;
+ SgenBlock block;
char *data;
mword size;
/* pointer where more data could be allocated if it fits */
#define SIZEOF_GC_MEM_SECTION ((sizeof (GCMemSection) + 7) & ~7)
-/* Pinned objects are allocated in the LOS space if bigger than half a page
- * or from freelists otherwise. We assume that pinned objects are relatively few
- * and they have a slow dying speed (like interned strings, thread objects).
- * As such they will be collected only at major collections.
- * free lists are not global: when we need memory we allocate a PinnedChunk.
- * Each pinned chunk is made of several pages, the first of wich is used
- * internally for bookeeping (here think of a page as 4KB). The bookeeping
- * includes the freelists vectors and info about the object size of each page
- * in the pinned chunk. So, when needed, a free page is found in a pinned chunk,
- * a size is assigned to it, the page is divided in the proper chunks and each
- * chunk is added to the freelist. To not waste space, the remaining space in the
- * first page is used as objects of size 16 or 32 (need to measure which are more
- * common).
- * We use this same structure to allocate memory used internally by the GC, so
- * we never use malloc/free if we need to alloc during collection: the world is stopped
- * and malloc/free will deadlock.
- * When we want to iterate over pinned objects, we just scan a page at a time
- * linearly according to the size of objects in the page: the next pointer used to link
- * the items in the freelist uses the same word as the vtable. Since we keep freelists
- * for each pinned chunk, if the word points outside the pinned chunk it means
- * it is an object.
- * We could avoid this expensive scanning in creative ways. We could have a policy
- * of putting in the pinned space only objects we know about that have no struct fields
- * with references and we can easily use a even expensive write barrier for them,
- * since pointer writes on such objects should be rare.
- * The best compromise is to just alloc interned strings and System.MonoType in them.
- * It would be nice to allocate MonoThread in it, too: must check that we properly
- * use write barriers so we don't have to do any expensive scanning of the whole pinned
- * chunk list during minor collections. We can avoid it now because we alloc in it only
- * reference-free objects.
- */
-#define PINNED_FIRST_SLOT_SIZE (sizeof (gpointer) * 4)
-#define MAX_FREELIST_SIZE 8192
-typedef struct _PinnedChunk PinnedChunk;
-struct _PinnedChunk {
- Block block;
- int num_pages;
- int *page_sizes; /* a 0 means the page is still unused */
- void **free_list;
- void *start_data;
- void *data [1]; /* page sizes and free lists are stored here */
-};
-
/* The method used to clear the nursery */
/* Clearing at nursery collections is the safest, but has bad interactions with caches.
* Clearing at TLAB creation is much faster, but more complex and it might expose hard
#define SCAN_START_SIZE (4096*2)
/* the minimum size of a fragment that we consider useful for allocation */
#define FRAGMENT_MIN_SIZE (512)
-/* This is a fixed value used for pinned chunks, not the system pagesize */
-#define FREELIST_PAGESIZE (16*1024)
static mword pagesize = 4096;
static mword nursery_size;
static LOCK_DECLARE (interruption_mutex);
-#ifdef SGEN_PARALLEL_MARK
-static LOCK_DECLARE (internal_allocator_mutex);
-#endif
-
typedef struct _FinalizeEntry FinalizeEntry;
struct _FinalizeEntry {
FinalizeEntry *next;
void *value;
} Ephemeron;
-#define LARGE_INTERNAL_MEM_HEADER_MAGIC 0x7d289f3a
-
-typedef struct _LargeInternalMemHeader LargeInternalMemHeader;
-struct _LargeInternalMemHeader {
- guint32 magic;
- size_t size;
- double data[0];
-};
-
enum {
GENERATION_NURSERY,
GENERATION_OLD,
static int num_ready_finalizers = 0;
static int no_finalize = 0;
-/* keep each size a multiple of ALLOC_ALIGN */
-/* on 64 bit systems 8 is likely completely unused. */
-static const int freelist_sizes [] = {
- 8, 16, 24, 32, 40, 48, 64, 80,
- 96, 128, 160, 192, 224, 256, 320, 384,
- 448, 512, 584, 680, 816, 1024, 1360, 2048,
- 2336, 2728, 3272, 4096, 5456, 8192 };
-#define FREELIST_NUM_SLOTS (sizeof (freelist_sizes) / sizeof (freelist_sizes [0]))
-
-/* This is also the MAJOR_SECTION_SIZE for the copying major
- collector */
-#define PINNED_CHUNK_SIZE (128 * 1024)
-
-/* internal_chunk_list is used for allocating structures needed by the GC */
-static PinnedChunk *internal_chunk_list = NULL;
-
-static int slot_for_size (size_t size);
-
enum {
ROOT_TYPE_NORMAL = 0, /* "normal" roots */
ROOT_TYPE_PINNED = 1, /* roots without a GC descriptor */
/* Functions supplied by the runtime to be called by the GC */
static MonoGCCallbacks gc_callbacks;
-#define ALLOC_ALIGN 8
-#define ALLOC_ALIGN_BITS 3
+#define ALLOC_ALIGN SGEN_ALLOC_ALIGN
+#define ALLOC_ALIGN_BITS SGEN_ALLOC_ALIGN_BITS
-#define ALIGN_UP(s) (((s)+(ALLOC_ALIGN-1)) & ~(ALLOC_ALIGN-1))
+#define ALIGN_UP SGEN_ALIGN_UP
#define MOVED_OBJECTS_NUM 64
static void *moved_objects [MOVED_OBJECTS_NUM];
typedef char* (*ScanObjectFunc) (char*, GrayQueue*);
/* forward declarations */
-static void* get_internal_mem (size_t size, int type);
-static void free_internal_mem (void *addr, int type);
-static void* get_os_memory (size_t size, int activate);
-static void* get_os_memory_aligned (mword size, mword alignment, gboolean activate);
-static void free_os_memory (void *addr, size_t size);
-static G_GNUC_UNUSED void report_internal_mem_usage (void);
-
static int stop_world (void);
static int restart_world (void);
static void add_to_global_remset (gpointer ptr);
static void optimize_pin_queue (int start_slot);
static void clear_remsets (void);
static void clear_tlabs (void);
-typedef void (*IterateObjectCallbackFunc) (char*, size_t, void*);
static void scan_area_with_callback (char *start, char *end, IterateObjectCallbackFunc callback, void *data);
static void scan_object (char *start, GrayQueue *queue);
static void major_scan_object (char *start, GrayQueue *queue);
static void par_copy_object_no_checks (char *destination, MonoVTable *vt, void *obj, mword objsize, GrayQueue *queue);
static void* copy_object_no_checks (void *obj, GrayQueue *queue);
static void copy_object (void **obj_slot, GrayQueue *queue);
-static void* get_chunk_freelist (PinnedChunk *chunk, int slot);
-static PinnedChunk* alloc_pinned_chunk (void);
static void sort_addresses (void **array, int size);
static void drain_gray_stack (GrayQueue *queue);
static void finish_gray_stack (char *start_addr, char *end_addr, int generation, GrayQueue *queue);
static gboolean need_major_collection (void);
static void major_collection (const char *reason);
-static void update_heap_boundaries (mword low, mword high);
static void mono_gc_register_disappearing_link (MonoObject *obj, void **link, gboolean track);
static void dump_occupied (char *start, char *end, char *section_start);
static void dump_section (GCMemSection *section, const char *type);
static void dump_heap (const char *type, int num, const char *reason);
-static void report_pinned_chunk (PinnedChunk *chunk, int seq);
void mono_gc_scan_for_specific_ref (MonoObject *key);
}
}
-static void
-update_heap_boundaries (mword low, mword high)
+void
+mono_sgen_update_heap_boundaries (mword low, mword high)
{
mword old;
frag->next = NULL;
return frag;
}
- frag = get_internal_mem (sizeof (Fragment), INTERNAL_MEM_FRAGMENT);
+ frag = mono_sgen_alloc_internal (INTERNAL_MEM_FRAGMENT);
frag->next = NULL;
return frag;
}
/* size must be a power of 2 */
-static void*
-get_os_memory_aligned (mword size, mword alignment, gboolean activate)
+void*
+mono_sgen_alloc_os_memory_aligned (mword size, mword alignment, gboolean activate)
{
/* Allocate twice the memory to be able to put the block on an aligned address */
- char *mem = get_os_memory (size + alignment, activate);
+ char *mem = mono_sgen_alloc_os_memory (size + alignment, activate);
char *aligned;
g_assert (mem);
g_assert (aligned >= mem && aligned + size <= mem + size + alignment && !((mword)aligned & (alignment - 1)));
if (aligned > mem)
- free_os_memory (mem, aligned - mem);
+ mono_sgen_free_os_memory (mem, aligned - mem);
if (aligned + size < mem + size + alignment)
- free_os_memory (aligned + size, (mem + size + alignment) - (aligned + size));
+ mono_sgen_free_os_memory (aligned + size, (mem + size + alignment) - (aligned + size));
return aligned;
}
* objects in the existing nursery.
*/
/* FIXME: handle OOM */
- section = get_internal_mem (SIZEOF_GC_MEM_SECTION, INTERNAL_MEM_SECTION);
+ section = mono_sgen_alloc_internal (INTERNAL_MEM_SECTION);
g_assert (nursery_size == DEFAULT_NURSERY_SIZE);
alloc_size = nursery_size;
#ifdef ALIGN_NURSERY
- data = get_os_memory_aligned (alloc_size, alloc_size, TRUE);
+ data = mono_sgen_alloc_os_memory_aligned (alloc_size, alloc_size, TRUE);
#else
- data = get_os_memory (alloc_size, TRUE);
+ data = mono_sgen_alloc_os_memory (alloc_size, TRUE);
#endif
nursery_start = data;
nursery_real_end = nursery_start + nursery_size;
- update_heap_boundaries ((mword)nursery_start, (mword)nursery_real_end);
+ mono_sgen_update_heap_boundaries ((mword)nursery_start, (mword)nursery_real_end);
nursery_next = nursery_start;
- total_alloc += alloc_size;
DEBUG (4, fprintf (gc_debug_file, "Expanding nursery size (%p-%p): %lu, total: %lu\n", data, data + alloc_size, (unsigned long)nursery_size, (unsigned long)total_alloc));
section->data = section->next_data = data;
section->size = alloc_size;
section->end_data = nursery_real_end;
scan_starts = (alloc_size + SCAN_START_SIZE - 1) / SCAN_START_SIZE;
- section->scan_starts = get_internal_mem (sizeof (char*) * scan_starts, INTERNAL_MEM_SCAN_STARTS);
+ section->scan_starts = mono_sgen_alloc_internal_dynamic (sizeof (char*) * scan_starts, INTERNAL_MEM_SCAN_STARTS);
section->num_scan_start = scan_starts;
section->block.role = MEMORY_ROLE_GEN0;
section->block.next = NULL;
static void
dump_heap (const char *type, int num, const char *reason)
{
- static char const *internal_mem_names [] = { "pin-queue", "fragment", "section", "scan-starts",
- "fin-table", "finalize-entry", "dislink-table",
- "dislink", "roots-table", "root-record", "statistics",
- "remset", "gray-queue", "store-remset", "marksweep-tables",
- "marksweep-block-info", "ephemeron-link" };
-
ObjectList *list;
LOSObject *bigobj;
- int i;
fprintf (heap_dump_file, "<collection type=\"%s\" num=\"%d\"", type, num);
if (reason)
fprintf (heap_dump_file, " reason=\"%s\"", reason);
fprintf (heap_dump_file, ">\n");
- fprintf (heap_dump_file, "<other-mem-usage type=\"pinned-chunks\" size=\"%lld\"/>\n", pinned_chunk_bytes_alloced);
- fprintf (heap_dump_file, "<other-mem-usage type=\"large-internal\" size=\"%lld\"/>\n", large_internal_bytes_alloced);
fprintf (heap_dump_file, "<other-mem-usage type=\"mempools\" size=\"%ld\"/>\n", mono_mempool_get_bytes_allocated ());
- for (i = 0; i < INTERNAL_MEM_MAX; ++i)
- fprintf (heap_dump_file, "<other-mem-usage type=\"%s\" size=\"%ld\"/>\n", internal_mem_names [i], small_internal_mem_bytes [i]);
+ mono_sgen_dump_internal_mem_usage (heap_dump_file);
fprintf (heap_dump_file, "<pinned type=\"stack\" bytes=\"%zu\"/>\n", pinned_byte_counts [PIN_TYPE_STACK]);
/* fprintf (heap_dump_file, "<pinned type=\"static-data\" bytes=\"%d\"/>\n", pinned_byte_counts [PIN_TYPE_STATIC_DATA]); */
fprintf (heap_dump_file, "<pinned type=\"other\" bytes=\"%zu\"/>\n", pinned_byte_counts [PIN_TYPE_OTHER]);
mono_counters_register ("Global remsets re-added", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_global_remsets_readded);
mono_counters_register ("Global remsets processed", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_global_remsets_processed);
mono_counters_register ("Global remsets discarded", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_global_remsets_discarded);
-
- mono_counters_register ("Internal allocs", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_internal_alloc);
- mono_counters_register ("Internal alloc loop1", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_internal_alloc_loop1);
- mono_counters_register ("Internal alloc loop2", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_internal_alloc_loop2);
#endif
inited = TRUE;
current_collection_generation = GENERATION_NURSERY;
- init_stats ();
binary_protocol_collection (GENERATION_NURSERY);
check_scan_starts ();
//count_ref_nonref_objs ();
//consistency_check ();
- init_stats ();
binary_protocol_collection (GENERATION_OLD);
check_scan_starts ();
gray_object_queue_init (&gray_queue);
* Internal memory can be handled with a freelist for small objects.
*/
+/*
+ * Debug reporting.
+ */
+G_GNUC_UNUSED static void
+report_internal_mem_usage (void)
+{
+ printf ("Internal memory usage:\n");
+ mono_sgen_report_internal_mem_usage ();
+ printf ("Pinned memory usage:\n");
+ major_report_pinned_memory_usage ();
+}
+
/*
* Allocate a big chunk of memory from the OS (usually 64KB to several megabytes).
* This must not require any lock.
*/
-static void*
-get_os_memory (size_t size, int activate)
+void*
+mono_sgen_alloc_os_memory (size_t size, int activate)
{
void *ptr;
unsigned long prot_flags = activate? MONO_MMAP_READ|MONO_MMAP_WRITE: MONO_MMAP_NONE;
size += pagesize - 1;
size &= ~(pagesize - 1);
ptr = mono_valloc (0, size, prot_flags);
+ /* FIXME: CAS */
+ total_alloc += size;
return ptr;
}
/*
- * Free the memory returned by get_os_memory (), returning it to the OS.
+ * Free the memory returned by mono_sgen_alloc_os_memory (), returning it to the OS.
*/
-static void
-free_os_memory (void *addr, size_t size)
+void
+mono_sgen_free_os_memory (void *addr, size_t size)
{
mono_vfree (addr, size);
-}
-
-/*
- * Debug reporting.
- */
-static void
-report_pinned_chunk (PinnedChunk *chunk, int seq) {
- void **p;
- int i, free_pages, num_free, free_mem;
- free_pages = 0;
- for (i = 0; i < chunk->num_pages; ++i) {
- if (!chunk->page_sizes [i])
- free_pages++;
- }
- printf ("Pinned chunk %d at %p, size: %d, pages: %d, free: %d\n", seq, chunk, chunk->num_pages * FREELIST_PAGESIZE, chunk->num_pages, free_pages);
- free_mem = FREELIST_PAGESIZE * free_pages;
- for (i = 0; i < FREELIST_NUM_SLOTS; ++i) {
- if (!chunk->free_list [i])
- continue;
- num_free = 0;
- p = chunk->free_list [i];
- while (p) {
- num_free++;
- p = *p;
- }
- printf ("\tfree list of size %d, %d items\n", freelist_sizes [i], num_free);
- free_mem += freelist_sizes [i] * num_free;
- }
- printf ("\tfree memory in chunk: %d\n", free_mem);
-}
-
-/*
- * Debug reporting.
- */
-static G_GNUC_UNUSED void
-report_internal_mem_usage (void) {
- PinnedChunk *chunk;
- int i;
- printf ("Internal memory usage:\n");
- i = 0;
- for (chunk = internal_chunk_list; chunk; chunk = chunk->block.next) {
- report_pinned_chunk (chunk, i++);
- }
- printf ("Pinned memory usage:\n");
- major_report_pinned_memory_usage ();
-}
-
-/*
- * Find the slot number in the freelist for memory chunks that
- * can contain @size objects.
- */
-static int
-slot_for_size (size_t size)
-{
- int slot;
- /* do a binary search or lookup table later. */
- for (slot = 0; slot < FREELIST_NUM_SLOTS; ++slot) {
- if (freelist_sizes [slot] >= size)
- return slot;
- }
- g_assert_not_reached ();
- return -1;
-}
-
-/*
- * Build a free list for @size memory chunks from the memory area between
- * start_page and end_page.
- */
-static void
-build_freelist (PinnedChunk *chunk, int slot, int size, char *start_page, char *end_page)
-{
- void **p, **end;
- int count = 0;
- /*g_print ("building freelist for slot %d, size %d in %p\n", slot, size, chunk);*/
- p = (void**)start_page;
- end = (void**)(end_page - size);
- g_assert (!chunk->free_list [slot]);
- chunk->free_list [slot] = p;
- while ((char*)p + size <= (char*)end) {
- count++;
- *p = (void*)((char*)p + size);
- p = *p;
- }
- *p = NULL;
- /*g_print ("%d items created, max: %d\n", count, (end_page - start_page) / size);*/
-}
-
-/* LOCKING: requires the internal allocator lock to be held */
-static PinnedChunk*
-alloc_pinned_chunk (void)
-{
- PinnedChunk *chunk;
- int offset;
- int size = PINNED_CHUNK_SIZE;
-
- chunk = get_os_memory_aligned (size, size, TRUE);
- chunk->block.role = MEMORY_ROLE_PINNED;
-
- update_heap_boundaries ((mword)chunk, ((mword)chunk + size));
- total_alloc += size;
- pinned_chunk_bytes_alloced += size;
-
- /* setup the bookeeping fields */
- chunk->num_pages = size / FREELIST_PAGESIZE;
- offset = G_STRUCT_OFFSET (PinnedChunk, data);
- chunk->page_sizes = (void*)((char*)chunk + offset);
- offset += sizeof (int) * chunk->num_pages;
- offset = ALIGN_UP (offset);
- chunk->free_list = (void*)((char*)chunk + offset);
- offset += sizeof (void*) * FREELIST_NUM_SLOTS;
- offset = ALIGN_UP (offset);
- chunk->start_data = (void*)((char*)chunk + offset);
-
- /* allocate the first page to the freelist */
- chunk->page_sizes [0] = PINNED_FIRST_SLOT_SIZE;
- build_freelist (chunk, slot_for_size (PINNED_FIRST_SLOT_SIZE), PINNED_FIRST_SLOT_SIZE, chunk->start_data, ((char*)chunk + FREELIST_PAGESIZE));
- DEBUG (4, fprintf (gc_debug_file, "Allocated pinned chunk %p, size: %d\n", chunk, size));
- return chunk;
-}
-
-/* assumes freelist for slot is empty, so try to alloc a new page */
-static void*
-get_chunk_freelist (PinnedChunk *chunk, int slot)
-{
- int i;
- void **p;
- p = chunk->free_list [slot];
- if (p) {
- chunk->free_list [slot] = *p;
- return p;
- }
- for (i = 0; i < chunk->num_pages; ++i) {
- int size;
- if (chunk->page_sizes [i])
- continue;
- size = freelist_sizes [slot];
- chunk->page_sizes [i] = size;
- build_freelist (chunk, slot, size, (char*)chunk + FREELIST_PAGESIZE * i, (char*)chunk + FREELIST_PAGESIZE * (i + 1));
- break;
- }
- /* try again */
- p = chunk->free_list [slot];
- if (p) {
- chunk->free_list [slot] = *p;
- return p;
- }
- return NULL;
-}
-
-/* used for the GC-internal data structures */
-static void*
-get_internal_mem (size_t size, int type)
-{
- int slot;
- void *res = NULL;
- PinnedChunk *pchunk;
-
- LOCK_INTERNAL_ALLOCATOR;
-
- HEAVY_STAT (++stat_internal_alloc);
-
- if (size > freelist_sizes [FREELIST_NUM_SLOTS - 1]) {
- LargeInternalMemHeader *mh;
-
- UNLOCK_INTERNAL_ALLOCATOR;
-
- size += sizeof (LargeInternalMemHeader);
- mh = get_os_memory (size, TRUE);
- mh->magic = LARGE_INTERNAL_MEM_HEADER_MAGIC;
- mh->size = size;
- /* FIXME: do a CAS here */
- large_internal_bytes_alloced += size;
- return mh->data;
- }
-
- slot = slot_for_size (size);
- g_assert (size <= freelist_sizes [slot]);
-
- small_internal_mem_bytes [type] += freelist_sizes [slot];
-
- for (pchunk = internal_chunk_list; pchunk; pchunk = pchunk->block.next) {
- void **p = pchunk->free_list [slot];
- HEAVY_STAT (++stat_internal_alloc_loop1);
- if (p) {
- pchunk->free_list [slot] = *p;
- UNLOCK_INTERNAL_ALLOCATOR;
-
- memset (p, 0, size);
- return p;
- }
- }
- for (pchunk = internal_chunk_list; pchunk; pchunk = pchunk->block.next) {
- HEAVY_STAT (++stat_internal_alloc_loop2);
- res = get_chunk_freelist (pchunk, slot);
- if (res) {
- UNLOCK_INTERNAL_ALLOCATOR;
-
- memset (res, 0, size);
- return res;
- }
- }
- pchunk = alloc_pinned_chunk ();
- /* FIXME: handle OOM */
- pchunk->block.next = internal_chunk_list;
- internal_chunk_list = pchunk;
- res = get_chunk_freelist (pchunk, slot);
-
- UNLOCK_INTERNAL_ALLOCATOR;
-
- memset (res, 0, size);
- return res;
-}
-
-static void
-free_internal_mem (void *addr, int type)
-{
- PinnedChunk *pchunk;
- LargeInternalMemHeader *mh;
- if (!addr)
- return;
-
- LOCK_INTERNAL_ALLOCATOR;
-
- for (pchunk = internal_chunk_list; pchunk; pchunk = pchunk->block.next) {
- /*printf ("trying to free %p in %p (pages: %d)\n", addr, pchunk, pchunk->num_pages);*/
- if (addr >= (void*)pchunk && (char*)addr < (char*)pchunk + pchunk->num_pages * FREELIST_PAGESIZE) {
- int offset = (char*)addr - (char*)pchunk;
- int page = offset / FREELIST_PAGESIZE;
- int slot = slot_for_size (pchunk->page_sizes [page]);
- void **p = addr;
- *p = pchunk->free_list [slot];
- pchunk->free_list [slot] = p;
-
- small_internal_mem_bytes [type] -= freelist_sizes [slot];
-
- UNLOCK_INTERNAL_ALLOCATOR;
-
- return;
- }
- }
-
- UNLOCK_INTERNAL_ALLOCATOR;
-
- mh = (LargeInternalMemHeader*)((char*)addr - G_STRUCT_OFFSET (LargeInternalMemHeader, data));
- g_assert (mh->magic == LARGE_INTERNAL_MEM_HEADER_MAGIC);
- /* FIXME: do a CAS */
- large_internal_bytes_alloced -= mh->size;
- free_os_memory (mh, mh->size);
+ size += pagesize - 1;
+ size &= ~(pagesize - 1);
+ /* FIXME: CAS */
+ total_alloc -= size;
}
/*
FinalizeEntry *entry, *next;
int new_size = g_spaced_primes_closest (hash_table->num_registered);
- new_hash = get_internal_mem (new_size * sizeof (FinalizeEntry*), INTERNAL_MEM_FIN_TABLE);
+ new_hash = mono_sgen_alloc_internal_dynamic (new_size * sizeof (FinalizeEntry*), INTERNAL_MEM_FIN_TABLE);
for (i = 0; i < finalizable_hash_size; ++i) {
for (entry = finalizable_hash [i]; entry; entry = next) {
hash = mono_object_hash (entry->object) % new_size;
new_hash [hash] = entry;
}
}
- free_internal_mem (finalizable_hash, INTERNAL_MEM_FIN_TABLE);
+ mono_sgen_free_internal_dynamic (finalizable_hash, finalizable_hash_size * sizeof (FinalizeEntry*), INTERNAL_MEM_FIN_TABLE);
hash_table->table = new_hash;
hash_table->size = new_size;
}
ephemeron_list = current->next;
current = current->next;
- free_internal_mem (tmp, INTERNAL_MEM_EPHEMERON_LINK);
+ mono_sgen_free_internal (tmp, INTERNAL_MEM_EPHEMERON_LINK);
} else {
prev = current;
current = current->next;
ephemeron_list = current->next;
current = current->next;
- free_internal_mem (tmp, INTERNAL_MEM_EPHEMERON_LINK);
+ mono_sgen_free_internal (tmp, INTERNAL_MEM_EPHEMERON_LINK);
continue;
}
disappearing_link_hash [i] = entry->next;
DEBUG (5, fprintf (gc_debug_file, "Dislink nullified at %p to GCed object %p\n", p, object));
old = entry->next;
- free_internal_mem (entry, INTERNAL_MEM_DISLINK);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_DISLINK);
entry = old;
hash->num_links--;
continue;
else
disappearing_link_hash [i] = entry->next;
old = entry->next;
- free_internal_mem (entry, INTERNAL_MEM_DISLINK);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_DISLINK);
entry = old;
hash->num_links--;
*(entry->link) = NULL;
g_warning ("Disappearing link %p not freed", entry->link);
} else {
- free_internal_mem (entry, INTERNAL_MEM_DISLINK);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_DISLINK);
}
entry = next;
finalizable_hash [hash] = entry->next;
hash_table->num_registered--;
DEBUG (5, fprintf (gc_debug_file, "Removed finalizer %p for object: %p (%s) (%d)\n", entry, obj, obj->vtable->klass->name, hash_table->num_registered));
- free_internal_mem (entry, INTERNAL_MEM_FINALIZE_ENTRY);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_FINALIZE_ENTRY);
}
UNLOCK_GC;
return;
UNLOCK_GC;
return;
}
- entry = get_internal_mem (sizeof (FinalizeEntry), INTERNAL_MEM_FINALIZE_ENTRY);
+ entry = mono_sgen_alloc_internal (INTERNAL_MEM_FINALIZE_ENTRY);
entry->object = obj;
entry->next = finalizable_hash [hash];
finalizable_hash [hash] = entry;
DisappearingLink *entry, *next;
int new_size = g_spaced_primes_closest (hash_table->num_links);
- new_hash = get_internal_mem (new_size * sizeof (DisappearingLink*), INTERNAL_MEM_DISLINK_TABLE);
+ new_hash = mono_sgen_alloc_internal_dynamic (new_size * sizeof (DisappearingLink*), INTERNAL_MEM_DISLINK_TABLE);
for (i = 0; i < disappearing_link_hash_size; ++i) {
for (entry = disappearing_link_hash [i]; entry; entry = next) {
hash = mono_aligned_addr_hash (entry->link) % new_size;
new_hash [hash] = entry;
}
}
- free_internal_mem (disappearing_link_hash, INTERNAL_MEM_DISLINK_TABLE);
+ mono_sgen_free_internal_dynamic (disappearing_link_hash,
+ disappearing_link_hash_size * sizeof (DisappearingLink*), INTERNAL_MEM_DISLINK_TABLE);
hash_table->table = new_hash;
hash_table->size = new_size;
}
disappearing_link_hash [hash] = entry->next;
hash_table->num_links--;
DEBUG (5, fprintf (gc_debug_file, "Removed dislink %p (%d) from %s table\n", entry, hash_table->num_links, generation_name (generation)));
- free_internal_mem (entry, INTERNAL_MEM_DISLINK);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_DISLINK);
*link = NULL;
} else {
*link = HIDE_POINTER (obj, track); /* we allow the change of object */
}
if (obj == NULL)
return;
- entry = get_internal_mem (sizeof (DisappearingLink), INTERNAL_MEM_DISLINK);
+ entry = mono_sgen_alloc_internal (INTERNAL_MEM_DISLINK);
*link = HIDE_POINTER (obj, track);
entry->link = link;
entry->next = disappearing_link_hash [hash];
e = e->next;
e->next = entry->next;
}
- free_internal_mem (entry, INTERNAL_MEM_FINALIZE_ENTRY);
+ mono_sgen_free_internal (entry, INTERNAL_MEM_FINALIZE_ENTRY);
entry = NULL;
}
int new_size;
new_size = g_spaced_primes_closest (num_roots_entries [pinned]);
- new_hash = get_internal_mem (new_size * sizeof (RootRecord*), INTERNAL_MEM_ROOTS_TABLE);
+ new_hash = mono_sgen_alloc_internal_dynamic (new_size * sizeof (RootRecord*), INTERNAL_MEM_ROOTS_TABLE);
for (i = 0; i < roots_hash_size [pinned]; ++i) {
for (entry = roots_hash [pinned][i]; entry; entry = next) {
hash = mono_aligned_addr_hash (entry->start_root) % new_size;
new_hash [hash] = entry;
}
}
- free_internal_mem (roots_hash [pinned], INTERNAL_MEM_ROOTS_TABLE);
+ mono_sgen_free_internal_dynamic (roots_hash [pinned], roots_hash_size [pinned] * sizeof (RootRecord*), INTERNAL_MEM_ROOTS_TABLE);
roots_hash [pinned] = new_hash;
roots_hash_size [pinned] = new_size;
}
return TRUE;
}
}
- new_root = get_internal_mem (sizeof (RootRecord), INTERNAL_MEM_ROOT_RECORD);
+ new_root = mono_sgen_alloc_internal (INTERNAL_MEM_ROOT_RECORD);
if (new_root) {
new_root->start_root = start;
new_root->end_root = new_root->start_root + size;
roots_size -= (tmp->end_root - tmp->start_root);
num_roots_entries [root_type]--;
DEBUG (3, fprintf (gc_debug_file, "Removed root %p for range: %p-%p\n", tmp, tmp->start_root, tmp->end_root));
- free_internal_mem (tmp, INTERNAL_MEM_ROOT_RECORD);
+ mono_sgen_free_internal (tmp, INTERNAL_MEM_ROOT_RECORD);
break;
}
prev = tmp;
for (remset = global_remset; remset; remset = remset->next)
size += remset->store_next - remset->data;
- bumper = addresses = get_internal_mem (sizeof (mword) * size, INTERNAL_MEM_STATISTICS);
+ bumper = addresses = mono_sgen_alloc_internal_dynamic (sizeof (mword) * size, INTERNAL_MEM_STATISTICS);
for (i = 0; i < THREAD_HASH_SIZE; ++i) {
for (info = thread_table [i]; info; info = info->next) {
stat_store_remsets_unique += p - addresses;
- free_internal_mem (addresses, INTERNAL_MEM_STATISTICS);
+ mono_sgen_free_internal_dynamic (addresses, sizeof (mword) * size, INTERNAL_MEM_STATISTICS);
}
#endif
memset (*info->store_remset_buffer_addr, 0, sizeof (gpointer) * STORE_REMSET_BUFFER_SIZE);
}
+static size_t
+remset_byte_size (RememberedSet *remset)
+{
+ return sizeof (RememberedSet) + (remset->end_set - remset->data) * sizeof (gpointer);
+}
+
static void
scan_from_remsets (void *start_nursery, void *end_nursery, GrayQueue *queue)
{
handle_remset ((mword*)&addr, start_nursery, end_nursery, FALSE, queue);
}
- free_internal_mem (store_remset, INTERNAL_MEM_STORE_REMSET);
+ mono_sgen_free_internal (store_remset, INTERNAL_MEM_STORE_REMSET);
store_remset = next;
}
remset->next = NULL;
if (remset != info->remset) {
DEBUG (4, fprintf (gc_debug_file, "Freed remset at %p\n", remset->data));
- free_internal_mem (remset, INTERNAL_MEM_REMSET);
+ mono_sgen_free_internal_dynamic (remset, remset_byte_size (remset), INTERNAL_MEM_REMSET);
}
}
for (j = 0; j < *info->store_remset_buffer_index_addr; ++j)
}
next = remset->next;
DEBUG (4, fprintf (gc_debug_file, "Freed remset at %p\n", remset->data));
- free_internal_mem (remset, INTERNAL_MEM_REMSET);
+ mono_sgen_free_internal_dynamic (remset, remset_byte_size (remset), INTERNAL_MEM_REMSET);
freed_thread_remsets = next;
}
}
remset->next = NULL;
if (remset != global_remset) {
DEBUG (4, fprintf (gc_debug_file, "Freed remset at %p\n", remset->data));
- free_internal_mem (remset, INTERNAL_MEM_REMSET);
+ mono_sgen_free_internal_dynamic (remset, remset_byte_size (remset), INTERNAL_MEM_REMSET);
}
}
/* the generic store ones */
while (generic_store_remsets) {
GenericStoreRememberedSet *gs_next = generic_store_remsets->next;
- free_internal_mem (generic_store_remsets, INTERNAL_MEM_STORE_REMSET);
+ mono_sgen_free_internal (generic_store_remsets, INTERNAL_MEM_STORE_REMSET);
generic_store_remsets = gs_next;
}
/* the per-thread ones */
remset->next = NULL;
if (remset != info->remset) {
DEBUG (3, fprintf (gc_debug_file, "Freed remset at %p\n", remset->data));
- free_internal_mem (remset, INTERNAL_MEM_REMSET);
+ mono_sgen_free_internal_dynamic (remset, remset_byte_size (remset), INTERNAL_MEM_REMSET);
}
}
clear_thread_store_remset_buffer (info);
while (freed_thread_remsets) {
next = freed_thread_remsets->next;
DEBUG (4, fprintf (gc_debug_file, "Freed remset at %p\n", freed_thread_remsets->data));
- free_internal_mem (freed_thread_remsets, INTERNAL_MEM_REMSET);
+ mono_sgen_free_internal_dynamic (freed_thread_remsets, remset_byte_size (freed_thread_remsets), INTERNAL_MEM_REMSET);
freed_thread_remsets = next;
}
}
remembered_set = info->remset;
#endif
- STORE_REMSET_BUFFER = get_internal_mem (sizeof (gpointer) * STORE_REMSET_BUFFER_SIZE, INTERNAL_MEM_STORE_REMSET);
+ STORE_REMSET_BUFFER = mono_sgen_alloc_internal (INTERNAL_MEM_STORE_REMSET);
STORE_REMSET_BUFFER_INDEX = 0;
DEBUG (3, fprintf (gc_debug_file, "registered thread %p (%p) (hash: %d)\n", info, (gpointer)info->id, hash));
static void
add_generic_store_remset_from_buffer (gpointer *buffer)
{
- GenericStoreRememberedSet *remset = get_internal_mem (sizeof (GenericStoreRememberedSet), INTERNAL_MEM_STORE_REMSET);
+ GenericStoreRememberedSet *remset = mono_sgen_alloc_internal (INTERNAL_MEM_STORE_REMSET);
memcpy (remset->data, buffer + 1, sizeof (gpointer) * (STORE_REMSET_BUFFER_SIZE - 1));
remset->next = generic_store_remsets;
generic_store_remsets = remset;
}
if (*p->store_remset_buffer_index_addr)
add_generic_store_remset_from_buffer (*p->store_remset_buffer_addr);
- free_internal_mem (*p->store_remset_buffer_addr, INTERNAL_MEM_STORE_REMSET);
+ mono_sgen_free_internal (*p->store_remset_buffer_addr, INTERNAL_MEM_STORE_REMSET);
free (p);
}
static RememberedSet*
alloc_remset (int size, gpointer id) {
- RememberedSet* res = get_internal_mem (sizeof (RememberedSet) + (size * sizeof (gpointer)), INTERNAL_MEM_REMSET);
+ RememberedSet* res = mono_sgen_alloc_internal_dynamic (sizeof (RememberedSet) + (size * sizeof (gpointer)), INTERNAL_MEM_REMSET);
res->store_next = res->data;
res->end_set = res->data + size;
res->next = NULL;
LOCK_GC;
- node = get_internal_mem (sizeof (EphemeronLinkNode), INTERNAL_MEM_EPHEMERON_LINK);
+ node = mono_sgen_alloc_internal (INTERNAL_MEM_EPHEMERON_LINK);
if (!node) {
UNLOCK_GC;
return FALSE;
nursery_size = DEFAULT_NURSERY_SIZE;
minor_collection_allowance = MIN_MINOR_COLLECTION_ALLOWANCE;
+ init_stats ();
+ mono_sgen_init_internal_allocator ();
major_init ();
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_FRAGMENT, sizeof (Fragment));
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_SECTION, SIZEOF_GC_MEM_SECTION);
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_FINALIZE_ENTRY, sizeof (FinalizeEntry));
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_DISLINK, sizeof (DisappearingLink));
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_ROOT_RECORD, sizeof (RootRecord));
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_GRAY_QUEUE, sizeof (GrayQueueSection));
+ g_assert (sizeof (GenericStoreRememberedSet) == sizeof (gpointer) * STORE_REMSET_BUFFER_SIZE);
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_STORE_REMSET, sizeof (GenericStoreRememberedSet));
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_EPHEMERON_LINK, sizeof (EphemeronLinkNode));
+
if ((env = getenv ("MONO_GC_DEBUG"))) {
opts = g_strsplit (env, ",", -1);
for (ptr = opts; ptr && *ptr; ptr ++) {
return FALSE;
}
+void
+mono_sgen_debug_printf (int level, const char *format, ...)
+{
+ va_list ap;
+
+ if (level > gc_debug_level)
+ return;
+
+ va_start (ap, format);
+ vfprintf (gc_debug_file, format, ap);
+ va_end (ap);
+}
+
#endif /* HAVE_SGEN_GC */
/* #define SGEN_PARALLEL_MARK */
+/*
+ * Turning on heavy statistics will turn off the managed allocator and
+ * the managed write barrier.
+ */
+//#define HEAVY_STATISTICS
+
#define THREAD_HASH_SIZE 11
#define ARCH_THREAD_TYPE pthread_t
#endif
};
+enum {
+ MEMORY_ROLE_GEN0,
+ MEMORY_ROLE_GEN1,
+ MEMORY_ROLE_PINNED,
+ MEMORY_ROLE_INTERNAL
+};
+
+typedef struct _SgenBlock SgenBlock;
+struct _SgenBlock {
+ void *next;
+ unsigned char role;
+};
+
+/* This is also the MAJOR_SECTION_SIZE for the copying major
+ collector */
+#define SGEN_PINNED_CHUNK_SIZE (128 * 1024)
+
+#define SGEN_PINNED_CHUNK_FOR_PTR(o) ((SgenBlock*)(((mword)(o)) & ~(SGEN_PINNED_CHUNK_SIZE - 1)))
+
+typedef struct _SgenPinnedChunk SgenPinnedChunk;
+
#ifdef __APPLE__
-static int suspend_signal_num = SIGXFSZ;
+const static int suspend_signal_num = SIGXFSZ;
#else
-static int suspend_signal_num = SIGPWR;
+const static int suspend_signal_num = SIGPWR;
#endif
-static int restart_signal_num = SIGXCPU;
+const static int restart_signal_num = SIGXCPU;
/*
* Recursion is not allowed for the thread lock.
#define LOCK_INTERRUPTION pthread_mutex_lock (&interruption_mutex)
#define UNLOCK_INTERRUPTION pthread_mutex_unlock (&interruption_mutex)
-#ifdef SGEN_PARALLEL_MARK
-#define LOCK_INTERNAL_ALLOCATOR pthread_mutex_lock (&internal_allocator_mutex)
-#define UNLOCK_INTERNAL_ALLOCATOR pthread_mutex_unlock (&internal_allocator_mutex)
-#else
-#define LOCK_INTERNAL_ALLOCATOR
-#define UNLOCK_INTERNAL_ALLOCATOR
-#endif
-
#ifdef SGEN_PARALLEL_MARK
#define SGEN_CAS_PTR InterlockedCompareExchangePointer
#define SGEN_ATOMIC_ADD(x,i) do { \
/* we intercept pthread_create calls to know which threads exist */
#define USE_PTHREAD_INTERCEPT 1
-#define MAX_DEBUG_LEVEL 2
-#define DEBUG(level,a) do {if (G_UNLIKELY ((level) <= MAX_DEBUG_LEVEL && (level) <= gc_debug_level)) a;} while (0)
+#ifdef HEAVY_STATISTICS
+#define HEAVY_STAT(x) x
+#else
+#define HEAVY_STAT(x)
+#endif
+
+#define SGEN_ALLOC_ALIGN 8
+#define SGEN_ALLOC_ALIGN_BITS 3
+
+#define SGEN_ALIGN_UP(s) (((s)+(SGEN_ALLOC_ALIGN-1)) & ~(SGEN_ALLOC_ALIGN-1))
+
+typedef void (*IterateObjectCallbackFunc) (char*, size_t, void*);
+
+void* mono_sgen_alloc_os_memory (size_t size, int activate) MONO_INTERNAL;
+void* mono_sgen_alloc_os_memory_aligned (mword size, mword alignment, gboolean activate) MONO_INTERNAL;
+void mono_sgen_free_os_memory (void *addr, size_t size) MONO_INTERNAL;
int mono_sgen_thread_handshake (int signum) MONO_INTERNAL;
SgenThreadInfo* mono_sgen_thread_info_lookup (ARCH_THREAD_TYPE id) MONO_INTERNAL;
gboolean mono_sgen_is_worker_thread (pthread_t thread) MONO_INTERNAL;
-#endif /* __MONO_SGENGC_H__ */
+void mono_sgen_update_heap_boundaries (mword low, mword high) MONO_INTERNAL;
+
+/* Keep in sync with mono_sgen_dump_internal_mem_usage() in dump_heap()! */
+enum {
+ INTERNAL_MEM_MANAGED,
+ INTERNAL_MEM_PIN_QUEUE,
+ INTERNAL_MEM_FRAGMENT,
+ INTERNAL_MEM_SECTION,
+ INTERNAL_MEM_SCAN_STARTS,
+ INTERNAL_MEM_FIN_TABLE,
+ INTERNAL_MEM_FINALIZE_ENTRY,
+ INTERNAL_MEM_DISLINK_TABLE,
+ INTERNAL_MEM_DISLINK,
+ INTERNAL_MEM_ROOTS_TABLE,
+ INTERNAL_MEM_ROOT_RECORD,
+ INTERNAL_MEM_STATISTICS,
+ INTERNAL_MEM_REMSET,
+ INTERNAL_MEM_GRAY_QUEUE,
+ INTERNAL_MEM_STORE_REMSET,
+ INTERNAL_MEM_MS_TABLES,
+ INTERNAL_MEM_MS_BLOCK_INFO,
+ INTERNAL_MEM_EPHEMERON_LINK,
+ INTERNAL_MEM_MAX
+};
+
+#define SGEN_INTERNAL_FREELIST_NUM_SLOTS 30
+
+typedef struct _SgenInternalAllocator SgenInternalAllocator;
+struct _SgenInternalAllocator {
+ SgenPinnedChunk *chunk_list;
+ SgenPinnedChunk *free_lists [SGEN_INTERNAL_FREELIST_NUM_SLOTS];
+ long small_internal_mem_bytes [INTERNAL_MEM_MAX];
+};
+
+void mono_sgen_init_internal_allocator (void) MONO_INTERNAL;
+
+const char* mono_sgen_internal_mem_type_name (int type) MONO_INTERNAL;
+void mono_sgen_report_internal_mem_usage (void) MONO_INTERNAL;
+void mono_sgen_report_internal_mem_usage_full (SgenInternalAllocator *alc) MONO_INTERNAL;
+void mono_sgen_dump_internal_mem_usage (FILE *heap_dump_file) MONO_INTERNAL;
+void mono_sgen_register_fixed_internal_mem_type (int type, size_t size) MONO_INTERNAL;
+
+void* mono_sgen_alloc_internal (int type) MONO_INTERNAL;
+void mono_sgen_free_internal (void *addr, int type) MONO_INTERNAL;
+
+void* mono_sgen_alloc_internal_dynamic (size_t size, int type) MONO_INTERNAL;
+void mono_sgen_free_internal_dynamic (void *addr, size_t size, int type) MONO_INTERNAL;
+
+void* mono_sgen_alloc_internal_full (SgenInternalAllocator *allocator, size_t size, int type) MONO_INTERNAL;
+void mono_sgen_free_internal_full (SgenInternalAllocator *allocator, void *addr, size_t size, int type) MONO_INTERNAL;
+
+void mono_sgen_debug_printf (int level, const char *format, ...) MONO_INTERNAL;
+
+void mono_sgen_internal_scan_objects (SgenInternalAllocator *alc, IterateObjectCallbackFunc callback, void *callback_data) MONO_INTERNAL;
+void mono_sgen_internal_scan_pinned_objects (SgenInternalAllocator *alc, IterateObjectCallbackFunc callback, void *callback_data) MONO_INTERNAL;
+
+void** mono_sgen_find_optimized_pin_queue_area (void *start, void *end, int *num) MONO_INTERNAL;
+
+#endif /* __MONO_SGENGC_H__ */
queue->free_list = section->next;
} else {
/* Allocate a new section */
- section = get_internal_mem (sizeof (GrayQueueSection), INTERNAL_MEM_GRAY_QUEUE);
+ section = mono_sgen_alloc_internal (INTERNAL_MEM_GRAY_QUEUE);
}
section->end = 0;
static void
gray_object_free_queue_section (GrayQueueSection *section)
{
- free_internal_mem (section, INTERNAL_MEM_GRAY_QUEUE);
+ mono_sgen_free_internal (section, INTERNAL_MEM_GRAY_QUEUE);
}
static inline gboolean
int i;
g_assert (gray_object_queue_is_empty (queue));
- g_assert (sizeof (GrayQueueSection) < MAX_FREELIST_SIZE);
DEBUG (9, g_assert (queue->balance == 0));
/* Free the extra sections allocated during the last collection */
--- /dev/null
+/*
+ * sgen-gc.c: Simple generational GC.
+ *
+ * Author:
+ * Paolo Molaro (lupus@ximian.com)
+ *
+ * Copyright 2005-2010 Novell, Inc (http://www.novell.com)
+ *
+ * Thread start/stop adapted from Boehm's GC:
+ * Copyright (c) 1994 by Xerox Corporation. All rights reserved.
+ * Copyright (c) 1996 by Silicon Graphics. All rights reserved.
+ * Copyright (c) 1998 by Fergus Henderson. All rights reserved.
+ * Copyright (c) 2000-2004 by Hewlett-Packard Company. All rights reserved.
+ *
+ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
+ * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
+ *
+ * Permission is hereby granted to use or copy this program
+ * for any purpose, provided the above notices are retained on all copies.
+ * Permission to modify the code and to distribute modified code is granted,
+ * provided the above notices are retained, and a notice that the code was
+ * modified is included with the above copyright notice.
+ *
+ *
+ * Copyright 2001-2003 Ximian, Inc
+ * Copyright 2003-2010 Novell, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#ifdef HAVE_SGEN_GC
+
+#include "metadata/sgen-gc.h"
+
+/* Pinned objects are allocated in the LOS space if bigger than half a page
+ * or from freelists otherwise. We assume that pinned objects are relatively few
+ * and they have a slow dying speed (like interned strings, thread objects).
+ * As such they will be collected only at major collections.
+ * free lists are not global: when we need memory we allocate a PinnedChunk.
+ * Each pinned chunk is made of several pages, the first of wich is used
+ * internally for bookeeping (here think of a page as 4KB). The bookeeping
+ * includes the freelists vectors and info about the object size of each page
+ * in the pinned chunk. So, when needed, a free page is found in a pinned chunk,
+ * a size is assigned to it, the page is divided in the proper chunks and each
+ * chunk is added to the freelist. To not waste space, the remaining space in the
+ * first page is used as objects of size 16 or 32 (need to measure which are more
+ * common).
+ * We use this same structure to allocate memory used internally by the GC, so
+ * we never use malloc/free if we need to alloc during collection: the world is stopped
+ * and malloc/free will deadlock.
+ * When we want to iterate over pinned objects, we just scan a page at a time
+ * linearly according to the size of objects in the page: the next pointer used to link
+ * the items in the freelist uses the same word as the vtable. Since we keep freelists
+ * for each pinned chunk, if the word points outside the pinned chunk it means
+ * it is an object.
+ * We could avoid this expensive scanning in creative ways. We could have a policy
+ * of putting in the pinned space only objects we know about that have no struct fields
+ * with references and we can easily use a even expensive write barrier for them,
+ * since pointer writes on such objects should be rare.
+ * The best compromise is to just alloc interned strings and System.MonoType in them.
+ * It would be nice to allocate MonoThread in it, too: must check that we properly
+ * use write barriers so we don't have to do any expensive scanning of the whole pinned
+ * chunk list during minor collections. We can avoid it now because we alloc in it only
+ * reference-free objects.
+ */
+struct _SgenPinnedChunk {
+ SgenBlock block;
+ int num_pages;
+ int *page_sizes; /* a 0 means the page is still unused */
+ void **free_list;
+ SgenPinnedChunk *free_list_nexts [SGEN_INTERNAL_FREELIST_NUM_SLOTS];
+ void *start_data;
+ void *data [1]; /* page sizes and free lists are stored here */
+};
+
+#define PINNED_FIRST_SLOT_SIZE (sizeof (gpointer) * 4)
+#define MAX_FREELIST_SIZE 8192
+
+/* This is a fixed value used for pinned chunks, not the system pagesize */
+#define FREELIST_PAGESIZE (16*1024)
+
+/* keep each size a multiple of ALLOC_ALIGN */
+/* on 64 bit systems 8 is likely completely unused. */
+static const int freelist_sizes [] = {
+ 8, 16, 24, 32, 40, 48, 64, 80,
+ 96, 128, 160, 192, 224, 256, 320, 384,
+ 448, 512, 584, 680, 816, 1024, 1360, 2048,
+ 2336, 2728, 3272, 4096, 5456, 8192 };
+
+/*
+ * Slot indexes for the fixed INTERNAL_MEM_XXX types. -1 if that type
+ * is dynamic.
+ */
+static int fixed_type_freelist_slots [INTERNAL_MEM_MAX];
+
+static SgenInternalAllocator unmanaged_allocator;
+
+#define LARGE_INTERNAL_MEM_HEADER_MAGIC 0x7d289f3a
+
+typedef struct _LargeInternalMemHeader LargeInternalMemHeader;
+struct _LargeInternalMemHeader {
+ guint32 magic;
+ size_t size;
+ double data[0];
+};
+
+#ifdef SGEN_PARALLEL_MARK
+static LOCK_DECLARE (internal_allocator_mutex);
+#define LOCK_INTERNAL_ALLOCATOR pthread_mutex_lock (&internal_allocator_mutex)
+#define UNLOCK_INTERNAL_ALLOCATOR pthread_mutex_unlock (&internal_allocator_mutex)
+#else
+#define LOCK_INTERNAL_ALLOCATOR
+#define UNLOCK_INTERNAL_ALLOCATOR
+#endif
+
+static long long pinned_chunk_bytes_alloced = 0;
+static long long large_internal_bytes_alloced = 0;
+
+#ifdef HEAVY_STATISTICS
+static long long stat_internal_alloc = 0;
+#endif
+
+/*
+ * Debug reporting.
+ */
+static void
+report_pinned_chunk (SgenPinnedChunk *chunk, int seq) {
+ void **p;
+ int i, free_pages, num_free, free_mem;
+ free_pages = 0;
+ for (i = 0; i < chunk->num_pages; ++i) {
+ if (!chunk->page_sizes [i])
+ free_pages++;
+ }
+ printf ("Pinned chunk %d at %p, size: %d, pages: %d, free: %d\n", seq, chunk, chunk->num_pages * FREELIST_PAGESIZE, chunk->num_pages, free_pages);
+ free_mem = FREELIST_PAGESIZE * free_pages;
+ for (i = 0; i < SGEN_INTERNAL_FREELIST_NUM_SLOTS; ++i) {
+ if (!chunk->free_list [i])
+ continue;
+ num_free = 0;
+ p = chunk->free_list [i];
+ while (p) {
+ num_free++;
+ p = *p;
+ }
+ printf ("\tfree list of size %d, %d items\n", freelist_sizes [i], num_free);
+ free_mem += freelist_sizes [i] * num_free;
+ }
+ printf ("\tfree memory in chunk: %d\n", free_mem);
+}
+
+/*
+ * Debug reporting.
+ */
+void
+mono_sgen_report_internal_mem_usage_full (SgenInternalAllocator *alc)
+{
+ SgenPinnedChunk *chunk;
+ int i = 0;
+ for (chunk = alc->chunk_list; chunk; chunk = chunk->block.next)
+ report_pinned_chunk (chunk, i++);
+}
+
+void
+mono_sgen_report_internal_mem_usage (void)
+{
+ mono_sgen_report_internal_mem_usage_full (&unmanaged_allocator);
+}
+
+/*
+ * Find the slot number in the freelist for memory chunks that
+ * can contain @size objects.
+ */
+static int
+slot_for_size (size_t size)
+{
+ int slot;
+ /* do a binary search or lookup table later. */
+ for (slot = 0; slot < SGEN_INTERNAL_FREELIST_NUM_SLOTS; ++slot) {
+ if (freelist_sizes [slot] >= size)
+ return slot;
+ }
+ g_assert_not_reached ();
+ return -1;
+}
+
+void
+mono_sgen_register_fixed_internal_mem_type (int type, size_t size)
+{
+ int slot;
+
+ g_assert (type >= 0 && type < INTERNAL_MEM_MAX);
+ g_assert (fixed_type_freelist_slots [type] == -1);
+
+ slot = slot_for_size (size);
+ g_assert (slot >= 0);
+
+ fixed_type_freelist_slots [type] = slot;
+}
+
+/*
+ * Build a free list for @size memory chunks from the memory area between
+ * start_page and end_page.
+ */
+static void
+build_freelist (SgenInternalAllocator *alc, SgenPinnedChunk *chunk, int slot, int size, char *start_page, char *end_page)
+{
+ void **p, **end;
+ int count = 0;
+ /*g_print ("building freelist for slot %d, size %d in %p\n", slot, size, chunk);*/
+ p = (void**)start_page;
+ end = (void**)(end_page - size);
+ g_assert (!chunk->free_list [slot]);
+ chunk->free_list [slot] = p;
+ while ((char*)p + size <= (char*)end) {
+ count++;
+ *p = (void*)((char*)p + size);
+ p = *p;
+ }
+ *p = NULL;
+ /*g_print ("%d items created, max: %d\n", count, (end_page - start_page) / size);*/
+
+ g_assert (!chunk->free_list_nexts [slot]);
+ chunk->free_list_nexts [slot] = alc->free_lists [slot];
+ alc->free_lists [slot] = chunk;
+}
+
+/* LOCKING: if !managed, requires the internal allocator lock to be held */
+static SgenPinnedChunk*
+alloc_pinned_chunk (SgenInternalAllocator *alc, gboolean managed)
+{
+ SgenPinnedChunk *chunk;
+ int offset;
+ int size = SGEN_PINNED_CHUNK_SIZE;
+
+ if (managed)
+ LOCK_INTERNAL_ALLOCATOR;
+
+ chunk = mono_sgen_alloc_os_memory_aligned (size, size, TRUE);
+ chunk->block.role = managed ? MEMORY_ROLE_PINNED : MEMORY_ROLE_INTERNAL;
+
+ if (managed)
+ mono_sgen_update_heap_boundaries ((mword)chunk, ((mword)chunk + size));
+
+ pinned_chunk_bytes_alloced += size;
+
+ /* setup the bookeeping fields */
+ chunk->num_pages = size / FREELIST_PAGESIZE;
+ offset = G_STRUCT_OFFSET (SgenPinnedChunk, data);
+ chunk->page_sizes = (void*)((char*)chunk + offset);
+ offset += sizeof (int) * chunk->num_pages;
+ offset = SGEN_ALIGN_UP (offset);
+ chunk->free_list = (void*)((char*)chunk + offset);
+ offset += sizeof (void*) * SGEN_INTERNAL_FREELIST_NUM_SLOTS;
+ offset = SGEN_ALIGN_UP (offset);
+ chunk->start_data = (void*)((char*)chunk + offset);
+
+ /* allocate the first page to the freelist */
+ chunk->page_sizes [0] = PINNED_FIRST_SLOT_SIZE;
+ build_freelist (alc, chunk, slot_for_size (PINNED_FIRST_SLOT_SIZE), PINNED_FIRST_SLOT_SIZE,
+ chunk->start_data, ((char*)chunk + FREELIST_PAGESIZE));
+ mono_sgen_debug_printf (4, "Allocated pinned chunk %p, size: %d\n", chunk, size);
+
+ chunk->block.next = alc->chunk_list;
+ alc->chunk_list = chunk;
+
+ if (managed)
+ UNLOCK_INTERNAL_ALLOCATOR;
+
+ return chunk;
+}
+
+/* Must be called with an empty freelist for the given slot. */
+static gboolean
+populate_chunk_page (SgenInternalAllocator *alc, SgenPinnedChunk *chunk, int slot)
+{
+ int size = freelist_sizes [slot];
+ int i;
+ g_assert (!chunk->free_list [slot]);
+ g_assert (!chunk->free_list_nexts [slot]);
+ for (i = 0; i < chunk->num_pages; ++i) {
+ if (chunk->page_sizes [i])
+ continue;
+ chunk->page_sizes [i] = size;
+ build_freelist (alc, chunk, slot, size, (char*)chunk + FREELIST_PAGESIZE * i, (char*)chunk + FREELIST_PAGESIZE * (i + 1));
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/* LOCKING: assumes the internal allocator lock is held */
+static void*
+alloc_from_slot (SgenInternalAllocator *alc, int slot, int type)
+{
+ SgenPinnedChunk *pchunk;
+ size_t size = freelist_sizes [slot];
+
+ alc->small_internal_mem_bytes [type] += size;
+
+ restart:
+ pchunk = alc->free_lists [slot];
+ if (pchunk) {
+ void **p = pchunk->free_list [slot];
+ void *next;
+
+ g_assert (p);
+
+ next = *p;
+ pchunk->free_list [slot] = next;
+
+ if (!next) {
+ alc->free_lists [slot] = pchunk->free_list_nexts [slot];
+ pchunk->free_list_nexts [slot] = NULL;
+ }
+
+ memset (p, 0, size);
+ return p;
+ }
+
+ for (pchunk = alc->chunk_list; pchunk; pchunk = pchunk->block.next) {
+ if (populate_chunk_page (alc, pchunk, slot))
+ goto restart;
+ }
+
+ pchunk = alloc_pinned_chunk (alc, type == INTERNAL_MEM_MANAGED);
+ /* FIXME: handle OOM */
+ if (pchunk->free_list [slot])
+ goto restart;
+ if (!populate_chunk_page (alc, pchunk, slot))
+ g_assert_not_reached ();
+ goto restart;
+}
+
+/* used for the GC-internal data structures */
+void*
+mono_sgen_alloc_internal_full (SgenInternalAllocator *alc, size_t size, int type)
+{
+ int slot;
+ void *res = NULL;
+
+ g_assert (fixed_type_freelist_slots [type] == -1);
+
+ LOCK_INTERNAL_ALLOCATOR;
+
+ HEAVY_STAT (++stat_internal_alloc);
+
+ if (size > freelist_sizes [SGEN_INTERNAL_FREELIST_NUM_SLOTS - 1]) {
+ LargeInternalMemHeader *mh;
+
+ UNLOCK_INTERNAL_ALLOCATOR;
+
+ size += sizeof (LargeInternalMemHeader);
+ mh = mono_sgen_alloc_os_memory (size, TRUE);
+ mh->magic = LARGE_INTERNAL_MEM_HEADER_MAGIC;
+ mh->size = size;
+ /* FIXME: do a CAS here */
+ large_internal_bytes_alloced += size;
+ return mh->data;
+ }
+
+ slot = slot_for_size (size);
+ g_assert (size <= freelist_sizes [slot]);
+ res = alloc_from_slot (alc, slot, type);
+
+ UNLOCK_INTERNAL_ALLOCATOR;
+
+ return res;
+}
+
+void*
+mono_sgen_alloc_internal (int type)
+{
+ void *res;
+ int slot = fixed_type_freelist_slots [type];
+ g_assert (slot >= 0);
+
+ LOCK_INTERNAL_ALLOCATOR;
+ res = alloc_from_slot (&unmanaged_allocator, slot, type);
+ UNLOCK_INTERNAL_ALLOCATOR;
+
+ return res;
+}
+
+void*
+mono_sgen_alloc_internal_dynamic (size_t size, int type)
+{
+ return mono_sgen_alloc_internal_full (&unmanaged_allocator, size, type);
+}
+
+static void
+free_from_slot (SgenInternalAllocator *alc, void *addr, int slot, int type)
+{
+ SgenPinnedChunk *pchunk = (SgenPinnedChunk*)SGEN_PINNED_CHUNK_FOR_PTR (addr);
+ void **p = addr;
+ void *next;
+
+ LOCK_INTERNAL_ALLOCATOR;
+
+ g_assert (addr >= (void*)pchunk && (char*)addr < (char*)pchunk + pchunk->num_pages * FREELIST_PAGESIZE);
+ if (type == INTERNAL_MEM_MANAGED)
+ g_assert (pchunk->block.role == MEMORY_ROLE_PINNED);
+ else
+ g_assert (pchunk->block.role == MEMORY_ROLE_INTERNAL);
+
+ next = pchunk->free_list [slot];
+ *p = next;
+ pchunk->free_list [slot] = p;
+
+ if (!next) {
+ g_assert (!pchunk->free_list_nexts [slot]);
+ pchunk->free_list_nexts [slot] = alc->free_lists [slot];
+ alc->free_lists [slot] = pchunk;
+ }
+
+ alc->small_internal_mem_bytes [type] -= freelist_sizes [slot];
+
+ UNLOCK_INTERNAL_ALLOCATOR;
+}
+
+void
+mono_sgen_free_internal_full (SgenInternalAllocator *alc, void *addr, size_t size, int type)
+{
+ LargeInternalMemHeader *mh;
+
+ g_assert (fixed_type_freelist_slots [type] == -1);
+
+ if (!addr)
+ return;
+
+ if (size <= freelist_sizes [SGEN_INTERNAL_FREELIST_NUM_SLOTS - 1]) {
+ int slot = slot_for_size (size);
+ free_from_slot (alc, addr, slot, type);
+ return;
+ }
+
+ mh = (LargeInternalMemHeader*)((char*)addr - G_STRUCT_OFFSET (LargeInternalMemHeader, data));
+ g_assert (mh->magic == LARGE_INTERNAL_MEM_HEADER_MAGIC);
+ g_assert (mh->size == size + sizeof (LargeInternalMemHeader));
+ /* FIXME: do a CAS */
+ large_internal_bytes_alloced -= mh->size;
+ mono_sgen_free_os_memory (mh, mh->size);
+}
+
+void
+mono_sgen_free_internal (void *addr, int type)
+{
+ int slot = fixed_type_freelist_slots [type];
+ g_assert (slot >= 0);
+
+ free_from_slot (&unmanaged_allocator, addr, slot, type);
+}
+
+void
+mono_sgen_free_internal_dynamic (void *addr, size_t size, int type)
+{
+ mono_sgen_free_internal_full (&unmanaged_allocator, addr, size, type);
+}
+
+void
+mono_sgen_dump_internal_mem_usage (FILE *heap_dump_file)
+{
+ static char const *internal_mem_names [] = { "managed", "pin-queue", "fragment", "section", "scan-starts",
+ "fin-table", "finalize-entry", "dislink-table",
+ "dislink", "roots-table", "root-record", "statistics",
+ "remset", "gray-queue", "store-remset", "marksweep-tables",
+ "marksweep-block-info", "ephemeron-link" };
+
+ int i;
+
+ fprintf (heap_dump_file, "<other-mem-usage type=\"large-internal\" size=\"%lld\"/>\n", large_internal_bytes_alloced);
+ fprintf (heap_dump_file, "<other-mem-usage type=\"pinned-chunks\" size=\"%lld\"/>\n", pinned_chunk_bytes_alloced);
+ for (i = 0; i < INTERNAL_MEM_MAX; ++i) {
+ fprintf (heap_dump_file, "<other-mem-usage type=\"%s\" size=\"%ld\"/>\n",
+ internal_mem_names [i], unmanaged_allocator.small_internal_mem_bytes [i]);
+ }
+}
+
+void
+mono_sgen_init_internal_allocator (void)
+{
+ int i;
+
+ g_assert (SGEN_INTERNAL_FREELIST_NUM_SLOTS == sizeof (freelist_sizes) / sizeof (freelist_sizes [0]));
+
+ for (i = 0; i < INTERNAL_MEM_MAX; ++i)
+ fixed_type_freelist_slots [i] = -1;
+
+#ifdef HEAVY_STATISTICS
+ mono_counters_register ("Internal allocs", MONO_COUNTER_GC | MONO_COUNTER_LONG, &stat_internal_alloc);
+#endif
+}
+
+void
+mono_sgen_internal_scan_objects (SgenInternalAllocator *alc, IterateObjectCallbackFunc callback, void *callback_data)
+{
+ SgenPinnedChunk *chunk;
+ int i, obj_size;
+ char *p, *endp;
+ void **ptr;
+ void *end_chunk;
+ for (chunk = alc->chunk_list; chunk; chunk = chunk->block.next) {
+ end_chunk = (char*)chunk + chunk->num_pages * FREELIST_PAGESIZE;
+ mono_sgen_debug_printf (6, "Scanning pinned chunk %p (range: %p-%p)\n", chunk, chunk->start_data, end_chunk);
+ for (i = 0; i < chunk->num_pages; ++i) {
+ obj_size = chunk->page_sizes [i];
+ if (!obj_size)
+ continue;
+ p = i? (char*)chunk + i * FREELIST_PAGESIZE: chunk->start_data;
+ endp = i? p + FREELIST_PAGESIZE: (char*)chunk + FREELIST_PAGESIZE;
+ mono_sgen_debug_printf (6, "Page %d (size: %d, range: %p-%p)\n", i, obj_size, p, endp);
+ while (p + obj_size <= endp) {
+ ptr = (void**)p;
+ /* if the first word (the vtable) is outside the chunk we have an object */
+ if (*ptr && (*ptr < (void*)chunk || *ptr >= end_chunk))
+ callback ((char*)ptr, obj_size, callback_data);
+ p += obj_size;
+ }
+ }
+ }
+}
+
+/*
+ * the array of pointers from @start to @end contains conservative
+ * pointers to objects inside @chunk: mark each referenced object
+ * with the PIN bit.
+ */
+static void
+mark_pinned_from_addresses (SgenPinnedChunk *chunk, void **start, void **end, IterateObjectCallbackFunc callback, void *callback_data)
+{
+ for (; start < end; start++) {
+ char *addr = *start;
+ int offset = (char*)addr - (char*)chunk;
+ int page = offset / FREELIST_PAGESIZE;
+ int obj_offset = page == 0? offset - ((char*)chunk->start_data - (char*)chunk): offset % FREELIST_PAGESIZE;
+ int slot_size = chunk->page_sizes [page];
+ void **ptr;
+ /* the page is not allocated */
+ if (!slot_size)
+ continue;
+ /* would be faster if we restrict the sizes to power of two,
+ * but that's a waste of memory: need to measure. it could reduce
+ * fragmentation since there are less pages needed, if for example
+ * someone interns strings of each size we end up with one page per
+ * interned string (still this is just ~40 KB): with more fine-grained sizes
+ * this increases the number of used pages.
+ */
+ if (page == 0) {
+ obj_offset /= slot_size;
+ obj_offset *= slot_size;
+ addr = (char*)chunk->start_data + obj_offset;
+ } else {
+ obj_offset /= slot_size;
+ obj_offset *= slot_size;
+ addr = (char*)chunk + page * FREELIST_PAGESIZE + obj_offset;
+ }
+ ptr = (void**)addr;
+ /* if the vtable is inside the chunk it's on the freelist, so skip */
+ /* FIXME: is it possible that we're pinning objects more than once here? */
+ if (*ptr && (*ptr < (void*)chunk->start_data || *ptr > (void*)((char*)chunk + chunk->num_pages * FREELIST_PAGESIZE)))
+ callback (addr, slot_size, callback_data);
+ }
+}
+
+void
+mono_sgen_internal_scan_pinned_objects (SgenInternalAllocator *alc, IterateObjectCallbackFunc callback, void *callback_data)
+{
+ SgenPinnedChunk *chunk;
+
+ /* look for pinned addresses for pinned-alloc objects */
+ mono_sgen_debug_printf (6, "Pinning from pinned-alloc objects\n");
+ for (chunk = alc->chunk_list; chunk; chunk = chunk->block.next) {
+ int num_pinned;
+ void **pinned = mono_sgen_find_optimized_pin_queue_area (chunk->start_data,
+ (char*)chunk + chunk->num_pages * FREELIST_PAGESIZE, &num_pinned);
+ if (num_pinned)
+ mark_pinned_from_addresses (chunk, pinned, pinned + num_pinned, callback, callback_data);
+ }
+}
+
+#endif
if (free_chunks)
return (LOSObject*)free_chunks;
- section = get_os_memory_aligned (LOS_SECTION_SIZE, LOS_SECTION_SIZE, TRUE);
-
- total_alloc += LOS_SECTION_SIZE;
+ section = mono_sgen_alloc_os_memory_aligned (LOS_SECTION_SIZE, LOS_SECTION_SIZE, TRUE);
free_chunks = (LOSFreeChunks*)((char*)section + LOS_CHUNK_SIZE);
free_chunks->size = LOS_SECTION_SIZE - LOS_CHUNK_SIZE;
size += sizeof (LOSObject);
size += pagesize - 1;
size &= ~(pagesize - 1);
- total_alloc -= size;
- free_os_memory (obj, size);
+ mono_sgen_free_os_memory (obj, size);
} else {
free_los_section_memory (obj, size + sizeof (LOSObject));
#ifdef LOS_CONSISTENCY_CHECKS
#ifdef LOS_DUMMY
if (!los_segment)
- los_segment = get_os_memory (LOS_SEGMENT_SIZE, TRUE);
+ los_segment = mono_sgen_alloc_os_memory (LOS_SEGMENT_SIZE, TRUE);
los_segment_index = ALIGN_UP (los_segment_index);
obj = (LOSObject*)(los_segment + los_segment_index);
alloc_size += pagesize - 1;
alloc_size &= ~(pagesize - 1);
/* FIXME: handle OOM */
- obj = get_os_memory (alloc_size, TRUE);
- total_alloc += alloc_size;
+ obj = mono_sgen_alloc_os_memory (alloc_size, TRUE);
} else {
obj = get_los_section_memory (size + sizeof (LOSObject));
memset (obj, 0, size + sizeof (LOSObject));
obj->size = size;
vtslot = (void**)obj->data;
*vtslot = vtable;
- update_heap_boundaries ((mword)obj->data, (mword)obj->data + size);
+ mono_sgen_update_heap_boundaries ((mword)obj->data, (mword)obj->data + size);
obj->next = los_object_list;
los_object_list = obj;
los_memory_usage += size;
prev->next = next;
else
los_sections = next;
- free_os_memory (section, LOS_SECTION_SIZE);
+ mono_sgen_free_os_memory (section, LOS_SECTION_SIZE);
section = next;
--los_num_sections;
continue;
#error Parallel mark not supported in copying major collector
#endif
-#define MAJOR_SECTION_SIZE PINNED_CHUNK_SIZE
-#define BLOCK_FOR_OBJECT(o) ((Block*)(((mword)(o)) & ~(MAJOR_SECTION_SIZE - 1)))
+#define MAJOR_SECTION_SIZE SGEN_PINNED_CHUNK_SIZE
+#define BLOCK_FOR_OBJECT(o) SGEN_PINNED_CHUNK_FOR_PTR ((o))
#define MAJOR_SECTION_FOR_OBJECT(o) ((GCMemSection*)BLOCK_FOR_OBJECT ((o)))
#define MAJOR_OBJ_IS_IN_TO_SPACE(o) (MAJOR_SECTION_FOR_OBJECT ((o))->is_to_space)
static GCMemSection *section_list = NULL;
-/* pinned_chunk_list is used for allocations of objects that are never moved */
-static PinnedChunk *pinned_chunk_list = NULL;
+static SgenInternalAllocator pinned_allocator;
/*
* used when moving the objects
static void
free_pinned_object (char *obj, size_t size)
{
- PinnedChunk *chunk = (PinnedChunk*) BLOCK_FOR_OBJECT (obj);
- void **p = (void**)obj;
- int slot = slot_for_size (size);
-
- g_assert (obj >= (char*)chunk->start_data && obj < ((char*)chunk + chunk->num_pages * FREELIST_PAGESIZE));
- *p = chunk->free_list [slot];
- chunk->free_list [slot] = p;
+ mono_sgen_free_internal_full (&pinned_allocator, obj, size, INTERNAL_MEM_MANAGED);
}
/*
GCMemSection *section;
int scan_starts;
- section = get_os_memory_aligned (MAJOR_SECTION_SIZE, MAJOR_SECTION_SIZE, TRUE);
+ section = mono_sgen_alloc_os_memory_aligned (MAJOR_SECTION_SIZE, MAJOR_SECTION_SIZE, TRUE);
section->next_data = section->data = (char*)section + SIZEOF_GC_MEM_SECTION;
g_assert (!((mword)section->data & 7));
section->size = MAJOR_SECTION_SIZE - SIZEOF_GC_MEM_SECTION;
section->end_data = section->data + section->size;
- update_heap_boundaries (section->data, section->end_data);
- total_alloc += section->size;
+ mono_sgen_update_heap_boundaries ((mword)section->data, (mword)section->end_data);
DEBUG (3, fprintf (gc_debug_file, "New major heap section: (%p-%p), total: %zd\n", section->data, section->end_data, total_alloc));
scan_starts = (section->size + SCAN_START_SIZE - 1) / SCAN_START_SIZE;
- section->scan_starts = get_internal_mem (sizeof (char*) * scan_starts, INTERNAL_MEM_SCAN_STARTS);
+ section->scan_starts = mono_sgen_alloc_internal_dynamic (sizeof (char*) * scan_starts, INTERNAL_MEM_SCAN_STARTS);
section->num_scan_start = scan_starts;
section->block.role = MEMORY_ROLE_GEN1;
section->is_to_space = TRUE;
free_major_section (GCMemSection *section)
{
DEBUG (3, fprintf (gc_debug_file, "Freed major section %p (%p-%p)\n", section, section->data, section->end_data));
- free_internal_mem (section->scan_starts, INTERNAL_MEM_SCAN_STARTS);
- free_os_memory (section, MAJOR_SECTION_SIZE);
- total_alloc -= MAJOR_SECTION_SIZE - SIZEOF_GC_MEM_SECTION;
+ mono_sgen_free_internal_dynamic (section->scan_starts,
+ (section->size + SCAN_START_SIZE - 1) / SCAN_START_SIZE * sizeof (char*), INTERNAL_MEM_SCAN_STARTS);
+ mono_sgen_free_os_memory (section, MAJOR_SECTION_SIZE);
--num_major_sections;
}
if (ptr_in_nursery (obj))
return FALSE;
- objsize = ALIGN_UP (safe_object_get_size ((MonoObject*)obj));
+ objsize = SGEN_ALIGN_UP (safe_object_get_size ((MonoObject*)obj));
/* LOS */
if (objsize > MAX_SMALL_OBJ_SIZE)
static void*
major_alloc_small_pinned_obj (size_t size, gboolean has_references)
{
- int slot;
- void *res = NULL;
- PinnedChunk *pchunk;
- slot = slot_for_size (size);
- /*g_print ("using slot %d for size %d (slot size: %d)\n", slot, size, freelist_sizes [slot]);*/
- g_assert (size <= freelist_sizes [slot]);
- for (pchunk = pinned_chunk_list; pchunk; pchunk = pchunk->block.next) {
- void **p = pchunk->free_list [slot];
- if (p) {
- /*g_print ("found freelist for slot %d in chunk %p, returning %p, next %p\n", slot, pchunk, p, *p);*/
- pchunk->free_list [slot] = *p;
- res = p;
- goto found;
- }
- }
- for (pchunk = pinned_chunk_list; pchunk; pchunk = pchunk->block.next) {
- res = get_chunk_freelist (pchunk, slot);
- if (res)
- goto found;
- }
- LOCK_INTERNAL_ALLOCATOR;
- pchunk = alloc_pinned_chunk ();
- UNLOCK_INTERNAL_ALLOCATOR;
- /* FIXME: handle OOM */
- pchunk->block.next = pinned_chunk_list;
- pinned_chunk_list = pchunk;
- res = get_chunk_freelist (pchunk, slot);
- found:
- memset (res, 0, size);
- return res;
+ return mono_sgen_alloc_internal_full (&pinned_allocator, size, INTERNAL_MEM_MANAGED);
}
/*
* see whether it's a pinned chunk or a major heap section.
*/
- objsize = ALIGN_UP (safe_object_get_size ((MonoObject*)obj));
+ objsize = SGEN_ALIGN_UP (safe_object_get_size ((MonoObject*)obj));
if (G_UNLIKELY (objsize > MAX_SMALL_OBJ_SIZE || obj_is_from_pinned_alloc (obj))) {
if (object_is_pinned (obj))
binary_protocol_empty (frag_start, frag_size);
memset (frag_start, 0, frag_size);
}
- frag_size = ALIGN_UP (safe_object_get_size ((MonoObject*)pin_queue [i]));
+ frag_size = SGEN_ALIGN_UP (safe_object_get_size ((MonoObject*)pin_queue [i]));
frag_start = (char*)pin_queue [i] + frag_size;
section->next_data = MAX (section->next_data, frag_start);
}
}
}
-static void
-scan_pinned_objects (IterateObjectCallbackFunc callback, void *callback_data)
-{
- PinnedChunk *chunk;
- int i, obj_size;
- char *p, *endp;
- void **ptr;
- void *end_chunk;
- for (chunk = pinned_chunk_list; chunk; chunk = chunk->block.next) {
- end_chunk = (char*)chunk + chunk->num_pages * FREELIST_PAGESIZE;
- DEBUG (6, fprintf (gc_debug_file, "Scanning pinned chunk %p (range: %p-%p)\n", chunk, chunk->start_data, end_chunk));
- for (i = 0; i < chunk->num_pages; ++i) {
- obj_size = chunk->page_sizes [i];
- if (!obj_size)
- continue;
- p = i? (char*)chunk + i * FREELIST_PAGESIZE: chunk->start_data;
- endp = i? p + FREELIST_PAGESIZE: (char*)chunk + FREELIST_PAGESIZE;
- DEBUG (6, fprintf (gc_debug_file, "Page %d (size: %d, range: %p-%p)\n", i, obj_size, p, endp));
- while (p + obj_size <= endp) {
- ptr = (void**)p;
- DEBUG (9, fprintf (gc_debug_file, "Considering %p (vtable: %p)\n", ptr, *ptr));
- /* if the first word (the vtable) is outside the chunk we have an object */
- if (*ptr && (*ptr < (void*)chunk || *ptr >= end_chunk))
- callback ((char*)ptr, obj_size, callback_data);
- p += obj_size;
- }
- }
- }
-}
-
-/*
- * the array of pointers from @start to @end contains conservative
- * pointers to objects inside @chunk: mark each referenced object
- * with the PIN bit.
- */
-static void
-mark_pinned_from_addresses (PinnedChunk *chunk, void **start, void **end, GrayQueue *queue)
-{
- for (; start < end; start++) {
- char *addr = *start;
- int offset = (char*)addr - (char*)chunk;
- int page = offset / FREELIST_PAGESIZE;
- int obj_offset = page == 0? offset - ((char*)chunk->start_data - (char*)chunk): offset % FREELIST_PAGESIZE;
- int slot_size = chunk->page_sizes [page];
- void **ptr;
- /* the page is not allocated */
- if (!slot_size)
- continue;
- /* would be faster if we restrict the sizes to power of two,
- * but that's a waste of memory: need to measure. it could reduce
- * fragmentation since there are less pages needed, if for example
- * someone interns strings of each size we end up with one page per
- * interned string (still this is just ~40 KB): with more fine-grained sizes
- * this increases the number of used pages.
- */
- if (page == 0) {
- obj_offset /= slot_size;
- obj_offset *= slot_size;
- addr = (char*)chunk->start_data + obj_offset;
- } else {
- obj_offset /= slot_size;
- obj_offset *= slot_size;
- addr = (char*)chunk + page * FREELIST_PAGESIZE + obj_offset;
- }
- ptr = (void**)addr;
- /* if the vtable is inside the chunk it's on the freelist, so skip */
- if (*ptr && (*ptr < (void*)chunk->start_data || *ptr > (void*)((char*)chunk + chunk->num_pages * FREELIST_PAGESIZE))) {
- binary_protocol_pin (addr, (gpointer)LOAD_VTABLE (addr), safe_object_get_size ((MonoObject*)addr));
- if (heap_dump_file && !object_is_pinned (addr))
- pin_stats_register_object ((char*) addr, safe_object_get_size ((MonoObject*) addr));
- pin_object (addr);
- GRAY_OBJECT_ENQUEUE (queue, addr);
- DEBUG (6, fprintf (gc_debug_file, "Marked pinned object %p (%s) from roots\n", addr, safe_name (addr)));
- }
- }
-}
-
static void
sweep_pinned_objects_callback (char *ptr, size_t size, void *data)
{
static void
sweep_pinned_objects (void)
{
- scan_pinned_objects (sweep_pinned_objects_callback, NULL);
+ mono_sgen_internal_scan_objects (&pinned_allocator, sweep_pinned_objects_callback, NULL);
}
static void
scan_area_with_callback (section->data, section->end_data, callback, data);
}
if (pinned)
- scan_pinned_objects (callback, data);
+ mono_sgen_internal_scan_objects (&pinned_allocator, callback, data);
}
static void
memset (obj, 0, size);
}
+static void
+pin_pinned_object_callback (void *addr, size_t slot_size, GrayQueue *queue)
+{
+ binary_protocol_pin (addr, (gpointer)LOAD_VTABLE (addr), safe_object_get_size ((MonoObject*)addr));
+ if (heap_dump_file && !object_is_pinned (addr))
+ pin_stats_register_object ((char*) addr, safe_object_get_size ((MonoObject*) addr));
+ pin_object (addr);
+ GRAY_OBJECT_ENQUEUE (queue, addr);
+ DEBUG (6, fprintf (gc_debug_file, "Marked pinned object %p (%s) from roots\n", addr, safe_name (addr)));
+}
+
static void
major_find_pin_queue_start_ends (GrayQueue *queue)
{
GCMemSection *section;
- PinnedChunk *chunk;
for (section = section_list; section; section = section->block.next)
find_section_pin_queue_start_end (section);
-
- /* look for pinned addresses for pinned-alloc objects */
- DEBUG (6, fprintf (gc_debug_file, "Pinning from pinned-alloc objects\n"));
- for (chunk = pinned_chunk_list; chunk; chunk = chunk->block.next) {
- int start, end;
- find_optimized_pin_queue_area (chunk->start_data, (char*)chunk + chunk->num_pages * FREELIST_PAGESIZE, &start, &end);
- if (start != end)
- mark_pinned_from_addresses (chunk, pin_queue + start, pin_queue + end, queue);
- }
+ mono_sgen_internal_scan_pinned_objects (&pinned_allocator, (IterateObjectCallbackFunc)pin_pinned_object_callback, queue);
}
static void
static void
major_report_pinned_memory_usage (void)
{
- PinnedChunk *chunk;
- int i = 0;
- for (chunk = pinned_chunk_list; chunk; chunk = chunk->block.next)
- report_pinned_chunk (chunk, i++);
+ mono_sgen_report_internal_mem_usage_full (&pinned_allocator);
}
retry:
if (!empty_blocks) {
- p = get_os_memory_aligned (MS_BLOCK_SIZE * MS_BLOCK_ALLOC_NUM, MS_BLOCK_SIZE, TRUE);
+ p = mono_sgen_alloc_os_memory_aligned (MS_BLOCK_SIZE * MS_BLOCK_ALLOC_NUM, MS_BLOCK_SIZE, TRUE);
for (i = 0; i < MS_BLOCK_ALLOC_NUM; ++i) {
block = p;
g_assert (!((mword)block & (MS_BLOCK_SIZE - 1)));
- update_heap_boundaries ((mword)block, (mword)block + MS_BLOCK_SIZE);
+ mono_sgen_update_heap_boundaries ((mword)block, (mword)block + MS_BLOCK_SIZE);
return block;
}
{
int size = block_obj_sizes [size_index];
int count = MS_BLOCK_FREE / size;
- MSBlockInfo *info = get_internal_mem (sizeof (MSBlockInfo), INTERNAL_MEM_MS_BLOCK_INFO);
+ MSBlockInfo *info = mono_sgen_alloc_internal (INTERNAL_MEM_MS_BLOCK_INFO);
MSBlockHeader *header;
MSBlockInfo **free_blocks = FREE_BLOCKS (pinned, has_references);
char *obj_start;
*iter = block->next;
ms_free_block (block->block);
- free_internal_mem (block, INTERNAL_MEM_MS_BLOCK_INFO);
+ mono_sgen_free_internal (block, INTERNAL_MEM_MS_BLOCK_INFO);
--num_major_sections;
}
{
int i;
+ mono_sgen_register_fixed_internal_mem_type (INTERNAL_MEM_MS_BLOCK_INFO, sizeof (MSBlockInfo));
+
num_block_obj_sizes = ms_calculate_block_obj_sizes (MS_BLOCK_OBJ_SIZE_FACTOR, NULL);
- block_obj_sizes = get_internal_mem (sizeof (int) * num_block_obj_sizes, INTERNAL_MEM_MS_TABLES);
+ block_obj_sizes = mono_sgen_alloc_internal_dynamic (sizeof (int) * num_block_obj_sizes, INTERNAL_MEM_MS_TABLES);
ms_calculate_block_obj_sizes (MS_BLOCK_OBJ_SIZE_FACTOR, block_obj_sizes);
/*
*/
for (i = 0; i < MS_BLOCK_TYPE_MAX; ++i)
- free_block_lists [i] = get_internal_mem (sizeof (MSBlockInfo*) * num_block_obj_sizes, INTERNAL_MEM_MS_TABLES);
+ free_block_lists [i] = mono_sgen_alloc_internal_dynamic (sizeof (MSBlockInfo*) * num_block_obj_sizes, INTERNAL_MEM_MS_TABLES);
for (i = 0; i < MS_NUM_FAST_BLOCK_OBJ_SIZE_INDEXES; ++i)
fast_block_obj_size_indexes [i] = ms_find_block_obj_size_index (i * 8);
while (num_empty_blocks > section_reserve) {
void *next = *(void**)empty_blocks;
- free_os_memory (empty_blocks, MS_BLOCK_SIZE);
+ mono_sgen_free_os_memory (empty_blocks, MS_BLOCK_SIZE);
empty_blocks = next;
/*
* Needs not be atomic because this is running
return;
pin_stats_tree_free (node->left);
pin_stats_tree_free (node->right);
- free_internal_mem (node, INTERNAL_MEM_STATISTICS);
+ mono_sgen_free_internal_dynamic (node, sizeof (PinStatAddress), INTERNAL_MEM_STATISTICS);
}
static void
pinned_byte_counts [i] = 0;
while (pinned_objects) {
ObjectList *next = pinned_objects->next;
- free_internal_mem (pinned_objects, INTERNAL_MEM_STATISTICS);
+ mono_sgen_free_internal_dynamic (pinned_objects, sizeof (ObjectList), INTERNAL_MEM_STATISTICS);
pinned_objects = next;
}
}
node_ptr = &node->right;
}
- node = get_internal_mem (sizeof (PinStatAddress), INTERNAL_MEM_STATISTICS);
+ node = mono_sgen_alloc_internal_dynamic (sizeof (PinStatAddress), INTERNAL_MEM_STATISTICS);
node->addr = addr;
node->pin_types = pin_type_bit;
node->left = node->right = NULL;
pin_stats_register_object (char *obj, size_t size)
{
int pin_types = 0;
- ObjectList *list = get_internal_mem (sizeof (ObjectList), INTERNAL_MEM_STATISTICS);
+ ObjectList *list = mono_sgen_alloc_internal_dynamic (sizeof (ObjectList), INTERNAL_MEM_STATISTICS);
pin_stats_count_object_from_tree (obj, size, pin_stat_addresses, &pin_types);
list->obj = (MonoObject*)obj;
list->next = pinned_objects;
realloc_pin_queue (void)
{
int new_size = pin_queue_size? pin_queue_size + pin_queue_size/2: 1024;
- void **new_pin = get_internal_mem (sizeof (void*) * new_size, INTERNAL_MEM_PIN_QUEUE);
+ void **new_pin = mono_sgen_alloc_internal_dynamic (sizeof (void*) * new_size, INTERNAL_MEM_PIN_QUEUE);
memcpy (new_pin, pin_queue, sizeof (void*) * next_pin_slot);
- free_internal_mem (pin_queue, INTERNAL_MEM_PIN_QUEUE);
+ mono_sgen_free_internal_dynamic (pin_queue, sizeof (void*) * pin_queue_size, INTERNAL_MEM_PIN_QUEUE);
pin_queue = new_pin;
pin_queue_size = new_size;
DEBUG (4, fprintf (gc_debug_file, "Reallocated pin queue to size: %d\n", new_size));
*last = optimized_pin_queue_search (end);
}
+void**
+mono_sgen_find_optimized_pin_queue_area (void *start, void *end, int *num)
+{
+ int first, last;
+ find_optimized_pin_queue_area (start, end, &first, &last);
+ *num = last - first;
+ if (first == last)
+ return NULL;
+ return pin_queue + first;
+}
+
static void
find_section_pin_queue_start_end (GCMemSection *section)
{
+2010-07-25 Zoltan Varga <vargaz@gmail.com>
+
+ * mini-trampolines.c (common_call_trampoline): Fix a warning.
+
+2010-07-24 Zoltan Varga <vargaz@gmail.com>
+
+ * mini-s390x.c: Change the calling convention to pass this as first as on other
+ architectures. Remove some dead code from the get_vcall_slot().
+
+2010-07-24 Geoff Norton <gnorton@novell.com>
+
+ * mini-darwin.c: Having reviewed xnu-1504.7.4 it is safe to call fork directly
+ here, it seems the old implementation was a hold over from the linux behaviour
+ This fixed gdb backtrace on amd64 and ppc.
+
2010-07-23 Zoltan Varga <vargaz@gmail.com>
* xdebug.c (mono_save_trampoline_xdebug_info): Call
pid_t
mono_runtime_syscall_fork ()
{
-#if defined(__i386__)
- /* Apple's fork syscall returns a regpair in EAX:EDX.
- * EAX == pid of caller always
- * EDX == 0 for parent, 1 for child
- */
- register_t eax;
- register_t edx;
- pid_t pid;
-
- __asm__ __volatile__ (
- "mov $0x2, %%eax;"
- "int $0x80;"
- "mov %%eax, %0;"
- "mov %%edx, %1;"
- : "=m" (eax), "=m" (edx));
-
- if (edx == 0) {
- pid = eax;
- } else if (edx == 1) {
- pid = 0;
- } else {
- g_assert_not_reached ();
- }
-
- return pid;
-#else
- g_assert_not_reached ();
-#endif
+ return (pid_t) fork ();
}
gboolean
ArgInfo ret;
ArgInfo sigCookie;
size_data sz;
+ int vret_arg_index;
ArgInfo args [1];
} CallInfo;
static CallInfo *
get_call_info (MonoCompile *cfg, MonoMemPool *mp, MonoMethodSignature *sig, gboolean is_pinvoke)
{
- guint i, fr, gr, size;
+ guint i, fr, gr, size, pstart;
int nParm = sig->hasthis + sig->param_count;
MonoType *ret_type;
guint32 simpletype, align;
else
size = mono_class_value_size (klass, &align);
- cinfo->ret.reg = s390_r2;
cinfo->struct_ret = 1;
cinfo->ret.size = size;
cinfo->ret.vtsize = size;
- gr++;
break;
}
case MONO_TYPE_TYPEDBYREF:
size = sizeof (MonoTypedRef);
- cinfo->ret.reg = s390_r2;
cinfo->struct_ret = 1;
cinfo->ret.size = size;
cinfo->ret.vtsize = size;
- gr++;
break;
case MONO_TYPE_VOID:
break;
g_error ("Can't handle as return value 0x%x", sig->ret->type);
}
- if (sig->hasthis) {
- cinfo->args[nParm].size = sizeof(gpointer);
- add_general (&gr, sz, cinfo->args+nParm);
- nParm++;
+
+ pstart = 0;
+ /*
+ * To simplify get_this_arg_reg () and LLVM integration, emit the vret arg after
+ * the first argument, allowing 'this' to be always passed in the first arg reg.
+ * Also do this if the first argument is a reference type, since virtual calls
+ * are sometimes made using calli without sig->hasthis set, like in the delegate
+ * invoke wrappers.
+ */
+ if (cinfo->struct_ret && !is_pinvoke && (sig->hasthis || (sig->param_count > 0 && MONO_TYPE_IS_REFERENCE (mini_type_get_underlying_type (gsctx, sig->params [0]))))) {
+ if (sig->hasthis) {
+ cinfo->args[nParm].size = sizeof (gpointer);
+ add_general (&gr, sz, cinfo->args + nParm);
+ } else {
+ cinfo->args[nParm].size = sizeof (gpointer);
+ add_general (&gr, sz, &cinfo->args [sig->hasthis + nParm]);
+ pstart = 1;
+ }
+ nParm ++;
+ cinfo->vret_arg_index = 1;
+ cinfo->ret.reg = gr;
+ gr ++;
+ } else {
+ /* this */
+ if (sig->hasthis) {
+ cinfo->args[nParm].size = sizeof (gpointer);
+ add_general (&gr, sz, cinfo->args + nParm);
+ nParm ++;
+ }
+
+ if (cinfo->struct_ret) {
+ cinfo->ret.reg = gr;
+ gr ++;
+ }
}
if ((sig->call_convention == MONO_CALL_VARARG) && (sig->param_count == 0)) {
/* parameters. */
/*----------------------------------------------------------*/
- for (i = 0; i < sig->param_count; ++i) {
+ for (i = pstart; i < sig->param_count; ++i) {
MonoType *ptype;
/*--------------------------------------------------*/
MonoLMF *lmf = (MonoLMF *) ((gchar *) regs - sizeof(MonoLMF));
/* FIXME: handle returning a struct */
- if (MONO_TYPE_ISSTRUCT (sig->ret))
- return (gpointer) lmf->gregs [s390_r3];
return (gpointer) lmf->gregs [s390_r2];
}
#define MONO_ARCH_HAVE_THROW_CORLIB_EXCEPTION 1
#define MONO_ARCH_HAVE_IMT 1
#define MONO_ARCH_IMT_REG s390_r9
+#define MONO_ARCH_THIS_AS_FIRST_ARG 1
#define MONO_ARCH_USE_SIGACTION 1
#ifdef MONO_ARCH_HAVE_IMT
/* IMT call */
if (vt && (gpointer)vtable_slot < (gpointer)vt) {
- MonoMethod *impl_method;
+ MonoMethod *impl_method = NULL;
MonoObject *this_arg;
/* we get the interface method because mono_convert_imt_slot_to_vtable_slot ()
int this_pos = s390_r2;
MonoDomain *domain = mono_domain_get ();
- start = addr;
- if (MONO_TYPE_ISSTRUCT (mono_method_signature (method)->ret))
- this_pos = s390_r3;
-
start = code = mono_domain_code_reserve (domain, 28);
s390_basr (code, s390_r1, 0);
gpointer
mono_arch_get_vcall_slot (guint8 *code, mgreg_t *regs, int *displacement)
{
- int reg, lkReg;
- guchar* base;
- unsigned short opcode;
- char *sp;
- MonoLMF *lmf = (MonoLMF *) ((gchar *) regs - sizeof(MonoLMF));
-
- // We are passed sp instead of the register array
-#if 0
- sp = (char *) regs;
-#endif
- sp = (char *) lmf->gregs[s390_r15];
-
- *displacement = 0;
-
- opcode = *((unsigned short *) (code - 6));
- if (opcode == 0xc0e5)
- /* This is the 'brasl' instruction */
- return NULL;
-
- /*-----------------------------------*/
- /* This is a basr r14,Rz instruction */
- /* If it's preceded by a LG Rx,d(Ry) */
- /* If Rz == 1 then this is virtual */
- /* call. */
- /*-----------------------------------*/
- code -= 6;
-
- /*-----------------------------------*/
- /* If call is preceded by LGR then */
- /* there's nothing to patch */
- /*-----------------------------------*/
- if ((code[0] == 0xb9) && (code[1] == 0x04))
- return NULL;
-
- /*-----------------------------------*/
- /* We back up until we're pointing at*/
- /* the base/displacement portion of */
- /* the LG instruction */
- /*-----------------------------------*/
- lkReg = code[5] & 0x0f;
-
- /*-----------------------------------*/
- /* The LG instruction has format: */
- /* E3x0ylllhh04 - where: */
- /* x = Rx; y = Ry; */
- /* lll = low 12 bits of displacement */
- /* hh = high 8 bits of displacement */
- /*-----------------------------------*/
- reg = code[0] >> 4;
- *displacement = (code[2] << 12) |
- ((code[0] & 0x0f) << 8) |
- code[1];
-
- if (code[2] & 0x80)
- *displacement |= 0xfff00000;
-
- base = ((guchar *) lmf->gregs[reg]);
-#if 0
- if (reg > 5)
- base = *((guchar **) (sp + S390_REG_SAVE_OFFSET +
- sizeof(long)*(reg-6)));
- else
- base = *((guchar **) ((sp - CREATE_STACK_SIZE) +
- CREATE_GR_OFFSET +
- sizeof(long)*(reg-2)));
-#endif
- if (lkReg != 1)
- /* Non virtual call */
- return NULL;
-
- return base;
+ /* Not used on s390x */
+ g_assert_not_reached ();
+ return NULL;
}
/*========================= End of Function ========================*/
--- /dev/null
+/bug-335131.2.cs -crlf
+/bug-472600.2.cs -crlf
+/bug-515884.il -crlf
+/checked.cs -crlf
+/load-missing.il -crlf
+/mutexes.cs -crlf
+/thread4.cs -crlf
-using System;\r
+using System;
using System.Threading;
/*
-using System;\r
-using System.IO;\r
+using System;
+using System.IO;
class Driver
{
--- /dev/null
+/all.cs -crlf
+/min.cs -crlf
+/none.cs -crlf
+/opt.cs -crlf
+/ref.cs -crlf
--- /dev/null
+/appdomain.out -crlf
+/delegate-async-exit.out -crlf
+/delegate-delegate-exit.out -crlf
+/delegate.out -crlf
+/finalizer-abort.out -crlf
+/finalizer-exit.out -crlf
+/main-exit.out -crlf
+/main-returns-abort-resetabort.out -crlf
+/main-returns-background-abort-resetabort.out -crlf
+/main-returns-background-resetabort.out -crlf
+/main-returns-background.out -crlf
+/main-returns.out -crlf
+/subthread-exit.out -crlf
--- /dev/null
+/module.il -crlf
\r
} // end of class Module.Exported\r
\r
-
+\r
--- /dev/null
+/make_type_visibility_test.sh -crlf
+/unverifiable_ldobj_with_generic_type_definition.il -crlf
+/unverifiable_throw_with_unboxed_generic_argument.il -crlf
--- /dev/null
+/build-dll -crlf
+/libmonowrapper.rc -crlf
--- /dev/null
+/monoposixhelper.def -crlf
+/win32.xml -crlf
--- /dev/null
+/csproj.tmpl -crlf
+/mcs.pre -crlf
--- /dev/null
+/monoposixhelper.def -crlf
--- /dev/null
+/lcids.xml -crlf
--- /dev/null
+/nb.xml -crlf
+/nn.xml -crlf
--- /dev/null
+/nb_NO.xml -crlf
+/nn_NO.xml -crlf
--- /dev/null
+/gtk-sharp -crlf
+/mbas -crlf
+/mono-beginning-windows.xml -crlf
<ul>
<li>XML Schema Definition tool</li>
<ul>
- <li><b>XDR to XSD</b> - used to generate an XML schema from an XDR (XML Data Reduced schema) file. \r
- XDR was used by Microsoft prior to XSD becoming a W3C recommendation. So, this needs\r
- to be supported for legacy reasons</li>\r
- <li><b>XML to XSD</b> - used to generate an XML schema from an XML file</li> \r
- <li><b>XSD to DataSet</b> - used to generate DataSet classes from an XSD schema file. The\r
- DataSet classes created can then be used with XML data</li>\r
- <li><b>XSD to Classes</b> - used to generate classes from an XSD schema file. The \r
- classes created can be used with System.XML.Serialization.XMLSerializer \r
- to read and write XML code that follows the schema</li>\r
- <li><b>Classes to XSD</b> - used to generate an XML schema \r
- from type(s) in a assembly file. The \r
- XML schema created by the tool defines the XML format used \r
- by System.XML.Serialization.XMLSerializer</li>\r
- </ul>\r
- </li>\r
- </ul>\r
+ <li><b>XDR to XSD</b> - used to generate an XML schema from an XDR (XML Data Reduced schema) file.
+ XDR was used by Microsoft prior to XSD becoming a W3C recommendation. So, this needs
+ to be supported for legacy reasons</li>
+ <li><b>XML to XSD</b> - used to generate an XML schema from an XML file</li>
+ <li><b>XSD to DataSet</b> - used to generate DataSet classes from an XSD schema file. The
+ DataSet classes created can then be used with XML data</li>
+ <li><b>XSD to Classes</b> - used to generate classes from an XSD schema file. The
+ classes created can be used with System.XML.Serialization.XMLSerializer
+ to read and write XML code that follows the schema</li>
+ <li><b>Classes to XSD</b> - used to generate an XML schema
+ from type(s) in a assembly file. The
+ XML schema created by the tool defines the XML format used
+ by System.XML.Serialization.XMLSerializer</li>
+ </ul>
+ </li>
+ </ul>
</li>
</ul>
</td>
</tr>
<tr>
- <td bgcolor="#999999">\r
- <b>Windows Setup Wizard (NT/2000/XP)</b>\r
- <ul>\r
- <li><a href="archive/mono-0.17-stable.exe">Mono-Setup</a>\r
- </ul>\r
- </td>\r
- <td bgcolor="#999999">\r
- <b>Debian packages</b>\r
- <ul>\r
+ <td bgcolor="#999999">
+ <b>Windows Setup Wizard (NT/2000/XP)</b>
+ <ul>
+ <li><a href="archive/mono-0.17-stable.exe">Mono-Setup</a>
+ </ul>
+ </td>
+ <td bgcolor="#999999">
+ <b>Debian packages</b>
+ <ul>
<li><a href="http://www.atoker.com/mono/">Alp's web site</a>
- </ul>\r
- </td>\r
+ </ul>
+ </td>
</tr>
</table>
</td>
<tr>
<td></td>
</tr>
- \r
- <tr bgcolor="#999999">\r
- <td>\r
- <b>Windows (win95 friendly)</b>\r
- <ul>\r
- <li><a href="archive/mono-w32-Aug_28_2002.zip">Mono-w32</a>\r
- </ul>\r
- </td>\r
- <td bgcolor="#999999">\r
- <b>Red Hat null-8.0/x86</b>\r
- <ul>\r
- <li><a href="archive/redhat-null-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>\r
- <li><a href="archive/redhat-null-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>\r
- <li><a href="archive/redhat-null-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>\r
- <li><a href="archive/redhat-null-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>\r
- </ul>\r
- </td>\r
- </tr>\r
+
+ <tr bgcolor="#999999">
+ <td>
+ <b>Windows (win95 friendly)</b>
+ <ul>
+ <li><a href="archive/mono-w32-Aug_28_2002.zip">Mono-w32</a>
+ </ul>
+ </td>
+ <td bgcolor="#999999">
+ <b>Red Hat null-8.0/x86</b>
+ <ul>
+ <li><a href="archive/redhat-null-i386/libgc-6.1alpha5-1.i386.rpm">libgc-6.1alpha5-1.i386.rpm</a>
+ <li><a href="archive/redhat-null-i386/libgc-devel-6.1alpha5-1.i386.rpm">libgc-devel-6.1alpha5-1.i386.rpm</a>
+ <li><a href="archive/redhat-null-i386/mono-0.15-1.i386.rpm">mono-0.15-1.i386.rpm</a>
+ <li><a href="archive/redhat-null-i386/mono-devel-0.15-1.i386.rpm">mono-devel-0.15-1.i386.rpm</a>
+ </ul>
+ </td>
+ </tr>
</table>
</td>
</tr>
* mbas: Mono's VisualBasic.NET Compiler.\r
\r
- MonoBASIC (mbas) is a CIL compiler for the VisualBasic.NET language,
+ MonoBASIC (mbas) is a CIL compiler for the VisualBasic.NET language, \r
an extended version of Visual Basic. It's based on the MCS compiler\r
and still in heavy development, though many language features are\r
already supported. See mcs/mbas/\r
\r
A lot of this stuff is implemented rebuilding proper expressions and \r
statements on top of the classes based on those of mcs (look at the grammar - \r
- mb-parser.jay - and compare it with cs-parser.jay, if interested), but some
+ mb-parser.jay - and compare it with cs-parser.jay, if interested), but some \r
are getting deeply changed, to better conform to VB.NET semantics.\r
\r
** TODO-list\r
We'd like to implement the missing statements, exception handling, \r
structures and actual event support (not necessarily in this order). Once we \r
have all this stuff set up and reasonably bug-free, more work could be done \r
- on helper functions and Object-vars handling.
-
- Also work on the supporting library (we don't currently depend on it as much
- as MS vbc-compiled programs, but especially for late-binding scenarios we will)
+ on helper functions and Object-vars handling.\r
+\r
+ Also work on the supporting library (we don't currently depend on it as much\r
+ as MS vbc-compiled programs, but especially for late-binding scenarios we will)\r
is surely needed: it's in mcs/class/Microsoft.VisualBasic/\r
<li>ByteFX.Data.MySqlClient
<ul>
<li>Build and Runs on Microsoft .NET and Mono</li>
- <li>Works with SQL# (command-line and GTK# GUI versions)</li>\r
- <li>MySQLCommandBuilder now implemented</li>\r
- <li>Transaction support now implemented (not all table types support this)</li>\r
- <li>GetSchemaTable fixed to not use xsd (for Mono)</li>\r
- <li>Driver is now Mono-compatible</li>\r
- <li>TIME data type now supported</li>\r
- <li>More work to improve Timestamp data type handling</li>\r
- <li>Changed signatures of all classes to match corresponding SqlClient classes</li>\r
- <li>Protocol compression using <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a></li>\r
- <li>Named pipes on Windows now working properly</li>\r
- <li>Work done to improve Timestamp data type handling</li>\r
- <li>Implemented IEnumerable on DataReader so DataGrid would work</li>\r
- <li>Speed increased dramatically by removing bugging network sync code</li>\r
- <li>Driver no longer buffers rows of data (more ADO.Net compliant)</li>\r
- <li>Conversion bugs related to TIMESTAMP and DATETIME fields fixed</li>\r
+ <li>Works with SQL# (command-line and GTK# GUI versions)</li>
+ <li>MySQLCommandBuilder now implemented</li>
+ <li>Transaction support now implemented (not all table types support this)</li>
+ <li>GetSchemaTable fixed to not use xsd (for Mono)</li>
+ <li>Driver is now Mono-compatible</li>
+ <li>TIME data type now supported</li>
+ <li>More work to improve Timestamp data type handling</li>
+ <li>Changed signatures of all classes to match corresponding SqlClient classes</li>
+ <li>Protocol compression using <a href="http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp">SharpZipLib</a></li>
+ <li>Named pipes on Windows now working properly</li>
+ <li>Work done to improve Timestamp data type handling</li>
+ <li>Implemented IEnumerable on DataReader so DataGrid would work</li>
+ <li>Speed increased dramatically by removing bugging network sync code</li>
+ <li>Driver no longer buffers rows of data (more ADO.Net compliant)</li>
+ <li>Conversion bugs related to TIMESTAMP and DATETIME fields fixed</li>
</ul>
</li>
<li>Here is a ConnectionString format if you do not have a DSN (have not
gotten this to work though):
<pre>
-"DRIVER={MySQL ODBC 3.51 Driver};" +\r
-"SERVER=localhost;DATABASE=test;" +\r
-"UID=myuserid;PASSWORD=mypassword;" +\r
-"OPTION=3";\r
+"DRIVER={MySQL ODBC 3.51 Driver};" +
+"SERVER=localhost;DATABASE=test;" +
+"UID=myuserid;PASSWORD=mypassword;" +
+"OPTION=3";
</pre>
</li>
System.Security.Principal.WindowsImpersonationContext
System.Security.Principal.WindowsPrincipal
System.Threading.CompressedStack
-\r
+
<ul>
<li>Builds and Runs on both Microsoft .NET and Mono.</li>
<li>Works using SQL# (command-line and GTK# versions)</li>
- <li>You can send insert, update, delete queries \r
- through NpgsqlCommand.ExecuteNonQuery() method.</li>\r
- <li>You can send queries like, select count(*) from table, select version()\r
- with NpgsqlCommand.ExecuteScalar() method.</li>\r
- <li>There is logging support. (Thanks Dave Page)\r
- To use it, place code like that in your program:</li>\r
-\r
-<pre> \r
- // Enable logging.\r
- NpgsqlEventLog.Level = LogLevel.Debug; // LogLevel.\r
- NpgsqlEventLog.LogName = "NpgsqlTests.LogFile"; // LogFile.\r
-</pre>\r
- \r
- <li>You can use Npgsql with Mono (Thanks Kristis Makris). It is not working perfectly.</li>\r
- <li>There is a winforms test suite (Thanks Dave Page).</li>\r
- <li>Clearer code in NpgsqlConnection removing *magic* numbers and constants. (Thanks Kristis Makris)</li>\r
- <li>Better support of ODBC-like ConnectionString in NpgsqlConnection (Thanks Dave Page)</li>\r
- <li>Thanks Ulrich Sprick for all discussion and ideas.</li>\r
+ <li>You can send insert, update, delete queries
+ through NpgsqlCommand.ExecuteNonQuery() method.</li>
+ <li>You can send queries like, select count(*) from table, select version()
+ with NpgsqlCommand.ExecuteScalar() method.</li>
+ <li>There is logging support. (Thanks Dave Page)
+ To use it, place code like that in your program:</li>
+
+<pre>
+ // Enable logging.
+ NpgsqlEventLog.Level = LogLevel.Debug; // LogLevel.
+ NpgsqlEventLog.LogName = "NpgsqlTests.LogFile"; // LogFile.
+</pre>
+
+ <li>You can use Npgsql with Mono (Thanks Kristis Makris). It is not working perfectly.</li>
+ <li>There is a winforms test suite (Thanks Dave Page).</li>
+ <li>Clearer code in NpgsqlConnection removing *magic* numbers and constants. (Thanks Kristis Makris)</li>
+ <li>Better support of ODBC-like ConnectionString in NpgsqlConnection (Thanks Dave Page)</li>
+ <li>Thanks Ulrich Sprick for all discussion and ideas.</li>
</ul>
</li>
MSDE 2000, make sure you have the special Service Pack 3 for MSDE 2000. You
can get it from <a href="http://www.microsoft.com/sql/downloads/2000/sp3.asp">here</a></li>
- <li>For those that only have MSDE installed. You can change the authentication mode \r
- from Windows Only Authentication to SQL Server and Windows Authentications (also knows as Mixed-mode authentication)\r
- via the <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322336&sd=tech#4">registry</a></li>. It is\r
- the LoginMode you need to change. By default,\r
- MSDE is installed with Windows Only Authentication. If you want SqlClient to work with MSDE via SQL Server authentication, you will\r
- need to change the setting. Otherwise, you wil have to use NT Authentication.</a>\r
- \r
- <li>If using MSDE, you might need to create a new user with password. Give\r
- this user access to various databases in this MSDE instance. Also, for each\r
- database, give this new user at least SELECT access to the various tables you want\r
- to retrieve data from.</li>\r
- \r
- <li>If you have Enterprise Manager, you can easily change the authentication mode\r
- for both MSDE and Microsoft SQL Server. To change the authentication mode in \r
- Enterprise Mananger, select the instance, right-click on it, and select properites.\r
- The SQL Server properties dialog for that instance will pop up. Choose the Security\r
- tab. Change the Authentication from Windows Only to SQL Server and Windows. If\r
- the instance of your database does not show up in Enterprise Manager, Register first\r
- by selecting the Action menu and choosing New SQL Server Registration.</li>\r
+ <li>For those that only have MSDE installed. You can change the authentication mode
+ from Windows Only Authentication to SQL Server and Windows Authentications (also knows as Mixed-mode authentication)
+ via the <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322336&sd=tech#4">registry</a></li>. It is
+ the LoginMode you need to change. By default,
+ MSDE is installed with Windows Only Authentication. If you want SqlClient to work with MSDE via SQL Server authentication, you will
+ need to change the setting. Otherwise, you wil have to use NT Authentication.</a>
+
+ <li>If using MSDE, you might need to create a new user with password. Give
+ this user access to various databases in this MSDE instance. Also, for each
+ database, give this new user at least SELECT access to the various tables you want
+ to retrieve data from.</li>
+
+ <li>If you have Enterprise Manager, you can easily change the authentication mode
+ for both MSDE and Microsoft SQL Server. To change the authentication mode in
+ Enterprise Mananger, select the instance, right-click on it, and select properites.
+ The SQL Server properties dialog for that instance will pop up. Choose the Security
+ tab. Change the Authentication from Windows Only to SQL Server and Windows. If
+ the instance of your database does not show up in Enterprise Manager, Register first
+ by selecting the Action menu and choosing New SQL Server Registration.</li>
<li>Located at mcs/class/System.Data/Test is a test for System.Data.SqlClient
named SqlTest.cs and you could use this as a basis for your test.</li>
the <a href"http://www.hwaci.com/sw/sqlite/">SQL Lite</a> which
is an embeddable SQL database engine</li>
- <li>From the SQL Lite web page: SQLite is a C library that \r
- implements an embeddable SQL database engine. Programs that link with \r
- the SQLite library can have SQL database access without \r
- running a separate RDBMS process. The distribution \r
- comes with a standalone command-line access program (sqlite) that \r
- can be used to administer an SQLite database and which serves \r
- as an example of how to use the SQLite library. SQLite is not a client library \r
- used to connect to a big database server. SQLite is the server. The SQLite \r
- library reads and writes directly to and from the database files on disk.</li>\r
+ <li>From the SQL Lite web page: SQLite is a C library that
+ implements an embeddable SQL database engine. Programs that link with
+ the SQLite library can have SQL database access without
+ running a separate RDBMS process. The distribution
+ comes with a standalone command-line access program (sqlite) that
+ can be used to administer an SQLite database and which serves
+ as an example of how to use the SQLite library. SQLite is not a client library
+ used to connect to a big database server. SQLite is the server. The SQLite
+ library reads and writes directly to and from the database files on disk.</li>
<li>SQL Lite can be downloaded
from <a href="http://www.hwaci.com/sw/sqlite/download.html">here</a>.
--- /dev/null
+/team.xsd -crlf