mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39c87c56fb | ||
|
|
afe6148ebd | ||
|
|
da34629417 | ||
|
|
c68c1bd6c0 | ||
|
|
a2d18abb30 | ||
|
|
dd7100cbbd | ||
|
|
5a6cb5ce83 | ||
|
|
a90a8752fa | ||
|
|
2cf46f9f3a | ||
|
|
d939457bb9 | ||
|
|
bc88cf65e9 | ||
|
|
11b23d5c2a | ||
|
|
fdeac5a1d2 | ||
|
|
99bc5750c0 | ||
|
|
f611271a66 | ||
|
|
ab10994d3d | ||
|
|
4d8d5cc311 | ||
|
|
46eac4f446 | ||
|
|
e21f636e8c | ||
|
|
b1b8611ecf | ||
|
|
da69c6c63c | ||
|
|
6e3884f14f | ||
|
|
0b06a8ac4c | ||
|
|
8b96bfb634 | ||
|
|
e2c9c8c0bf | ||
|
|
585d7ffd41 | ||
|
|
93359ce5b4 | ||
|
|
de8ffd34ed | ||
|
|
f82a1f85dd | ||
|
|
e3cfa1cf7c | ||
|
|
3343ab394f | ||
|
|
749975515b | ||
|
|
29bd87001f | ||
|
|
1263f41404 | ||
|
|
3389912d8f | ||
|
|
f131483ce6 | ||
|
|
f2bfd9fe48 | ||
|
|
e45a69164c | ||
|
|
1602cb9de7 | ||
|
|
d273b61a20 | ||
|
|
81e825559a | ||
|
|
b1000500d6 | ||
|
|
4557407d6d | ||
|
|
a84be32229 | ||
|
|
862d515398 | ||
|
|
27adaadb5b | ||
|
|
0820f840a5 | ||
|
|
87aa3d424c | ||
|
|
acec2a5772 | ||
|
|
c4c84f3d00 | ||
|
|
d538cb0571 | ||
|
|
9c5f8f2746 | ||
|
|
da5275f248 | ||
|
|
776110a374 | ||
|
|
386481ff06 | ||
|
|
956c67906f | ||
|
|
a9c884eaef | ||
|
|
86a295501e | ||
|
|
7ebae8306a | ||
|
|
b1853cba15 | ||
|
|
5d7664c3cc | ||
|
|
1390efe910 | ||
|
|
b5c5563b18 | ||
|
|
a02bf8816d | ||
|
|
7e9bc7847d | ||
|
|
42981c413a | ||
|
|
d31c6ef8d0 | ||
|
|
7af71bde6d | ||
|
|
53624cf702 | ||
|
|
4f900ec539 | ||
|
|
aa976d180b | ||
|
|
9221c586f1 | ||
|
|
74df29cff8 | ||
|
|
f333a7fbb7 | ||
|
|
518da7775c | ||
|
|
de1565c510 | ||
|
|
df8d224980 | ||
|
|
27e7e8ce15 | ||
|
|
c69e5cf3df | ||
|
|
88c51c34b5 | ||
|
|
a2890ef65c | ||
|
|
370c785c91 | ||
|
|
03fc690667 | ||
|
|
9027e9d1b2 | ||
|
|
e21ad29117 | ||
|
|
5cd74c6e93 | ||
|
|
f03957145f | ||
|
|
022f2a162c | ||
|
|
8bdc8dbbb8 | ||
|
|
86108c6777 | ||
|
|
782aff048c | ||
|
|
3666377b63 | ||
|
|
b20f049e63 | ||
|
|
2f31aa3e43 | ||
|
|
b18d980fab | ||
|
|
d857e242ab | ||
|
|
c716a7bd6f | ||
|
|
50ad571d70 | ||
|
|
1fc3bcc2b8 | ||
|
|
94abf32795 | ||
|
|
b47870a87b | ||
|
|
957bc1dbe3 | ||
|
|
a5d9b3f229 | ||
|
|
374bdf5cd7 | ||
|
|
fee32a49f5 | ||
|
|
c7f63eecba | ||
|
|
3920aa8c5c | ||
|
|
502882dde2 | ||
|
|
6a30d9b3c6 | ||
|
|
e1029c24e4 | ||
|
|
e6971e6673 | ||
|
|
2f8403bcf4 | ||
|
|
83c5cdea3c | ||
|
|
cd7a35cae1 | ||
|
|
b03e7fffb8 | ||
|
|
819395604c | ||
|
|
4fc67d1a14 | ||
|
|
2c47c798a5 | ||
|
|
4a791732ff | ||
|
|
a1e21f8406 | ||
|
|
942bdbd5f4 | ||
|
|
ae63609233 | ||
|
|
5e69101fb5 | ||
|
|
71e6af6bfb | ||
|
|
4cb79d4939 | ||
|
|
c299d9423a | ||
|
|
4b82041b60 | ||
|
|
fe699eac7f | ||
|
|
1a336cbb03 | ||
|
|
6cb5277b61 | ||
|
|
ac9098f000 | ||
|
|
4e4824afab |
No files matched your search
@@ -1,3 +1,11 @@
|
||||
2004-05-31 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* configure.in: fixlets for windows.
|
||||
|
||||
2004-05-29 Zoltan Varga <[email protected]>
|
||||
|
||||
* configure.in: export CC instead of passing it to libgc/configure.
|
||||
|
||||
2004-05-28 Duncan Mak <[email protected]>
|
||||
|
||||
* runtime/Makefile.am:
|
||||
|
||||
+6
-2
@@ -1,7 +1,7 @@
|
||||
AC_INIT(README)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(mono,0.94)
|
||||
AM_INIT_AUTOMAKE(mono,0.95)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
dnl
|
||||
@@ -50,6 +50,9 @@ case "$host" in
|
||||
libdl=
|
||||
libgc_threads=win32
|
||||
gc_default=boehm
|
||||
with_nptl=no
|
||||
with_sigaltstack=no
|
||||
|
||||
;;
|
||||
*-*-*netbsd*)
|
||||
platform_win32=no
|
||||
@@ -898,6 +901,7 @@ if test x$platform_win32 = xno; then
|
||||
AC_DEFINE_UNQUOTED(SIGVAL_PTR,$SIGVAL_PTR,[Pointer field name in 'union sigval'])
|
||||
fi
|
||||
else
|
||||
jdk_headers_found=no
|
||||
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
|
||||
AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
|
||||
fi
|
||||
@@ -949,7 +953,7 @@ case "{$target}" in
|
||||
dnl Win32 does not have /dev/random, they have their own method...
|
||||
|
||||
*-*-mingw*|*-*-cygwin*)
|
||||
ac_cv_have_dev_random = no
|
||||
ac_cv_have_dev_random=no
|
||||
;;
|
||||
|
||||
dnl Everywhere else, it's /dev/random
|
||||
|
||||
@@ -0,0 +1,246 @@
|
||||
System.Object
|
||||
System.Exception
|
||||
System.ValueType
|
||||
System.Delegate
|
||||
System.MulticastDelegate
|
||||
System.Enum
|
||||
System.Activator
|
||||
System.ArgIterator
|
||||
System.__ComObject
|
||||
System.TypedReference
|
||||
System.Security.AllowPartiallyTrustedCallersAttribute
|
||||
System.Runtime.Serialization.Formatter
|
||||
System.Runtime.Serialization.FormatterConverter
|
||||
System.Runtime.Serialization.FormatterServices
|
||||
System.Runtime.Serialization.ObjectIDGenerator
|
||||
System.Runtime.Serialization.ObjectManager
|
||||
System.Reflection.ModuleResolveEventHandler
|
||||
System.Reflection.Pointer
|
||||
System.Globalization.CompareInfo
|
||||
System.Globalization.HebrewCalendar
|
||||
System.Globalization.HijriCalendar
|
||||
System.Globalization.JapaneseCalendar
|
||||
System.Globalization.KoreanCalendar
|
||||
System.Globalization.SortKey
|
||||
System.Globalization.StringInfo
|
||||
System.Globalization.TaiwanCalendar
|
||||
System.Globalization.TextElementEnumerator
|
||||
System.Globalization.TextInfo
|
||||
System.Globalization.ThaiBuddhistCalendar
|
||||
System.IO.IsolatedStorage.IsolatedStorageFile
|
||||
System.Reflection.Emit.MethodRental
|
||||
System.Runtime.CompilerServices.AccessedThroughPropertyAttribute
|
||||
System.Runtime.CompilerServices.CallConvCdecl
|
||||
System.Runtime.CompilerServices.CallConvStdcall
|
||||
System.Runtime.CompilerServices.CallConvThiscall
|
||||
System.Runtime.CompilerServices.CallConvFastcall
|
||||
System.Runtime.CompilerServices.CustomConstantAttribute
|
||||
System.Runtime.CompilerServices.DateTimeConstantAttribute
|
||||
System.Runtime.CompilerServices.DiscardableAttribute
|
||||
System.Runtime.CompilerServices.DecimalConstantAttribute
|
||||
System.Runtime.CompilerServices.CompilationRelaxationsAttribute
|
||||
System.Runtime.CompilerServices.CompilerGlobalScopeAttribute
|
||||
System.Runtime.CompilerServices.IDispatchConstantAttribute
|
||||
System.Runtime.CompilerServices.IsVolatile
|
||||
System.Runtime.CompilerServices.IUnknownConstantAttribute
|
||||
System.Runtime.CompilerServices.RequiredAttributeAttribute
|
||||
System.Runtime.InteropServices.ArrayWithOffset
|
||||
System.Runtime.InteropServices.DispIdAttribute
|
||||
System.Runtime.InteropServices.ClassInterfaceType
|
||||
System.Runtime.InteropServices.ClassInterfaceAttribute
|
||||
System.Runtime.InteropServices.ComVisibleAttribute
|
||||
System.Runtime.InteropServices.LCIDConversionAttribute
|
||||
System.Runtime.InteropServices.ComRegisterFunctionAttribute
|
||||
System.Runtime.InteropServices.ComUnregisterFunctionAttribute
|
||||
System.Runtime.InteropServices.ProgIdAttribute
|
||||
System.Runtime.InteropServices.ImportedFromTypeLibAttribute
|
||||
System.Runtime.InteropServices.IDispatchImplType
|
||||
System.Runtime.InteropServices.IDispatchImplAttribute
|
||||
System.Runtime.InteropServices.ComSourceInterfacesAttribute
|
||||
System.Runtime.InteropServices.ComConversionLossAttribute
|
||||
System.Runtime.InteropServices.TypeLibTypeFlags
|
||||
System.Runtime.InteropServices.TypeLibFuncFlags
|
||||
System.Runtime.InteropServices.TypeLibVarFlags
|
||||
System.Runtime.InteropServices.TypeLibTypeAttribute
|
||||
System.Runtime.InteropServices.TypeLibFuncAttribute
|
||||
System.Runtime.InteropServices.TypeLibVarAttribute
|
||||
System.Runtime.InteropServices.ComImportAttribute
|
||||
System.Runtime.InteropServices.PreserveSigAttribute
|
||||
System.Runtime.InteropServices.ComAliasNameAttribute
|
||||
System.Runtime.InteropServices.AutomationProxyAttribute
|
||||
System.Runtime.InteropServices.PrimaryInteropAssemblyAttribute
|
||||
System.Runtime.InteropServices.CoClassAttribute
|
||||
System.Runtime.InteropServices.ComEventInterfaceAttribute
|
||||
System.Runtime.InteropServices.COMException
|
||||
System.Runtime.InteropServices.ComMemberType
|
||||
System.Runtime.InteropServices.CurrencyWrapper
|
||||
System.Runtime.InteropServices.DispatchWrapper
|
||||
System.Runtime.InteropServices.ErrorWrapper
|
||||
System.Runtime.InteropServices.ExtensibleClassFactory
|
||||
System.Runtime.InteropServices.HandleRef
|
||||
System.Runtime.InteropServices.InvalidComObjectException
|
||||
System.Runtime.InteropServices.InvalidOleVariantTypeException
|
||||
System.Runtime.InteropServices.TypeLibImporterFlags
|
||||
System.Runtime.InteropServices.ExporterEventKind
|
||||
System.Runtime.InteropServices.ITypeLibExporterNotifySink
|
||||
System.Runtime.InteropServices.ITypeLibConverter
|
||||
System.Runtime.InteropServices.MarshalDirectiveException
|
||||
System.Runtime.InteropServices.ObjectCreationDelegate
|
||||
System.Runtime.InteropServices.RuntimeEnvironment
|
||||
System.Runtime.InteropServices.RegistrationServices
|
||||
System.Runtime.InteropServices.SafeArrayRankMismatchException
|
||||
System.Runtime.InteropServices.SafeArrayTypeMismatchException
|
||||
System.Runtime.InteropServices.SEHException
|
||||
System.Runtime.InteropServices.TypeLibConverter
|
||||
System.Runtime.InteropServices.BIND_OPTS
|
||||
System.Runtime.InteropServices.UCOMIBindCtx
|
||||
System.Runtime.InteropServices.UCOMIConnectionPointContainer
|
||||
System.Runtime.InteropServices.UCOMIConnectionPoint
|
||||
System.Runtime.InteropServices.UCOMIEnumMoniker
|
||||
System.Runtime.InteropServices.CONNECTDATA
|
||||
System.Runtime.InteropServices.UCOMIEnumConnections
|
||||
System.Runtime.InteropServices.UCOMIEnumConnectionPoints
|
||||
System.Runtime.InteropServices.UCOMIEnumString
|
||||
System.Runtime.InteropServices.UCOMIEnumVARIANT
|
||||
System.Runtime.InteropServices.FILETIME
|
||||
System.Runtime.InteropServices.UCOMIMoniker
|
||||
System.Runtime.InteropServices.UCOMIPersistFile
|
||||
System.Runtime.InteropServices.UCOMIRunningObjectTable
|
||||
System.Runtime.InteropServices.STATSTG
|
||||
System.Runtime.InteropServices.UCOMIStream
|
||||
System.Runtime.InteropServices.DESCKIND
|
||||
System.Runtime.InteropServices.BINDPTR
|
||||
System.Runtime.InteropServices.UCOMITypeComp
|
||||
System.Runtime.InteropServices.TYPEKIND
|
||||
System.Runtime.InteropServices.TYPEFLAGS
|
||||
System.Runtime.InteropServices.IMPLTYPEFLAGS
|
||||
System.Runtime.InteropServices.TYPEATTR
|
||||
System.Runtime.InteropServices.FUNCDESC
|
||||
System.Runtime.InteropServices.IDLFLAG
|
||||
System.Runtime.InteropServices.IDLDESC
|
||||
System.Runtime.InteropServices.PARAMFLAG
|
||||
System.Runtime.InteropServices.PARAMDESC
|
||||
System.Runtime.InteropServices.TYPEDESC
|
||||
System.Runtime.InteropServices.ELEMDESC
|
||||
System.Runtime.InteropServices.VARDESC
|
||||
System.Runtime.InteropServices.DISPPARAMS
|
||||
System.Runtime.InteropServices.EXCEPINFO
|
||||
System.Runtime.InteropServices.FUNCKIND
|
||||
System.Runtime.InteropServices.INVOKEKIND
|
||||
System.Runtime.InteropServices.CALLCONV
|
||||
System.Runtime.InteropServices.FUNCFLAGS
|
||||
System.Runtime.InteropServices.VARFLAGS
|
||||
System.Runtime.InteropServices.UCOMITypeInfo
|
||||
System.Runtime.InteropServices.SYSKIND
|
||||
System.Runtime.InteropServices.LIBFLAGS
|
||||
System.Runtime.InteropServices.TYPELIBATTR
|
||||
System.Runtime.InteropServices.UCOMITypeLib
|
||||
System.Runtime.InteropServices.UnknownWrapper
|
||||
System.Runtime.Remoting.IObjectHandle
|
||||
System.Runtime.Remoting.IRemotingTypeInfo
|
||||
System.Runtime.Remoting.IChannelInfo
|
||||
System.Runtime.Remoting.IEnvoyInfo
|
||||
System.Runtime.Remoting.RemotingConfiguration
|
||||
System.Runtime.Remoting.TypeEntry
|
||||
System.Runtime.Remoting.ActivatedClientTypeEntry
|
||||
System.Runtime.Remoting.ActivatedServiceTypeEntry
|
||||
System.Runtime.Remoting.WellKnownClientTypeEntry
|
||||
System.Runtime.Remoting.WellKnownServiceTypeEntry
|
||||
System.Runtime.Remoting.RemotingException
|
||||
System.Runtime.Remoting.ServerException
|
||||
System.Runtime.Remoting.RemotingTimeoutException
|
||||
System.Runtime.Remoting.RemotingServices
|
||||
System.Runtime.Remoting.InternalRemotingServices
|
||||
System.Runtime.Remoting.SoapServices
|
||||
System.Runtime.Remoting.Activation.UrlAttribute
|
||||
System.Runtime.Remoting.Messaging.IMessageSink
|
||||
System.Runtime.Remoting.Messaging.AsyncResult
|
||||
System.Runtime.Remoting.Messaging.CallContext
|
||||
System.Runtime.Remoting.Messaging.ILogicalThreadAffinative
|
||||
System.Runtime.Remoting.Messaging.InternalMessageWrapper
|
||||
System.Runtime.Remoting.Messaging.IMethodCallMessage
|
||||
System.Runtime.Remoting.Messaging.MethodCallMessageWrapper
|
||||
System.Runtime.Remoting.Messaging.HeaderHandler
|
||||
System.Runtime.Remoting.Messaging.IMessageCtrl
|
||||
System.Runtime.Remoting.Messaging.IRemotingFormatter
|
||||
System.Runtime.Remoting.Messaging.ReturnMessage
|
||||
System.Runtime.Remoting.Messaging.MethodCall
|
||||
System.Runtime.Remoting.Messaging.ConstructionCall
|
||||
System.Runtime.Remoting.Messaging.MethodResponse
|
||||
System.Runtime.Remoting.Messaging.ConstructionResponse
|
||||
System.Runtime.Remoting.Messaging.MethodReturnMessageWrapper
|
||||
System.Runtime.Remoting.Messaging.OneWayAttribute
|
||||
System.Runtime.Remoting.Messaging.MessageSurrogateFilter
|
||||
System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
|
||||
System.Runtime.Remoting.Contexts.CrossContextDelegate
|
||||
System.Runtime.Remoting.Contexts.ContextProperty
|
||||
System.Runtime.Remoting.Contexts.IContextPropertyActivator
|
||||
System.Runtime.Remoting.Contexts.IContributeClientContextSink
|
||||
System.Runtime.Remoting.Contexts.IContributeDynamicSink
|
||||
System.Runtime.Remoting.Contexts.IContributeEnvoySink
|
||||
System.Runtime.Remoting.Contexts.IContributeObjectSink
|
||||
System.Runtime.Remoting.Contexts.IContributeServerContextSink
|
||||
System.Runtime.Serialization.Formatters.InternalRM
|
||||
System.Runtime.Serialization.Formatters.InternalST
|
||||
System.Runtime.Serialization.Formatters.SoapMessage
|
||||
System.Runtime.Serialization.Formatters.SoapFault
|
||||
System.Runtime.Serialization.Formatters.ServerFault
|
||||
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
System.Security.Cryptography.CryptoConfig
|
||||
System.Security.Cryptography.KeyedHashAlgorithm
|
||||
System.Security.Cryptography.HMACSHA1
|
||||
System.Security.Cryptography.MACTripleDES
|
||||
System.Security.Cryptography.MaskGenerationMethod
|
||||
System.Security.Cryptography.PasswordDeriveBytes
|
||||
System.Security.Cryptography.PKCS1MaskGenerationMethod
|
||||
System.Security.Cryptography.RC2
|
||||
System.Security.Cryptography.RC2CryptoServiceProvider
|
||||
System.Security.Cryptography.RSACryptoServiceProvider
|
||||
System.Security.Cryptography.RSAOAEPKeyExchangeDeformatter
|
||||
System.Security.Cryptography.RSAOAEPKeyExchangeFormatter
|
||||
System.Security.Cryptography.RSAPKCS1KeyExchangeDeformatter
|
||||
System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter
|
||||
System.Security.Cryptography.RSAPKCS1SignatureDeformatter
|
||||
System.Security.Cryptography.RSAPKCS1SignatureFormatter
|
||||
System.Security.Cryptography.SHA1Managed
|
||||
System.Security.Cryptography.TripleDES
|
||||
System.Security.Cryptography.TripleDESCryptoServiceProvider
|
||||
System.Security.Permissions.EnvironmentPermission
|
||||
System.Security.Permissions.FileDialogPermission
|
||||
System.Security.Permissions.IsolatedStorageFilePermission
|
||||
System.Security.Permissions.PrincipalPermissionAttribute
|
||||
System.Security.Permissions.SecurityPermissionAttribute
|
||||
System.Security.Permissions.PublisherIdentityPermissionAttribute
|
||||
System.Security.Permissions.PublisherIdentityPermission
|
||||
System.Security.Permissions.ReflectionPermission
|
||||
System.Security.Permissions.RegistryPermission
|
||||
System.Security.Permissions.PrincipalPermission
|
||||
System.Security.Permissions.SiteIdentityPermission
|
||||
System.Security.Permissions.StrongNameIdentityPermission
|
||||
System.Security.Permissions.StrongNamePublicKeyBlob
|
||||
System.Security.Permissions.UIPermission
|
||||
System.Security.Permissions.UrlIdentityPermission
|
||||
System.Security.Permissions.ZoneIdentityPermission
|
||||
System.Security.Policy.ApplicationDirectory
|
||||
System.Security.Policy.ApplicationDirectoryMembershipCondition
|
||||
System.Security.Policy.FirstMatchCodeGroup
|
||||
System.Security.Policy.Hash
|
||||
System.Security.Policy.HashMembershipCondition
|
||||
System.Security.Policy.NetCodeGroup
|
||||
System.Security.Policy.PermissionRequestEvidence
|
||||
System.Security.Policy.Publisher
|
||||
System.Security.Policy.PublisherMembershipCondition
|
||||
System.Security.Policy.Site
|
||||
System.Security.Policy.SiteMembershipCondition
|
||||
System.Security.Policy.StrongName
|
||||
System.Security.Policy.StrongNameMembershipCondition
|
||||
System.Security.Policy.UnionCodeGroup
|
||||
System.Security.Policy.Url
|
||||
System.Security.Policy.UrlMembershipCondition
|
||||
System.Security.Policy.Zone
|
||||
System.Security.Policy.ZoneMembershipCondition
|
||||
System.Security.Principal.WindowsIdentity
|
||||
System.Security.Principal.WindowsImpersonationContext
|
||||
System.Security.Principal.WindowsPrincipal
|
||||
System.Threading.CompressedStack
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<h1>Mono 1.0 Release Notes</h1>
|
||||
|
||||
<h2>What does Mono Include</h2>
|
||||
|
||||
<h2>Missing functionality</h2>
|
||||
|
||||
<p>COM support.
|
||||
|
||||
<p>EnterpriseServices are non-existant.
|
||||
|
||||
<p>Windows.Forms is only available as a preview, it is not
|
||||
completed nor stable.
|
||||
|
||||
<h3>Assembly: System.Drawing</h3>
|
||||
|
||||
<p>System.Drawing.Printing is not supported.
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-05-30 Jackson Harper <[email protected]>
|
||||
|
||||
* library.make: Install to 2.0 package if building with the
|
||||
net_2_0 profile.
|
||||
|
||||
2004-05-26 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* library.make: reference nunti.core.dll and nunit.util.dll when
|
||||
|
||||
@@ -43,13 +43,13 @@ gacutil = $(topdir)/tools/gacutil/gacutil.exe
|
||||
PACKAGE = 1.0
|
||||
|
||||
ifeq ($(PROFILE), net_2_0)
|
||||
PACKAGE = 1.1
|
||||
PACKAGE = 2.0
|
||||
endif
|
||||
|
||||
all-local: $(the_lib)
|
||||
|
||||
install-local: $(the_lib) $(gacutil)
|
||||
$(RUNTIME) $(gacutil) /i $(the_lib) /f /root $(DESTDIR)$(prefix)/lib /package 1.0
|
||||
$(RUNTIME) $(gacutil) /i $(the_lib) /f /root $(DESTDIR)$(prefix)/lib /package $(PACKAGE)
|
||||
|
||||
uninstall-local: $(gacutil)
|
||||
$(RUNTIME) $(gacutil) /u $$(basename $(the_lib) .dll) ; \
|
||||
|
||||
@@ -31,7 +31,7 @@ hidden_suffix =
|
||||
|
||||
platform-check:
|
||||
@if ! type $(BOOTSTRAP_MCS) >/dev/null 2>&1 ; then \
|
||||
echo "*** You need a C# compiler installed to build MCS." ; \
|
||||
echo "*** You need a C# compiler installed to build MCS. (make sure mcs works from the command line)" ; \
|
||||
echo "*** Read INSTALL.txt for information on how to bootstrap" ; \
|
||||
echo "*** a Mono installation." ; \
|
||||
exit 1 ; \
|
||||
|
||||
@@ -1,3 +1,16 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncParser.jay : now error output is disabled.
|
||||
* RncTokenizer.cs : It should not be public class.
|
||||
|
||||
2004-05-30 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncParser.jay :
|
||||
Now RncParser.Parse() returns RelaxngPattern, not RelaxngGrammar.
|
||||
Fixed many "confusing RelaxngPattern and RelaxngPatternList"
|
||||
problems, and ditto for other "List" stuff.
|
||||
To avoid complex situations, mostly removed unused annotation stuff.
|
||||
|
||||
2004-05-09 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncParser.jay :
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -16,7 +16,7 @@ using Commons.Xml.Relaxng;
|
||||
|
||||
namespace Commons.Xml.Relaxng.Rnc
|
||||
{
|
||||
public class RncTokenizer : Commons.Xml.Relaxng.Rnc.yyParser.yyInput
|
||||
internal class RncTokenizer : Commons.Xml.Relaxng.Rnc.yyParser.yyInput
|
||||
{
|
||||
TextReader source;
|
||||
|
||||
|
||||
@@ -1,3 +1,22 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Misc.cs : made Util class internal.
|
||||
* RelaxngDatatypeProvider.cs : looks commit was missing.
|
||||
* RelaxngException.cs : made one .ctor() internal that accepts
|
||||
RdpPattern.
|
||||
* RelaxngNameClas.cs : Names list should not be settable.
|
||||
* RelaxngPattern.cs : RelaxngRefPattern class is internal use only.
|
||||
* RelaxngPatternType.cs : there is not "Include" pattern.
|
||||
|
||||
2004-05-30 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RelaxngDatatypeProvider.cs : removed meaningless using alias.
|
||||
* RelaxngGrammar.cs : modified ArrayList to RelaxngGrammarContentList.
|
||||
RelaxngMergedProvider.cs : Added #if PNET switch to support non-
|
||||
xmlschema available environment.
|
||||
* RelaxngPattern.cs : added IGrammarContent and
|
||||
RelaxngGrammarContentList.
|
||||
|
||||
2004-03-17 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RelaxngNameClass.cs : Introduced RelaxngNameClassList class.
|
||||
|
||||
@@ -14,7 +14,7 @@ using Commons.Xml.Relaxng.Derivative;
|
||||
|
||||
namespace Commons.Xml.Relaxng
|
||||
{
|
||||
public class Util
|
||||
internal class Util
|
||||
{
|
||||
public static string ResolveUri (string baseUri, string href)
|
||||
{
|
||||
|
||||
@@ -10,9 +10,6 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using System.Xml.Schema;
|
||||
using Commons.Xml.Relaxng.XmlSchema;
|
||||
|
||||
using XSchema = System.Xml.Schema.XmlSchema;
|
||||
|
||||
namespace Commons.Xml.Relaxng
|
||||
{
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Commons.Xml.Relaxng
|
||||
public RelaxngException (string message) : base (message) {}
|
||||
public RelaxngException (string message, Exception innerException)
|
||||
: base (message, innerException) {}
|
||||
public RelaxngException (string message, RdpPattern invalidatedPattern)
|
||||
internal RelaxngException (string message, RdpPattern invalidatedPattern)
|
||||
: base (message)
|
||||
{
|
||||
debugXml = RdpUtil.DebugRdpPattern (invalidatedPattern, new Hashtable ());
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace Commons.Xml.Relaxng
|
||||
"http://relaxng.org/ns/structure/1.0";
|
||||
|
||||
// object model fields
|
||||
ArrayList starts = new ArrayList ();
|
||||
ArrayList defs = new ArrayList ();
|
||||
ArrayList includes = new ArrayList ();
|
||||
ArrayList divs = new ArrayList ();
|
||||
RelaxngGrammarContentList starts = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList defs = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList includes = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList divs = new RelaxngGrammarContentList ();
|
||||
|
||||
RelaxngDatatypeProvider provider;
|
||||
|
||||
@@ -75,19 +75,19 @@ namespace Commons.Xml.Relaxng
|
||||
get { return RelaxngPatternType.Grammar; }
|
||||
}
|
||||
|
||||
public IList Starts {
|
||||
public RelaxngGrammarContentList Starts {
|
||||
get { return starts; }
|
||||
}
|
||||
|
||||
public IList Defines {
|
||||
public RelaxngGrammarContentList Defines {
|
||||
get { return defs; }
|
||||
}
|
||||
|
||||
public IList Includes {
|
||||
public RelaxngGrammarContentList Includes {
|
||||
get { return includes; }
|
||||
}
|
||||
|
||||
public IList Divs {
|
||||
public RelaxngGrammarContentList Divs {
|
||||
get { return divs; }
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,10 @@ namespace Commons.Xml.Relaxng
|
||||
static RelaxngMergedProvider ()
|
||||
{
|
||||
RelaxngMergedProvider p = new RelaxngMergedProvider ();
|
||||
#if !PNET
|
||||
p ["http://www.w3.org/2001/XMLSchema-datatypes"] = XsdDatatypeProvider.Instance;
|
||||
p [XSchema.Namespace] = XsdDatatypeProvider.Instance;
|
||||
#endif
|
||||
p [String.Empty] = RelaxngNamespaceDatatypeProvider.Instance;
|
||||
defaultProvider = p;
|
||||
}
|
||||
|
||||
@@ -260,7 +260,6 @@ namespace Commons.Xml.Relaxng
|
||||
|
||||
public RelaxngNameClassList Names {
|
||||
get { return names; }
|
||||
set { names = value; }
|
||||
}
|
||||
|
||||
public override void Write (XmlWriter writer)
|
||||
|
||||
@@ -121,7 +121,11 @@ namespace Commons.Xml.Relaxng
|
||||
#endregion
|
||||
|
||||
#region Grammatical elements
|
||||
public class RelaxngStart : RelaxngElementBase
|
||||
public interface IGrammarContent
|
||||
{
|
||||
}
|
||||
|
||||
public class RelaxngStart : RelaxngElementBase, IGrammarContent
|
||||
{
|
||||
RelaxngPattern p;
|
||||
string combine;
|
||||
@@ -155,7 +159,7 @@ namespace Commons.Xml.Relaxng
|
||||
}
|
||||
}
|
||||
|
||||
public class RelaxngDefine : RelaxngElementBase
|
||||
public class RelaxngDefine : RelaxngElementBase, IGrammarContent
|
||||
{
|
||||
string name;
|
||||
private RelaxngPatternList patterns = new RelaxngPatternList ();
|
||||
@@ -211,12 +215,12 @@ namespace Commons.Xml.Relaxng
|
||||
}
|
||||
}
|
||||
|
||||
public class RelaxngInclude : RelaxngElementBase
|
||||
public class RelaxngInclude : RelaxngElementBase, IGrammarContent
|
||||
{
|
||||
string href;
|
||||
IList starts = new ArrayList ();
|
||||
IList defines = new ArrayList ();
|
||||
IList divs = new ArrayList ();
|
||||
RelaxngGrammarContentList starts = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList defines = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList divs = new RelaxngGrammarContentList ();
|
||||
string ns;
|
||||
|
||||
public RelaxngInclude ()
|
||||
@@ -228,15 +232,15 @@ namespace Commons.Xml.Relaxng
|
||||
set { href = value; }
|
||||
}
|
||||
|
||||
public IList Starts {
|
||||
public RelaxngGrammarContentList Starts {
|
||||
get { return starts; }
|
||||
}
|
||||
|
||||
public IList Defines {
|
||||
public RelaxngGrammarContentList Defines {
|
||||
get { return defines; }
|
||||
}
|
||||
|
||||
public IList Divs {
|
||||
public RelaxngGrammarContentList Divs {
|
||||
get { return divs; }
|
||||
}
|
||||
|
||||
@@ -292,7 +296,7 @@ namespace Commons.Xml.Relaxng
|
||||
// starts.
|
||||
if (this.Starts.Count > 0 && g.Starts.Count == 0)
|
||||
throw new RelaxngException ("When the included grammar does not contain start components, this include component must not contain start components.");
|
||||
IList appliedStarts = (this.starts.Count > 0) ?
|
||||
RelaxngGrammarContentList appliedStarts = (this.starts.Count > 0) ?
|
||||
this.starts : g.Starts;
|
||||
|
||||
RelaxngDiv div = new RelaxngDiv ();
|
||||
@@ -325,30 +329,30 @@ namespace Commons.Xml.Relaxng
|
||||
}
|
||||
}
|
||||
|
||||
public class RelaxngDiv : RelaxngElementBase
|
||||
public class RelaxngDiv : RelaxngElementBase, IGrammarContent
|
||||
{
|
||||
IList starts = new ArrayList ();
|
||||
IList defines = new ArrayList ();
|
||||
IList includes = new ArrayList ();
|
||||
IList divs = new ArrayList ();
|
||||
RelaxngGrammarContentList starts = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList defines = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList includes = new RelaxngGrammarContentList ();
|
||||
RelaxngGrammarContentList divs = new RelaxngGrammarContentList ();
|
||||
|
||||
public RelaxngDiv ()
|
||||
{
|
||||
}
|
||||
|
||||
public IList Starts {
|
||||
public RelaxngGrammarContentList Starts {
|
||||
get { return starts; }
|
||||
}
|
||||
|
||||
public IList Defines {
|
||||
public RelaxngGrammarContentList Defines {
|
||||
get { return defines; }
|
||||
}
|
||||
|
||||
public IList Includes {
|
||||
public RelaxngGrammarContentList Includes {
|
||||
get { return includes; }
|
||||
}
|
||||
|
||||
public IList Divs {
|
||||
public RelaxngGrammarContentList Divs {
|
||||
get { return divs; }
|
||||
}
|
||||
|
||||
@@ -480,6 +484,33 @@ namespace Commons.Xml.Relaxng
|
||||
}
|
||||
}
|
||||
|
||||
public class RelaxngGrammarContentList : CollectionBase
|
||||
{
|
||||
public RelaxngGrammarContentList ()
|
||||
{
|
||||
}
|
||||
|
||||
public void Add (IGrammarContent p)
|
||||
{
|
||||
List.Add (p);
|
||||
}
|
||||
|
||||
public IGrammarContent this [int i] {
|
||||
get { return this.List [i] as IGrammarContent; }
|
||||
set { this.List [i] = value; }
|
||||
}
|
||||
|
||||
public void Insert (int pos, IGrammarContent p)
|
||||
{
|
||||
List.Insert (pos, p);
|
||||
}
|
||||
|
||||
public void Remove (IGrammarContent p)
|
||||
{
|
||||
List.Remove (p);
|
||||
}
|
||||
}
|
||||
|
||||
// strict to say, it's not a pattern ;)
|
||||
public class RelaxngNotAllowed : RelaxngPattern
|
||||
{
|
||||
@@ -1317,7 +1348,7 @@ namespace Commons.Xml.Relaxng
|
||||
}
|
||||
}
|
||||
|
||||
public class RelaxngRefPattern
|
||||
internal class RelaxngRefPattern
|
||||
{
|
||||
RelaxngPattern patternRef;
|
||||
string name;
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Commons.Xml.Relaxng
|
||||
ZeroOrMore = 17, // no use in derivative
|
||||
Mixed = 18, // no use in derivative
|
||||
Optional = 19, // no use in derivative
|
||||
Include = 20, // no use in derivative
|
||||
// Include = 20, // no use in derivative
|
||||
ExternalRef = 21, // no use in derivative
|
||||
ParentRef = 22, // no use in derivative
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-05-30 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* RncTests.cs : fixed test that got impossible to build anymore.
|
||||
|
||||
2004-05-08 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* RelaxngValidatingReaderTests.cs: this compiled with mcs but fails with
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace MonoTests.Commons.Xml.Relaxng
|
||||
{
|
||||
RncParser parser = new RncParser (new NameTable ());
|
||||
using (StreamReader sr = new StreamReader ("Test/XmlFiles/relaxng.rnc")) {
|
||||
RelaxngGrammar g = parser.Parse (sr);
|
||||
RelaxngPattern g = parser.Parse (sr);
|
||||
g.Compile ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* anglia-test-runner.cs : Added support for RELAX NG compact syntax
|
||||
parser tests.
|
||||
* Makefile : added anglia-test support.
|
||||
* README : ditto.
|
||||
|
||||
2004-02-25 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Added README, Makefile, relaxngtest.cs, prep.xsl, copying.html
|
||||
|
||||
@@ -1,26 +1,44 @@
|
||||
RUNTIME = mono
|
||||
MCS_RUNTIME =
|
||||
MCS = mcs
|
||||
|
||||
TESTS = relax-ng/001/i.rng
|
||||
TEST_ARCHIVE = testSuite.zip
|
||||
|
||||
RNCTESTS = test/RNCTest.xml
|
||||
RNCTEST_ARCHIVE = anglia-test-suite.zip
|
||||
|
||||
all : relaxngtest.exe anglia-test-runner.exe
|
||||
|
||||
relaxngtest.exe : relaxngtest.cs $(TESTS)
|
||||
$(MCS_RUNTIME) $(MCS) relaxngtest.cs -r:Commons.Xml.Relaxng.dll
|
||||
$(MCS_RUNTIME) $(MCS) -debug+ relaxngtest.cs -r:Commons.Xml.Relaxng.dll
|
||||
|
||||
anglia-test-runner.exe : anglia-test-runner.cs $(RNCTESTS)
|
||||
$(MCS_RUNTIME) $(MCS) -debug+ anglia-test-runner.cs -r:Commons.Xml.Relaxng.dll
|
||||
|
||||
$(TESTS) : $(TEST_ARCHIVE) relax-ng
|
||||
cd relax-ng; unzip -n ../$(TEST_ARCHIVE); \
|
||||
xsltproc split.xsl spectest.xml; cd ..; \
|
||||
cp prep.xsl relax-ng
|
||||
|
||||
$(RNCTESTS) : $(RNCTEST_ARCHIVE)
|
||||
unzip -n anglia-test-suite.zip
|
||||
|
||||
$(TEST_ARCHIVE) :
|
||||
wget http://www.thaiopensource.com/relaxng/testSuite.zip
|
||||
|
||||
$(RNCTEST_ARCHIVE) :
|
||||
wget http://www.jeffrafter.com/anglia/anglia-test-suite.zip
|
||||
|
||||
relax-ng:
|
||||
mkdir relax-ng
|
||||
|
||||
test :
|
||||
test : relaxngtest.exe
|
||||
$(RUNTIME) relaxngtest.exe
|
||||
|
||||
anglia-test : anglia-test-runner.exe
|
||||
$(RUNTIME) anglia-test-runner.exe
|
||||
|
||||
# be careful to use it. This removes ALL files in xml-test-suite!
|
||||
# clean:
|
||||
# rm -rf xml-test-suite
|
||||
@@ -1,17 +1,41 @@
|
||||
* standalone RELAX NG test program for the Test Suite
|
||||
|
||||
** Introduction
|
||||
* Standalone test collection for Commons.Xml.Relaxng.dll
|
||||
|
||||
** standalone RELAX NG test program for the Test Suite
|
||||
|
||||
It is a test runner for James Clark's test collection.
|
||||
|
||||
prep.xsl is included in Jing (a Java implementation of RELAX NG validator).
|
||||
copying.html is license information for prep.xsl and relaxng.rng.
|
||||
prep.xsl is originally included in Jing (a Java implementation of RELAX NG
|
||||
validator). copying.html is license information for prep.xsl and relaxng.rng.
|
||||
|
||||
** Usage
|
||||
|
||||
To set up test runner, you need xsltproc, which is included in libxslt.
|
||||
** standalone RELAX NG Compact Syntax test program for the "anglia" test suite
|
||||
|
||||
It is a test runner for Jeff Rafter's "anglia" RNC test collection.
|
||||
|
||||
|
||||
** How to build
|
||||
|
||||
NOTE: To set up test runner, you need xsltproc, which is included in libxslt.
|
||||
(Since the stylesheet uses extensions, we cannot use our xslt engine.)
|
||||
|
||||
"make" will download the test collection from http://www.thaiopensource.com/relaxng/testSuite.zip , run xsltproc and create test directories and files.
|
||||
"make" will do the same as "make relaxngtest.exe" and
|
||||
"make anglia-test-runner.exe".
|
||||
|
||||
"make relaxngtest.exe" will download the test collection from
|
||||
http://www.thaiopensource.com/relaxng/testSuite.zip and then run
|
||||
xsltproc to split tests and create test directories and files, and finally
|
||||
will compile relaxngtest.cs.
|
||||
|
||||
"make anglia-test-runner.exe" will download the test collection from
|
||||
http://www.jeffrafter.com/anglia/anglia-test-suite.zip , and then will expand
|
||||
that archive, and finally will compile anglia-test-runner.cs.
|
||||
|
||||
|
||||
*** How to run
|
||||
|
||||
"make test" will run relaxngtest.exe and will output the error cases.
|
||||
|
||||
"make anglia-test" will run anglia-test-runner.exe and will output the
|
||||
error cases.
|
||||
|
||||
"make test" will run the test program and will output the error cases.
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using Commons.Xml.Relaxng;
|
||||
using Commons.Xml.Relaxng.Rnc;
|
||||
|
||||
public class Driver
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
try {
|
||||
XmlDocument doc = new XmlDocument ();
|
||||
doc.Load ("test/RNCTest.xml");
|
||||
int success = 0;
|
||||
int failure = 0;
|
||||
foreach (XmlElement el in doc.SelectNodes ("/RNCTestCases/TestCase")) {
|
||||
string id = el.GetAttribute ("id");
|
||||
bool isValid = el.GetAttribute ("legal") == "true";
|
||||
RncParser p = new RncParser (new NameTable ());
|
||||
try {
|
||||
string s = new StreamReader ("test" + Path.DirectorySeparatorChar + el.GetAttribute ("path")).ReadToEnd ();
|
||||
p.Parse (new StringReader (s));
|
||||
if (isValid) {
|
||||
success++;
|
||||
// Console.Error.WriteLine ("valid " + id);
|
||||
} else {
|
||||
failure++;
|
||||
Console.Error.WriteLine ("INCORRECTLY VALID " + id);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
if (isValid) {
|
||||
failure++;
|
||||
Console.Error.WriteLine ("INCORRECTLY INVALID " + id + " --> " + ex.Message);
|
||||
} else {
|
||||
success++;
|
||||
// Console.Error.WriteLine ("invalid " + id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Console.Error.WriteLine ("Total success: " + success);
|
||||
Console.Error.WriteLine ("Total failure: " + failure);
|
||||
} catch (Exception ex) {
|
||||
Console.Error.WriteLine ("Unexpected Exception: " + ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-05-31 Rafael Teixeira <[email protected]>
|
||||
* Financial.cs:
|
||||
Correct IRR and MIRR method signatures and prevent public default constructor, all according to Class Status Page (corcompare)
|
||||
|
||||
2004-04-26 Rafael Teixeira <[email protected]>
|
||||
* DateAndTime.cs:
|
||||
Catch FormatException and rethrow as InvalidCastException in:
|
||||
|
||||
@@ -8,13 +8,15 @@
|
||||
//
|
||||
|
||||
using System;
|
||||
using Microsoft.VisualBasic.CompilerServices;
|
||||
|
||||
namespace Microsoft.VisualBasic
|
||||
{
|
||||
[Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute]
|
||||
[StandardModule]
|
||||
sealed public class Financial {
|
||||
// Declarations
|
||||
// Constructors
|
||||
private Financial() {} // prevent public default constructor
|
||||
// Properties
|
||||
// Methods
|
||||
[MonoTODO]
|
||||
@@ -24,9 +26,9 @@ namespace Microsoft.VisualBasic
|
||||
[MonoTODO]
|
||||
public static System.Double IPmt (System.Double Rate, System.Double Per, System.Double NPer, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] ref System.Double Guess) { throw new NotImplementedException (); }
|
||||
public static System.Double IRR (ref System.Double[] ValueArray, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0.1)] System.Double Guess) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double MIRR (ref System.Double[] ValueArray, ref System.Double FinanceRate, ref System.Double ReinvestRate) { throw new NotImplementedException (); }
|
||||
public static System.Double MIRR (ref System.Double[] ValueArray, System.Double FinanceRate, System.Double ReinvestRate) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
public static System.Double NPer (System.Double Rate, System.Double Pmt, System.Double PV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] System.Double FV, [System.Runtime.InteropServices.Optional] [System.ComponentModel.DefaultValue(0)] Microsoft.VisualBasic.DueDate Due) { throw new NotImplementedException (); }
|
||||
[MonoTODO]
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-05-30 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Mono.Data.SqliteClient.dll.sources: added SqliteTransaction.cs
|
||||
|
||||
* Mono.Data.SqliteClient/SqliteConnection.cs:
|
||||
* Mono.Data.SqliteClient/SqliteTransaction.cs: patch from
|
||||
[email protected] that adds transactions support.
|
||||
|
||||
2004-04-29 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* Mono.Data.SqliteClient/SqliteCommand.cs: implement LastInsertRowId.
|
||||
|
||||
@@ -5,3 +5,4 @@ Mono.Data.SqliteClient/SqliteConnection.cs
|
||||
Mono.Data.SqliteClient/SqliteDataReader.cs
|
||||
Mono.Data.SqliteClient/SqliteParameter.cs
|
||||
Mono.Data.SqliteClient/SqliteParameterCollection.cs
|
||||
Mono.Data.SqliteClient/SqliteTransaction.cs
|
||||
@@ -174,8 +174,16 @@ namespace Mono.Data.SqliteClient
|
||||
}
|
||||
|
||||
public IDbTransaction BeginTransaction ()
|
||||
{
|
||||
return null;
|
||||
{
|
||||
if (state != ConnectionState.Open)
|
||||
throw new InvalidOperationException("Invalid operation: The connection is close");
|
||||
|
||||
SqliteTransaction t = new SqliteTransaction();
|
||||
t.Connection = this;
|
||||
SqliteCommand cmd = this.CreateCommand();
|
||||
cmd.CommandText = "BEGIN";
|
||||
cmd.ExecuteNonQuery();
|
||||
return t;
|
||||
}
|
||||
|
||||
public IDbTransaction BeginTransaction (IsolationLevel il)
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
// Mono.Data.SqliteClient data access components for .Net
|
||||
// Derived from ByteFX.Data
|
||||
// With permission from Reggie Burnett to relicense under MIT/X11
|
||||
|
||||
using System;
|
||||
using System.Data;
|
||||
|
||||
namespace Mono.Data.SqliteClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a SQL transaction to be made in a Sqlite database. This class cannot be inherited.
|
||||
/// </summary>
|
||||
public sealed class SqliteTransaction : IDbTransaction
|
||||
{
|
||||
private IsolationLevel _level;
|
||||
private SqliteConnection _conn;
|
||||
private bool _open;
|
||||
|
||||
internal SqliteTransaction()
|
||||
{
|
||||
_open = true;
|
||||
}
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="SqliteConnection"/> object associated with the transaction, or a null reference (Nothing in Visual Basic) if the transaction is no longer valid.
|
||||
/// </summary>
|
||||
public IDbConnection Connection
|
||||
{
|
||||
get { return _conn; }
|
||||
set { _conn = (SqliteConnection)value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the <see cref="IsolationLevel"/> for this transaction.
|
||||
/// </summary>
|
||||
public IsolationLevel IsolationLevel
|
||||
{
|
||||
get { return _level; }
|
||||
set { _level = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
void System.IDisposable.Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Commits the database transaction.
|
||||
/// </summary>
|
||||
public void Commit()
|
||||
{
|
||||
if (_conn == null || _conn.State != ConnectionState.Open)
|
||||
throw new InvalidOperationException("Connection must be valid and open to commit transaction");
|
||||
if (!_open)
|
||||
throw new InvalidOperationException("Transaction has already been committed or is not pending");
|
||||
try
|
||||
{
|
||||
SqliteCommand cmd = _conn.CreateCommand();
|
||||
cmd.CommandText = "COMMIT";
|
||||
cmd.ExecuteNonQuery();
|
||||
_open = false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overloaded. Rolls back a transaction from a pending state.
|
||||
/// </summary>
|
||||
public void Rollback()
|
||||
{
|
||||
if (_conn == null || _conn.State != ConnectionState.Open)
|
||||
throw new InvalidOperationException("Connection must be valid and open to commit transaction");
|
||||
if (!_open)
|
||||
throw new InvalidOperationException("Transaction has already been rolled back or is not pending");
|
||||
try
|
||||
{
|
||||
SqliteCommand cmd = _conn.CreateCommand();
|
||||
cmd.CommandText = "COMMIT";
|
||||
cmd.ExecuteNonQuery();
|
||||
_open = false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,10 @@
|
||||
2004-05-31 Rafael Teixeira <[email protected]>
|
||||
* OptionDetails.cs : ShortForm member now a string to favor some simplifications, fixes for Bug 58672
|
||||
* OptionList.cs : Fixes for Bug 58672 and better handling for mixed-form options (linux/windows)
|
||||
|
||||
2004-05-31 Rafael Teixeira <[email protected]>
|
||||
* OptionDetails.cs: Assemble an one-line authors' list in about processor (also abandon after about)
|
||||
|
||||
2004-04-08 Rafael Teixeira <[email protected]>
|
||||
* OptionDetails.cs: Implemented Jonathan Pryor request for multiplicity in boolean properties
|
||||
|
||||
|
||||
@@ -28,13 +28,14 @@ namespace Mono.GetOptions
|
||||
|
||||
internal class OptionDetails : IComparable
|
||||
{
|
||||
public char ShortForm;
|
||||
public string ShortForm;
|
||||
public string LongForm;
|
||||
public string AlternateForm;
|
||||
public string ShortDescription;
|
||||
public bool NeedsParameter;
|
||||
public int MaxOccurs; // negative means there is no limit
|
||||
public int Occurs;
|
||||
public bool BooleanOption;
|
||||
public Options OptionBundle;
|
||||
public MemberInfo MemberInfo;
|
||||
public ArrayList Values;
|
||||
@@ -74,6 +75,7 @@ namespace Mono.GetOptions
|
||||
// TODO: Yet not that good
|
||||
string shortPrefix;
|
||||
string longPrefix;
|
||||
bool hasLongForm = (this.LongForm != null && this.LongForm != string.Empty);
|
||||
if(this.OptionBundle.ParsingMode == Mono.GetOptions.OptionsParsingMode.Windows)
|
||||
{
|
||||
shortPrefix = "/";
|
||||
@@ -85,11 +87,11 @@ namespace Mono.GetOptions
|
||||
longPrefix = "--";
|
||||
}
|
||||
optionHelp = " ";
|
||||
optionHelp += (this.ShortForm != ' ') ? shortPrefix+this.ShortForm+" " : " ";
|
||||
optionHelp += (this.LongForm != string.Empty && this.LongForm != null) ? longPrefix+this.LongForm : "";
|
||||
optionHelp += (this.ShortForm != string.Empty) ? shortPrefix+this.ShortForm+" " : " ";
|
||||
optionHelp += hasLongForm ? longPrefix+this.LongForm : "";
|
||||
if (NeedsParameter)
|
||||
{
|
||||
if (this.LongForm != string.Empty && this.LongForm != null)
|
||||
if (hasLongForm)
|
||||
optionHelp += ":";
|
||||
optionHelp += ParamName;
|
||||
}
|
||||
@@ -125,12 +127,13 @@ namespace Mono.GetOptions
|
||||
|
||||
public OptionDetails(MemberInfo memberInfo, OptionAttribute option, Options optionBundle)
|
||||
{
|
||||
this.ShortForm = option.ShortForm;
|
||||
this.ShortForm = ("" + option.ShortForm).Trim();
|
||||
this.LongForm = (option.LongForm == string.Empty)? memberInfo.Name:option.LongForm;
|
||||
this.AlternateForm = option.AlternateForm;
|
||||
this.ShortDescription = option.ShortDescription;
|
||||
this.Occurs = 0;
|
||||
this.OptionBundle = optionBundle;
|
||||
this.BooleanOption = false;
|
||||
this.MemberInfo = memberInfo;
|
||||
this.NeedsParameter = false;
|
||||
this.Values = null;
|
||||
@@ -166,6 +169,7 @@ namespace Mono.GetOptions
|
||||
}
|
||||
else
|
||||
{
|
||||
this.BooleanOption = true;
|
||||
if (option.MaxOccurs != 1)
|
||||
{
|
||||
if (this.MemberInfo is MethodInfo || this.MemberInfo is PropertyInfo)
|
||||
@@ -180,7 +184,7 @@ namespace Mono.GetOptions
|
||||
|
||||
internal string Key
|
||||
{
|
||||
get { return ((this.ShortForm != ' ') ? this.ShortForm + "" : "") + this.LongForm; }
|
||||
get { return this.ShortForm + this.LongForm; }
|
||||
}
|
||||
|
||||
int IComparable.CompareTo(object other)
|
||||
@@ -217,7 +221,7 @@ namespace Mono.GetOptions
|
||||
throw new IndexOutOfRangeException("Option " + ShortForm + " can be used at most " + MaxOccurs + " times");
|
||||
}
|
||||
|
||||
private void DoIt()
|
||||
private void DoIt(bool setValue)
|
||||
{
|
||||
if (!NeedsParameter)
|
||||
{
|
||||
@@ -228,12 +232,12 @@ namespace Mono.GetOptions
|
||||
|
||||
if (MemberInfo is FieldInfo)
|
||||
{
|
||||
((FieldInfo)MemberInfo).SetValue(OptionBundle, true);
|
||||
((FieldInfo)MemberInfo).SetValue(OptionBundle, setValue);
|
||||
return;
|
||||
}
|
||||
if (MemberInfo is PropertyInfo)
|
||||
{
|
||||
((PropertyInfo)MemberInfo).SetValue(OptionBundle, true, null);
|
||||
((PropertyInfo)MemberInfo).SetValue(OptionBundle, setValue, null);
|
||||
return;
|
||||
}
|
||||
if ((WhatToDoNext)((MethodInfo)MemberInfo).Invoke(OptionBundle, null) == WhatToDoNext.AbandonProgram)
|
||||
@@ -287,17 +291,12 @@ namespace Mono.GetOptions
|
||||
}
|
||||
}
|
||||
|
||||
private bool StartsLikeAnOption(string arg)
|
||||
{
|
||||
return (arg != null && arg[0] == '-');
|
||||
}
|
||||
|
||||
private bool IsThisOption(string arg)
|
||||
{
|
||||
if (StartsLikeAnOption(arg))
|
||||
if (arg != null && arg != string.Empty)
|
||||
{
|
||||
arg = arg.TrimStart('-');
|
||||
return (arg == "" + ShortForm || arg == LongForm || arg == AlternateForm);
|
||||
arg = arg.TrimStart('-', '/');
|
||||
return (arg == ShortForm || arg == LongForm || arg == AlternateForm);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -308,27 +307,19 @@ namespace Mono.GetOptions
|
||||
{
|
||||
if (!NeedsParameter)
|
||||
{
|
||||
DoIt();
|
||||
DoIt(true); // in preparation for vbc-like booleans
|
||||
return OptionProcessingResult.OptionAlone;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (StartsLikeAnOption(nextArg))
|
||||
{
|
||||
DoIt(null);
|
||||
return OptionProcessingResult.OptionAlone;
|
||||
}
|
||||
else
|
||||
{
|
||||
DoIt(nextArg);
|
||||
return OptionProcessingResult.OptionConsumedParameter;
|
||||
}
|
||||
DoIt(nextArg);
|
||||
return OptionProcessingResult.OptionConsumedParameter;
|
||||
}
|
||||
}
|
||||
|
||||
if (IsThisOption(arg + ":" + nextArg))
|
||||
{
|
||||
DoIt();
|
||||
DoIt(true);
|
||||
return OptionProcessingResult.OptionConsumedParameter;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Mono.GetOptions
|
||||
{
|
||||
@@ -48,6 +49,12 @@ namespace Mono.GetOptions
|
||||
private ArrayList argumentsTail = new ArrayList();
|
||||
private MethodInfo argumentProcessor = null;
|
||||
|
||||
internal bool MaybeAnOption(string arg)
|
||||
{
|
||||
return ((parsingMode & OptionsParsingMode.Windows) > 0 && arg[0] == '/') ||
|
||||
((parsingMode & OptionsParsingMode.Linux) > 0 && arg[0] == '-');
|
||||
}
|
||||
|
||||
public string Usage
|
||||
{
|
||||
get
|
||||
@@ -189,10 +196,17 @@ namespace Mono.GetOptions
|
||||
{
|
||||
ShowTitleLines();
|
||||
Console.WriteLine(appAboutDetails);
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Authors:");
|
||||
StringBuilder sb = new StringBuilder("Authors: ");
|
||||
bool first = true;
|
||||
foreach(string s in appAuthors)
|
||||
Console.WriteLine ("\t" + s);
|
||||
{
|
||||
if (first)
|
||||
first = false;
|
||||
else
|
||||
sb.Append(", ");
|
||||
sb.Append(s);
|
||||
}
|
||||
Console.WriteLine(sb.ToString());
|
||||
}
|
||||
|
||||
private void ShowHelp()
|
||||
@@ -209,7 +223,7 @@ namespace Mono.GetOptions
|
||||
Console.WriteLine(Usage);
|
||||
Console.Write("Short Options: ");
|
||||
foreach (OptionDetails option in list)
|
||||
Console.Write((option.ShortForm != ' ') ? option.ShortForm.ToString() : "");
|
||||
Console.Write(option.ShortForm.Trim());
|
||||
Console.WriteLine();
|
||||
|
||||
}
|
||||
@@ -229,7 +243,7 @@ namespace Mono.GetOptions
|
||||
internal WhatToDoNext DoAbout()
|
||||
{
|
||||
ShowAbout();
|
||||
return WhatToDoNext.GoAhead;
|
||||
return WhatToDoNext.AbandonProgram;
|
||||
}
|
||||
|
||||
internal WhatToDoNext DoHelp()
|
||||
@@ -296,35 +310,19 @@ namespace Mono.GetOptions
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg[0] == '/')
|
||||
if ((parsingMode & OptionsParsingMode.Linux) > 0 &&
|
||||
arg[0] == '-' && arg[1] != '-' &&
|
||||
breakSingleDashManyLettersIntoManyOptions)
|
||||
{
|
||||
if ((parsingMode & OptionsParsingMode.Windows) > 0)
|
||||
{
|
||||
string newArg = '-' + arg.TrimStart('/');
|
||||
result.AddRange(newArg.Split(':'));
|
||||
continue;
|
||||
}
|
||||
foreach(char c in arg.Substring(1)) // many single-letter options
|
||||
result.Add("-" + c); // expand into individualized options
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((parsingMode & OptionsParsingMode.Linux) > 0)
|
||||
if (MaybeAnOption(arg))
|
||||
{
|
||||
if ((arg[0] == '-') && (arg[1] != '-'))
|
||||
{
|
||||
if (breakSingleDashManyLettersIntoManyOptions)
|
||||
{
|
||||
foreach(char c in arg.Substring(1)) // many single-letter options
|
||||
result.Add("-" + c); // expand into individualized options
|
||||
}
|
||||
else
|
||||
result.Add(arg);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (arg.StartsWith("--"))
|
||||
{
|
||||
result.AddRange(arg.Split('=')); // put in the same form of one-letter options with a parameter
|
||||
continue;
|
||||
}
|
||||
result.AddRange(arg.Split(':','='));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -364,7 +362,7 @@ namespace Mono.GetOptions
|
||||
|
||||
OptionWasProcessed = false;
|
||||
|
||||
if (arg.StartsWith("-"))
|
||||
if (arg.StartsWith("-") || arg.StartsWith("/"))
|
||||
{
|
||||
foreach(OptionDetails option in list)
|
||||
{
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2004-05-29 Francisco Figueiredo Jr. <[email protected]>
|
||||
* Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
|
||||
It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
|
||||
([email protected]) for the patch.
|
||||
|
||||
2004-05-24 Francisco Figueiredo Jr. <[email protected]>
|
||||
* Npgsql/NpgsqlConnection.cs: Fixed bug when handling Unicode connections.
|
||||
Fixes Gborg bug 752.
|
||||
Thanks [email protected] for the patch.
|
||||
|
||||
2004-05-23 Francisco Figueiredo Jr. <[email protected]>
|
||||
|
||||
* Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
|
||||
|
||||
@@ -698,6 +698,17 @@ namespace Npgsql
|
||||
|
||||
throw new FormatException(String.Format("Internal: Backend sent bad version string: {0}", VersionString));
|
||||
}
|
||||
|
||||
// workaround for 7.3.4-RH version from RedHat
|
||||
|
||||
|
||||
int ndx = Parts[2].IndexOf("-");
|
||||
|
||||
if (ndx != -1)
|
||||
{
|
||||
Parts[2] = Parts[2].Substring(0, ndx);
|
||||
}
|
||||
|
||||
|
||||
return new ServerVersion(
|
||||
Convert.ToInt32(Parts[0]),
|
||||
|
||||
@@ -30,7 +30,11 @@ namespace System.Data.Common {
|
||||
[Obsolete ("use DBDataPermission (PermissionState.None)", true)]
|
||||
#endif
|
||||
protected DBDataPermission ()
|
||||
#if NET_2_0
|
||||
: this (PermissionState.None)
|
||||
#else
|
||||
: this (PermissionState.None, false)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,11 @@ namespace System.Data.SqlClient {
|
||||
|
||||
[Obsolete ("Use SqlClientPermission(PermissionState.None)", true)]
|
||||
public SqlClientPermission ()
|
||||
#if NET_2_0
|
||||
: this (PermissionState.None)
|
||||
#else
|
||||
// : this (PermissionState.None, false)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
@@ -41,6 +45,9 @@ namespace System.Data.SqlClient {
|
||||
|
||||
[Obsolete ("Use SqlClientPermission(PermissionState.None)", true)]
|
||||
public SqlClientPermission (PermissionState state, bool allowBlankPassword)
|
||||
#if NET_2_0
|
||||
: this (state)
|
||||
#endif
|
||||
{
|
||||
AllowBlankPassword = allowBlankPassword;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,32 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* DataSet.cs : Loop-break of the last fix was incorrect.
|
||||
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* DataSet.cs : When a row has no parent row but the table has parent
|
||||
relation(s), that row had been always ignored.
|
||||
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDataInferenceLoader.cs : Fixed GetMappedTable() that incorrectly
|
||||
rejected same-named tables in different hierarchy. Thanks to Boris.
|
||||
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDiffLoader.cs : Added some Skip() that is required not to go to
|
||||
infinite loop. Thanks to Boris for this fix.
|
||||
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDataInferenceLoader.cs : XmlSchema elements should not be infered.
|
||||
Thanks to Boris for this fix.
|
||||
|
||||
2004-05-30 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* DataTable.cs : serialization .ctor() should use XmlReadMode.DiffGram
|
||||
for ReadXml(). Thanks to Boris.
|
||||
|
||||
2004-05-27 Boris Kirzner <[email protected]>
|
||||
* DataRow.cs :
|
||||
- CheckReadOnlyStatus : use typed (and faster comparing).
|
||||
|
||||
@@ -1117,13 +1117,14 @@ namespace System.Data {
|
||||
//part of another table structure via a nested parent relationship
|
||||
foreach (DataTable table in tableCollection) {
|
||||
bool isTopLevel = true;
|
||||
/*
|
||||
foreach (DataRelation rel in table.ParentRelations) {
|
||||
if (rel.Nested) {
|
||||
isTopLevel = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
if (isTopLevel) {
|
||||
WriteTable ( writer, table, mode, version);
|
||||
}
|
||||
@@ -1150,8 +1151,30 @@ namespace System.Data {
|
||||
SplitColumns (table, out atts, out elements, out simple);
|
||||
//sort out the namespacing
|
||||
string nspc = table.Namespace.Length > 0 ? table.Namespace : Namespace;
|
||||
int relationCount = table.ParentRelations.Count;
|
||||
DataRelation oneRel = relationCount == 1 ? table.ParentRelations [0] : null;
|
||||
|
||||
foreach (DataRow row in rows) {
|
||||
// Skip rows that is a child of any tables.
|
||||
switch (relationCount) {
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
if (row.GetParentRow (oneRel) != null)
|
||||
continue;
|
||||
break;
|
||||
case 2:
|
||||
bool skip = false;
|
||||
for (int i = 0; i < table.ParentRelations.Count; i++)
|
||||
if (row.GetParentRow (table.ParentRelations [i]) != null) {
|
||||
skip = true;
|
||||
continue;
|
||||
}
|
||||
if (skip)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!row.HasVersion(version) ||
|
||||
(mode == XmlWriteMode.DiffGram && row.RowState == DataRowState.Unchanged
|
||||
&& version == DataRowVersion.Original))
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace System.Data {
|
||||
ds.Tables [0].CopyProperties (this);
|
||||
ds = new DataSet ();
|
||||
ds.Tables.Add (this);
|
||||
ds.ReadXml (new StringReader (data), XmlReadMode.IgnoreSchema);
|
||||
ds.ReadXml (new StringReader (data), XmlReadMode.DiffGram);
|
||||
ds.Tables.Remove (this);
|
||||
/* keeping for a while. With the change above, we shouldn't have to consider
|
||||
* DataTable mode in schema inference/read.
|
||||
|
||||
@@ -15,6 +15,7 @@ using System.Data;
|
||||
using System.IO; // for Driver
|
||||
using System.Text; // for Driver
|
||||
using System.Xml;
|
||||
using System.Xml.Schema;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace System.Data
|
||||
@@ -165,9 +166,12 @@ namespace System.Data
|
||||
dataset.DataSetName = localName;
|
||||
dataset.Namespace = el.NamespaceURI;
|
||||
dataset.Prefix = el.Prefix;
|
||||
foreach (XmlNode n in el.ChildNodes)
|
||||
foreach (XmlNode n in el.ChildNodes) {
|
||||
if (n.NamespaceURI == XmlSchema.Namespace)
|
||||
continue;
|
||||
if (n.NodeType == XmlNodeType.Element)
|
||||
InferTopLevelTable (n as XmlElement);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (TableMapping map in tables) {
|
||||
@@ -374,7 +378,7 @@ namespace System.Data
|
||||
{
|
||||
TableMapping map = tables [tableName];
|
||||
if (map != null) {
|
||||
if (map.ParentTable != parent)
|
||||
if (parent != null && map.ParentTable != null && map.ParentTable != parent)
|
||||
throw new DataException (String.Format ("The table {0} is already allocated as another table's child table.", tableName));
|
||||
} else {
|
||||
map = new TableMapping (tableName, ns);
|
||||
|
||||
@@ -93,8 +93,10 @@ namespace System.Data {
|
||||
|
||||
private void LoadCurrent (XmlReader reader)
|
||||
{
|
||||
if (reader.IsEmptyElement) return;
|
||||
|
||||
if (reader.IsEmptyElement) {
|
||||
reader.Skip ();
|
||||
return;
|
||||
}
|
||||
reader.ReadStartElement (); // Dataset root
|
||||
reader.MoveToContent ();
|
||||
|
||||
@@ -122,8 +124,10 @@ namespace System.Data {
|
||||
|
||||
private void LoadBefore (XmlReader reader)
|
||||
{
|
||||
if (reader.IsEmptyElement) return;
|
||||
|
||||
if (reader.IsEmptyElement) {
|
||||
reader.Skip ();
|
||||
return;
|
||||
}
|
||||
reader.ReadStartElement ();
|
||||
reader.MoveToContent ();
|
||||
|
||||
@@ -147,8 +151,10 @@ namespace System.Data {
|
||||
|
||||
private void LoadErrors (XmlReader reader)
|
||||
{
|
||||
if (reader.IsEmptyElement) return;
|
||||
|
||||
if (reader.IsEmptyElement) {
|
||||
reader.Skip ();
|
||||
return;
|
||||
}
|
||||
reader.ReadStartElement ();
|
||||
reader.MoveToContent ();
|
||||
|
||||
@@ -184,8 +190,10 @@ namespace System.Data {
|
||||
|
||||
private void LoadColumns (DataTable Table, DataRow Row, XmlReader reader, DataRowVersion loadType)
|
||||
{
|
||||
if (reader.IsEmptyElement) return;
|
||||
|
||||
if (reader.IsEmptyElement) {
|
||||
reader.Skip ();
|
||||
return;
|
||||
}
|
||||
reader.ReadStartElement ();
|
||||
reader.MoveToContent ();
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* DataTableTest.cs : Added test for serialization by Boris Kirzner.
|
||||
* DataSetInferXmlSchemaTest.cs : Added test for schema element skip
|
||||
by Boris Kirzner.
|
||||
|
||||
2004-05-27 Nick Drochak <[email protected]>
|
||||
|
||||
* DataRelationCollectionTest.cs: Fixed build when using csc.
|
||||
|
||||
@@ -475,5 +475,35 @@ namespace MonoTests.System.Data
|
||||
// a:foo is ignored
|
||||
AssertDataTable ("dt", ds.Tables [0], "root", 1, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ContainsSchema ()
|
||||
{
|
||||
DataSet ds = new DataSet();
|
||||
DataTable dt1 = new DataTable();
|
||||
ds.Tables.Add(dt1);
|
||||
DataColumn dc1 = new DataColumn("Col1");
|
||||
dt1.Columns.Add(dc1);
|
||||
dt1.Rows.Add(new string[] { "aaa" } );
|
||||
DataTable dt2 = new DataTable();
|
||||
ds.Tables.Add(dt2);
|
||||
DataColumn dc2 = new DataColumn("Col2");
|
||||
dt2.Columns.Add(dc2);
|
||||
dt2.Rows.Add(new string[] { "bbb" } );
|
||||
|
||||
DataRelation rel = new DataRelation("Rel1",dc1,dc2,false);
|
||||
ds.Relations.Add(rel);
|
||||
|
||||
StringWriter sw = new StringWriter ();
|
||||
ds.WriteXml(sw, XmlWriteMode.WriteSchema);
|
||||
|
||||
ds = new DataSet();
|
||||
ds.ReadXml(new StringReader (sw.ToString ()));
|
||||
sw = new StringWriter ();
|
||||
ds.WriteXml(sw);
|
||||
XmlDocument doc = new XmlDocument ();
|
||||
doc.LoadXml (sw.ToString ());
|
||||
AssertEquals (2, doc.DocumentElement.ChildNodes.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,9 @@ using NUnit.Framework;
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Xml;
|
||||
|
||||
namespace MonoTests.System.Data
|
||||
{
|
||||
@@ -1169,5 +1172,54 @@ namespace MonoTests.System.Data
|
||||
#endif
|
||||
AssertEquals ("#A05", 0, table.ChildRelations.Count);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Serialize ()
|
||||
{
|
||||
MemoryStream fs = new MemoryStream ();
|
||||
|
||||
// Construct a BinaryFormatter and use it
|
||||
// to serialize the data to the stream.
|
||||
BinaryFormatter formatter = new BinaryFormatter();
|
||||
|
||||
// Create an array with multiple elements refering to
|
||||
// the one Singleton object.
|
||||
DataTable dt = new DataTable();
|
||||
|
||||
|
||||
dt.Columns.Add(new DataColumn("Id", typeof(string)));
|
||||
dt.Columns.Add(new DataColumn("ContactName", typeof(string)));
|
||||
dt.Columns.Add(new DataColumn("ContactTitle", typeof(string)));
|
||||
dt.Columns.Add(new DataColumn("ContactAreaCode", typeof(string)));
|
||||
dt.Columns.Add(new DataColumn("ContactPhone", typeof(string)));
|
||||
|
||||
DataRow loRowToAdd;
|
||||
loRowToAdd = dt.NewRow();
|
||||
loRowToAdd[0] = "a";
|
||||
loRowToAdd[1] = "b";
|
||||
loRowToAdd[2] = "c";
|
||||
loRowToAdd[3] = "d";
|
||||
loRowToAdd[4] = "e";
|
||||
|
||||
dt.Rows.Add(loRowToAdd);
|
||||
|
||||
DataTable[] dtarr = new DataTable[] {dt};
|
||||
|
||||
// Serialize the array elements.
|
||||
formatter.Serialize(fs, dtarr);
|
||||
|
||||
// Deserialize the array elements.
|
||||
fs.Position = 0;
|
||||
DataTable[] a2 = (DataTable[]) formatter.Deserialize(fs);
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
ds.Tables.Add(a2[0]);
|
||||
|
||||
StringWriter sw = new StringWriter ();
|
||||
ds.WriteXml(sw);
|
||||
XmlDocument doc = new XmlDocument ();
|
||||
doc.LoadXml (sw.ToString ());
|
||||
AssertEquals (5, doc.DocumentElement.FirstChild.ChildNodes.Count);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,9 @@
|
||||
2004-05-31 Ravindra <[email protected]>
|
||||
|
||||
* pie.cs: Made the output image little organized and added a
|
||||
case where DrawPie and FillPie were crashing the system. It
|
||||
was happening with zero degree sweep angle.
|
||||
|
||||
2004-05-04 Ravindra <[email protected]>
|
||||
|
||||
* ImageRotateFlip.cs: Changed text color from white to
|
||||
|
||||
@@ -17,7 +17,7 @@ public class graphicsUI
|
||||
public static void Main ()
|
||||
{
|
||||
|
||||
Bitmap bmp = new Bitmap (300, 300);
|
||||
Bitmap bmp = new Bitmap (400, 600);
|
||||
Graphics dc = Graphics.FromImage (bmp);
|
||||
|
||||
// Clears and set the background color to red
|
||||
@@ -28,34 +28,44 @@ public class graphicsUI
|
||||
SolidBrush yellowBrush = new SolidBrush (Color.Yellow);
|
||||
SolidBrush whiteBrush = new SolidBrush (Color.White);
|
||||
Pen bluePen = new Pen (Color.Blue);
|
||||
|
||||
Rectangle rect1 = new Rectangle (0,0, 75, 75);
|
||||
dc.DrawPie (bluePen, rect1, 10, 60);
|
||||
|
||||
Rectangle rect2 = new Rectangle (100,100, 75, 75);
|
||||
dc.DrawPie (bluePen, rect2, 100, 75);
|
||||
|
||||
Rectangle rect2a = new Rectangle (100, 200, 75, 75);
|
||||
dc.DrawPie (bluePen, rect2a, 100, 400);
|
||||
// We have a column starting at x=50 for Draw operations
|
||||
// and another column starting at x=200 for Fill operations.
|
||||
// Both the columns grow downwards.
|
||||
|
||||
// Column 1
|
||||
Rectangle rect11 = new Rectangle (50, 0, 75, 75);
|
||||
dc.DrawPie (bluePen, rect11, 10, 60);
|
||||
|
||||
Rectangle rect3 = new Rectangle (100, 0, 75, 75);
|
||||
dc.FillPie (yellowBrush, rect3, 0, 300);
|
||||
Rectangle rect12 = new Rectangle (50,100, 75, 75);
|
||||
dc.DrawPie (bluePen, rect12, 100, 75);
|
||||
|
||||
Rectangle rect13 = new Rectangle (50, 200, 75, 75);
|
||||
dc.DrawPie (bluePen, rect13, 100, 400);
|
||||
|
||||
Rectangle rect14 = new Rectangle (50, 300, 75, 75);
|
||||
dc.DrawPie (bluePen, rect14, 0, 0);
|
||||
|
||||
// Column 2
|
||||
Rectangle rect21 = new Rectangle (200, 0, 75, 75);
|
||||
dc.FillPie (yellowBrush, rect21, 0, 300);
|
||||
|
||||
Rectangle rect4 = new Rectangle (0, 100, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect4, 200, 30);
|
||||
Rectangle rect22 = new Rectangle (200, 100, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect22, 200, 30);
|
||||
|
||||
Rectangle rect4a = new Rectangle (0, 100, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect4a, 200, 400);
|
||||
Rectangle rect23 = new Rectangle (200, 200, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect23, 200, 400);
|
||||
|
||||
Rectangle rect5 = new Rectangle (200, 0, 75, 75);
|
||||
dc.FillPie (yellowBrush, rect5, 190, 300);
|
||||
Rectangle rect24 = new Rectangle (200, 300, 75, 75);
|
||||
dc.FillPie (yellowBrush, rect24, 190, 300);
|
||||
|
||||
Rectangle rect6 = new Rectangle (200, 100, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect6, 200, 20);
|
||||
Rectangle rect25 = new Rectangle (200, 400, 75, 75);
|
||||
dc.FillPie (whiteBrush, rect25, 200, 20);
|
||||
|
||||
bmp.Save("fillpie.png", ImageFormat.Png);
|
||||
}
|
||||
Rectangle rect26 = new Rectangle (200, 500, 75, 75);
|
||||
dc.FillPie (yellowBrush, rect26, 50, 0);
|
||||
|
||||
bmp.Save("fillpie.png", ImageFormat.Png);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,2 +1,10 @@
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* System.Messaging/Acknowledgment.cs: added/corrected values,
|
||||
removed TODO
|
||||
* System.Messaging/MessageQueueErrorCode.cs: fixed typo
|
||||
* System.Messaging/MessageQueueAccessRights.cs: removed extra
|
||||
enum field
|
||||
|
||||
2003-02-23 Rafael Teixeira <[email protected]>
|
||||
* added just files enough to compile a dummy DLL for now
|
||||
@@ -9,24 +9,26 @@
|
||||
using System;
|
||||
|
||||
namespace System.Messaging
|
||||
{
|
||||
[MonoTODO("Have to force the right specific values for each element")]
|
||||
{
|
||||
[Serializable]
|
||||
public enum Acknowledgment
|
||||
{
|
||||
AccessDenied,
|
||||
BadDestinationQueue,
|
||||
BadEncryption,
|
||||
BadSignature,
|
||||
CouldNotEncrypt,
|
||||
HopCountExceeded,
|
||||
None,
|
||||
NotTransactionalMessage,
|
||||
NotTransactionQueue,
|
||||
Purged,
|
||||
ReachQueue,
|
||||
ReachQueueTimeout,
|
||||
Receive,
|
||||
ReceiveTimeout
|
||||
AccessDenied = 32772,
|
||||
BadDestinationQueue = 32768,
|
||||
BadEncryption = 32775,
|
||||
BadSignature = 32774,
|
||||
CouldNotEncrypt = 32776,
|
||||
HopCountExceeded = 32773,
|
||||
None = 0,
|
||||
NotTransactionalMessage = 32778,
|
||||
NotTransactionalQueue = 32777,
|
||||
Purged = 32769,
|
||||
QueueDeleted = 49152,
|
||||
QueueExceedMaximumSize = 32771,
|
||||
QueuePurged = 49153,
|
||||
ReachQueue = 2,
|
||||
ReachQueueTimeout = 32770,
|
||||
Receive = 16384,
|
||||
ReceiveTimeout = 49154
|
||||
}
|
||||
}
|
||||
@@ -10,26 +10,24 @@ using System;
|
||||
|
||||
namespace System.Messaging
|
||||
{
|
||||
[MonoTODO("Have to force the right specific values for each element")]
|
||||
[Flags]
|
||||
[Serializable]
|
||||
public enum MessageQueueAccessRights
|
||||
public enum MessageQueueAccessRights
|
||||
{
|
||||
ChangeQueuePermissions,
|
||||
DeleteJournalMessage,
|
||||
DeleteMessage,
|
||||
DeleteQueue,
|
||||
FullControl,
|
||||
GenericRead,
|
||||
GenericWrite,
|
||||
GetQueuePermissions,
|
||||
GetQueueProperties,
|
||||
PeekMessage,
|
||||
ReceiveJournalMessage,
|
||||
ReceiveMessage,
|
||||
SetQueueProperties,
|
||||
TakeQueueProperties,
|
||||
TakeQueueOwnership,
|
||||
WriteMessage
|
||||
ChangeQueuePermissions = 262144,
|
||||
DeleteJournalMessage = 8,
|
||||
DeleteMessage = 1,
|
||||
DeleteQueue = 65536,
|
||||
FullControl = 983103,
|
||||
GenericRead = 131115,
|
||||
GenericWrite = 131108,
|
||||
GetQueuePermissions = 131072,
|
||||
GetQueueProperties = 32,
|
||||
PeekMessage = 2,
|
||||
ReceiveJournalMessage = 10,
|
||||
ReceiveMessage = 3,
|
||||
SetQueueProperties = 16,
|
||||
TakeQueueOwnership = 524288,
|
||||
WriteMessage = 4
|
||||
}
|
||||
}
|
||||
@@ -28,7 +28,7 @@ namespace System.Messaging
|
||||
CannotJoinDomain,
|
||||
CannotLoadMsmqOcm,
|
||||
CannotOpenCertificateStore,
|
||||
CannotSetCryptographicSecurityDescription,
|
||||
CannotSetCryptographicSecurityDescriptor,
|
||||
CannotSignDataEx,
|
||||
CertificateNotProvided,
|
||||
ComputerDoesNotSupportEncryption,
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* SignedXml.cs : partial fix for bug #59165 that does not output
|
||||
namespace that conflicts with element's namespace.
|
||||
|
||||
2004-05-13 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* SignedXml.cs: Update TODO informations.
|
||||
|
||||
@@ -315,9 +315,10 @@ namespace System.Security.Cryptography.Xml {
|
||||
continue;
|
||||
if (attr.LocalName == "xml")
|
||||
continue;
|
||||
if (attr.Prefix == el.Prefix)
|
||||
continue;
|
||||
attr.WriteTo (xtw);
|
||||
}
|
||||
|
||||
foreach (XmlNode attr in el.Attributes)
|
||||
attr.WriteTo (xtw);
|
||||
foreach (XmlNode n in el.ChildNodes)
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
2004-05-31 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
|
||||
when SetFilePath is called. This way the cached values are reset and
|
||||
get the right value in case someone (namely SessionStateModule +
|
||||
cookieless session) changes the FilePath after the property cached its
|
||||
value. Fixes bug #59364.
|
||||
|
||||
2004-05-27 Patrik Torstensson <[email protected]>
|
||||
|
||||
* HttpApplicationFactory.cs: Added SignalError (still todo)
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,3 +1,13 @@
|
||||
2004-05-30 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlTextReader.cs : Fixed version mismatch; ProhibitDtd should be
|
||||
NET_2_0.
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* XmlTextReader.cs: Added ProhibitDtd property for NET 1.1 to match
|
||||
public API in MS.NET 1.1
|
||||
|
||||
2004-05-27 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
|
||||
|
||||
@@ -252,6 +252,15 @@ namespace System.Xml
|
||||
get { return cursorToken.Prefix; }
|
||||
}
|
||||
|
||||
#if NET_2_0
|
||||
|
||||
[MonoTODO ("Not documented in .NET SDK")]
|
||||
public bool ProhibitDtd {
|
||||
get { return prohibitDtd; }
|
||||
set { prohibitDtd = value; }
|
||||
}
|
||||
#endif
|
||||
|
||||
public override char QuoteChar {
|
||||
get { return cursorToken.QuoteChar; }
|
||||
}
|
||||
@@ -946,6 +955,9 @@ namespace System.Xml
|
||||
private WhitespaceHandling whitespaceHandling = WhitespaceHandling.All;
|
||||
private XmlResolver resolver = new XmlUrlResolver ();
|
||||
private bool normalization = false;
|
||||
#if NET_2_0
|
||||
private bool prohibitDtd = false;
|
||||
#endif
|
||||
|
||||
private void Init ()
|
||||
{
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-06-01 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* syntax.cs: reverting my previous patch. It causes bigger problems.
|
||||
|
||||
2004-05-27 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* category.cs: added LastValue field to mark the end of enum Category.
|
||||
|
||||
@@ -773,9 +773,14 @@ namespace System.Text.RegularExpressions.Syntax {
|
||||
|
||||
// initialize pos/neg category arrays
|
||||
|
||||
int cat_size = (int) Category.LastValue;
|
||||
pos_cats = new BitArray (cat_size);
|
||||
neg_cats = new BitArray (cat_size);
|
||||
Array cat_values = Enum.GetValues (typeof (Category));
|
||||
int cat_size = (int)(Category)cat_values.GetValue (cat_values.Length - 1) + 1;
|
||||
pos_cats = new bool[cat_size];
|
||||
neg_cats = new bool[cat_size];
|
||||
for (int i = 0; i < cat_size; ++ i) {
|
||||
pos_cats[i] = false;
|
||||
neg_cats[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
public CharacterClass (Category cat, bool negate) : this (false, false) {
|
||||
@@ -796,8 +801,15 @@ namespace System.Text.RegularExpressions.Syntax {
|
||||
int n = (int)cat;
|
||||
|
||||
if (negate) {
|
||||
if (pos_cats[n])
|
||||
pos_cats[n] = false;
|
||||
|
||||
neg_cats[n] = true;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
if (neg_cats[n])
|
||||
neg_cats[n] = false;
|
||||
|
||||
pos_cats[n] = true;
|
||||
}
|
||||
}
|
||||
@@ -926,7 +938,7 @@ namespace System.Text.RegularExpressions.Syntax {
|
||||
private static Interval upper_case_characters = new Interval ((char)65, (char)90);
|
||||
private const int distance_between_upper_and_lower_case = 32;
|
||||
private bool negate, ignore;
|
||||
private BitArray pos_cats, neg_cats;
|
||||
private bool[] pos_cats, neg_cats;
|
||||
private IntervalCollection intervals;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,9 +44,5 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AllowPartiallyTrustedCallers]
|
||||
[assembly: Guid("BED7F4EA-1A96-11D2-8F08-00A0C9A6186D")]
|
||||
|
||||
#if ! NET_2_0 && ! BOOTSTRAP_NET_2_0
|
||||
#if ! BOOTSTRAP_WITH_OLDLIB
|
||||
[assembly: AssemblyDelaySign(true)]
|
||||
[assembly: AssemblyKeyFile("../ecma.pub")]
|
||||
#endif
|
||||
#endif
|
||||
[assembly: AssemblyDelaySign(true)]
|
||||
[assembly: AssemblyKeyFile("../ecma.pub")]
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-05-29 Jackson Harper <[email protected]>
|
||||
|
||||
* AssemblyInfo.cs: Sign corlib for net_2_0 now too.
|
||||
|
||||
2004-05-26 Jordi Mas <[email protected]>
|
||||
|
||||
* AssemblyInfo.cs: fixes CS1024: Preprocessor directive expected
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
2004-05-30 Martin Baulig <[email protected]>
|
||||
|
||||
* Makefile (net_2_0_dir): New variable; also use the correct
|
||||
directory here.
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* corlib.dll.sources: added SetWin32ContextInIDispatchAttribute
|
||||
and VariantWrapper
|
||||
|
||||
2004-05-25 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* Makefile: changed case on nunit.framework.dll (lowercase)
|
||||
|
||||
@@ -38,6 +38,8 @@ stampfile = $(depsdir)/$(PROFILE)_corlib.dll.stamp
|
||||
#corlib_flags = /unsafe /nostdlib /d:INSIDE_CORLIB
|
||||
corlib_flags = /unsafe /nostdlib
|
||||
|
||||
net_2_0_dir = $(DESTDIR)$(prefix)/lib/mono/2.0
|
||||
|
||||
net_2_0_bootstrap_response = $(depsdir)/corlib_net_2_0_bootstrap.dll.response
|
||||
net_2_0_bootstrap_makefrag = $(depsdir)/corlib_net_2_0_bootstrap.dll.makefrag
|
||||
net_2_0_bootstrap_stampfile = $(depsdir)/corlib_net_2_0_bootstrap.dll.stamp
|
||||
@@ -75,10 +77,10 @@ all-local: $(corlib)
|
||||
|
||||
install-local: $(corlib) $(makefrag)
|
||||
@if test $(PROFILE) = "net_2_0" ; then \
|
||||
echo $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib/net_2_0 ; \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib/net_2_0 ; \
|
||||
echo $(INSTALL_LIB) $(corlib) $(DESTDIR)$(prefix)/lib/net_2_0 ; \
|
||||
$(INSTALL_LIB) $(corlib) $(DESTDIR)$(prefix)/lib/net_2_0 ; \
|
||||
echo $(MKINSTALLDIRS) $(net_2_0_dir) ; \
|
||||
$(MKINSTALLDIRS) $(net_2_0_dir) ; \
|
||||
echo $(INSTALL_LIB) $(corlib) $(net_2_0_dir) ; \
|
||||
$(INSTALL_LIB) $(corlib) $(net_2_0_dir) ; \
|
||||
else \
|
||||
echo $(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib ; \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(prefix)/lib ; \
|
||||
@@ -88,9 +90,9 @@ install-local: $(corlib) $(makefrag)
|
||||
|
||||
uninstall-local:
|
||||
@if test $(PROFILE) = "net_2_0" ; then \
|
||||
-rm -f $(DESTDIR)$(prefix)/lib/net_2_0/corlib.dll
|
||||
-rm -f $(net_2_0_dir)/mscorlib.dll
|
||||
else \
|
||||
-rm -f $(DESTDIR)$(prefix)/lib/corlib.dll
|
||||
-rm -f $(DESTDIR)$(prefix)/lib/mscorlib.dll
|
||||
fi
|
||||
|
||||
clean-local:
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
2004-05-29 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* ChangeLog:
|
||||
* Comparer.cs: reverted last 2 patches from Gert Driesen. Totally wrong.
|
||||
I wonder why.
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* Compare.cs: ISerializable should only be implemented
|
||||
for NET_1_1 profile
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* Compare.cs: Implemented ISerializable, fixes public API
|
||||
|
||||
2004-05-27 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* Hashtable.cs: Cloned synchronized Hashtables are now synchronized.
|
||||
|
||||
@@ -62,10 +62,12 @@ namespace System.IO {
|
||||
Dispose (true);
|
||||
}
|
||||
|
||||
protected virtual void FillBuffer(int bytes) {
|
||||
if(m_stream==null) {
|
||||
protected virtual void FillBuffer (int bytes)
|
||||
{
|
||||
if (m_disposed)
|
||||
throw new ObjectDisposedException ("BinaryReader", "Cannot read from a closed BinaryReader.");
|
||||
if (m_stream==null)
|
||||
throw new IOException("Stream is invalid");
|
||||
}
|
||||
|
||||
CheckBuffer(bytes);
|
||||
|
||||
@@ -96,7 +98,7 @@ namespace System.IO {
|
||||
return -1;
|
||||
}
|
||||
|
||||
char[] result = new char[1];
|
||||
char[] result = new char[1];
|
||||
byte[] bytes;
|
||||
int bcount;
|
||||
|
||||
@@ -139,15 +141,15 @@ namespace System.IO {
|
||||
if (buffer == null) {
|
||||
throw new ArgumentNullException("buffer is null");
|
||||
}
|
||||
if (buffer.Length - index < count) {
|
||||
throw new ArgumentException("buffer is too small");
|
||||
}
|
||||
if (index < 0) {
|
||||
throw new ArgumentOutOfRangeException("index is less than 0");
|
||||
}
|
||||
if (count < 0) {
|
||||
throw new ArgumentOutOfRangeException("count is less than 0");
|
||||
}
|
||||
if (buffer.Length - index < count) {
|
||||
throw new ArgumentException("buffer is too small");
|
||||
}
|
||||
|
||||
int bytes_read=m_stream.Read(buffer, index, count);
|
||||
|
||||
@@ -167,15 +169,15 @@ namespace System.IO {
|
||||
if (buffer == null) {
|
||||
throw new ArgumentNullException("buffer is null");
|
||||
}
|
||||
if (buffer.Length - index < count) {
|
||||
throw new ArgumentException("buffer is too small");
|
||||
}
|
||||
if (index < 0) {
|
||||
throw new ArgumentOutOfRangeException("index is less than 0");
|
||||
}
|
||||
if (count < 0) {
|
||||
throw new ArgumentOutOfRangeException("count is less than 0");
|
||||
}
|
||||
if (buffer.Length - index < count) {
|
||||
throw new ArgumentException("buffer is too small");
|
||||
}
|
||||
|
||||
int bytes_read;
|
||||
byte[] bytes;
|
||||
|
||||
@@ -112,13 +112,21 @@ namespace System.IO {
|
||||
|
||||
public override long Seek (long offset, SeekOrigin origin)
|
||||
{
|
||||
Flush();
|
||||
return m_stream.Seek(offset, origin);
|
||||
CheckObjectDisposedException ();
|
||||
if (!CanSeek) {
|
||||
throw new NotSupportedException (
|
||||
Locale.GetText ("Non seekable stream."));
|
||||
}
|
||||
Flush ();
|
||||
return m_stream.Seek (offset, origin);
|
||||
}
|
||||
|
||||
public override void SetLength (long value)
|
||||
{
|
||||
CheckObjectDisposedException ();
|
||||
m_stream.SetLength(value);
|
||||
if (Position > value)
|
||||
Position = value;
|
||||
}
|
||||
|
||||
public override int ReadByte ()
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
2004-05-31 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* Directory.cs, File.cs : Fixed Exists() that raised
|
||||
DirectoryNotFoundException. Quick fix for bug #59354.
|
||||
|
||||
2004-05-30 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* BinaryReader.cs: Added missing disposed check for most methods.
|
||||
Reordered some exceptions to match MS implementation.
|
||||
* BufferedStream.cs: Fixed Seek logic (check for CanSeek and dispose).
|
||||
SetLength must also reset Position and check for dispose.
|
||||
* FileStream.cs: Added missing check for invalid SeekOrigin. Added
|
||||
missing validations.
|
||||
|
||||
2004-05-27 Dick Porter <[email protected]>
|
||||
|
||||
* FileSystemInfo.cs: Take out the error checking in Refresh(), it
|
||||
|
||||
@@ -131,19 +131,23 @@ namespace System.IO
|
||||
|
||||
public static bool Exists (string path)
|
||||
{
|
||||
if (path == null)
|
||||
return false;
|
||||
try {
|
||||
if (path == null)
|
||||
return false;
|
||||
|
||||
MonoIOError error;
|
||||
bool exists;
|
||||
MonoIOError error;
|
||||
bool exists;
|
||||
|
||||
exists = MonoIO.ExistsDirectory (path, out error);
|
||||
if (error != MonoIOError.ERROR_SUCCESS &&
|
||||
error != MonoIOError.ERROR_PATH_NOT_FOUND) {
|
||||
throw MonoIO.GetException (path, error);
|
||||
}
|
||||
exists = MonoIO.ExistsDirectory (path, out error);
|
||||
if (error != MonoIOError.ERROR_SUCCESS &&
|
||||
error != MonoIOError.ERROR_PATH_NOT_FOUND) {
|
||||
throw MonoIO.GetException (path, error);
|
||||
}
|
||||
|
||||
return(exists);
|
||||
return(exists);
|
||||
} catch (Exception) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static DateTime GetLastAccessTime (string path)
|
||||
|
||||
@@ -129,26 +129,30 @@ namespace System.IO
|
||||
|
||||
public static bool Exists (string path)
|
||||
{
|
||||
// For security reasons no exceptions are
|
||||
// thrown, only false is returned if there is
|
||||
// any problem with the path or permissions.
|
||||
// Minimizes what information can be
|
||||
// discovered by using this method.
|
||||
if (null == path || String.Empty == path.Trim()
|
||||
|| path.IndexOfAny(Path.InvalidPathChars) >= 0) {
|
||||
try {
|
||||
// For security reasons no exceptions are
|
||||
// thrown, only false is returned if there is
|
||||
// any problem with the path or permissions.
|
||||
// Minimizes what information can be
|
||||
// discovered by using this method.
|
||||
if (null == path || String.Empty == path.Trim()
|
||||
|| path.IndexOfAny(Path.InvalidPathChars) >= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
MonoIOError error;
|
||||
bool exists;
|
||||
|
||||
exists = MonoIO.ExistsFile (path, out error);
|
||||
if (error != MonoIOError.ERROR_SUCCESS &&
|
||||
error != MonoIOError.ERROR_FILE_NOT_FOUND) {
|
||||
throw MonoIO.GetException (path, error);
|
||||
}
|
||||
|
||||
return(exists);
|
||||
} catch (Exception) {
|
||||
return false;
|
||||
}
|
||||
|
||||
MonoIOError error;
|
||||
bool exists;
|
||||
|
||||
exists = MonoIO.ExistsFile (path, out error);
|
||||
if (error != MonoIOError.ERROR_SUCCESS &&
|
||||
error != MonoIOError.ERROR_FILE_NOT_FOUND) {
|
||||
throw MonoIO.GetException (path, error);
|
||||
}
|
||||
|
||||
return(exists);
|
||||
}
|
||||
|
||||
public static FileAttributes GetAttributes (string path)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
@@ -38,6 +39,8 @@ namespace System.IO
|
||||
internal FileStream (IntPtr handle, FileAccess access, bool ownsHandle, int bufferSize, bool isAsync, bool noBuffering)
|
||||
{
|
||||
this.handle = MonoIO.InvalidHandle;
|
||||
if (handle == this.handle)
|
||||
throw new ArgumentException ("handle", Locale.GetText ("Invalid."));
|
||||
|
||||
if (access < FileAccess.Read || access > FileAccess.ReadWrite)
|
||||
throw new ArgumentOutOfRangeException ("access");
|
||||
@@ -251,6 +254,9 @@ namespace System.IO
|
||||
return(buf_start + buf_offset);
|
||||
}
|
||||
set {
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
|
||||
if(CanSeek == false) {
|
||||
throw new NotSupportedException("The stream does not support seeking");
|
||||
}
|
||||
@@ -321,8 +327,10 @@ namespace System.IO
|
||||
if (!CanRead)
|
||||
throw new NotSupportedException ("Stream does not support reading");
|
||||
int len = dest.Length;
|
||||
if (dest_offset < 0 || count < 0)
|
||||
throw new ArgumentException ("dest or count is negative");
|
||||
if (dest_offset < 0)
|
||||
throw new ArgumentOutOfRangeException ("dest_offset", "< 0");
|
||||
if (count < 0)
|
||||
throw new ArgumentOutOfRangeException ("count", "< 0");
|
||||
if (dest_offset > len)
|
||||
throw new ArgumentException ("destination offset is beyond array size");
|
||||
// reordered to avoid possible integer overflow
|
||||
@@ -383,6 +391,9 @@ namespace System.IO
|
||||
public override IAsyncResult BeginRead (byte [] buffer, int offset, int count,
|
||||
AsyncCallback cback, object state)
|
||||
{
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
|
||||
if (!CanRead)
|
||||
throw new NotSupportedException ("This stream does not support reading");
|
||||
|
||||
@@ -528,6 +539,9 @@ namespace System.IO
|
||||
public override IAsyncResult BeginWrite (byte [] buffer, int offset, int count,
|
||||
AsyncCallback cback, object state)
|
||||
{
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
|
||||
if (!CanWrite)
|
||||
throw new NotSupportedException ("This stream does not support writing");
|
||||
|
||||
@@ -650,9 +664,12 @@ namespace System.IO
|
||||
pos = Position + offset;
|
||||
break;
|
||||
|
||||
case SeekOrigin.Begin: default:
|
||||
case SeekOrigin.Begin:
|
||||
pos = offset;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ArgumentException ("origin", "Invalid SeekOrigin");
|
||||
}
|
||||
|
||||
if (pos < 0) {
|
||||
@@ -692,6 +709,9 @@ namespace System.IO
|
||||
|
||||
public override void SetLength (long length)
|
||||
{
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
|
||||
if(CanSeek == false) {
|
||||
throw new NotSupportedException("The stream does not support seeking");
|
||||
}
|
||||
@@ -712,6 +732,9 @@ namespace System.IO
|
||||
if (error != MonoIOError.ERROR_SUCCESS) {
|
||||
throw MonoIO.GetException (name, error);
|
||||
}
|
||||
|
||||
if (Position > length)
|
||||
Position = length;
|
||||
}
|
||||
|
||||
public override void Flush ()
|
||||
@@ -736,6 +759,8 @@ namespace System.IO
|
||||
|
||||
public virtual void Lock (long position, long length)
|
||||
{
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
if (position < 0) {
|
||||
throw new ArgumentOutOfRangeException ("position must not be negative");
|
||||
}
|
||||
@@ -756,6 +781,8 @@ namespace System.IO
|
||||
|
||||
public virtual void Unlock (long position, long length)
|
||||
{
|
||||
if (handle == MonoIO.InvalidHandle)
|
||||
throw new ObjectDisposedException ("Stream has been closed");
|
||||
if (position < 0) {
|
||||
throw new ArgumentOutOfRangeException ("position must not be negative");
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
Assembly.cs
|
||||
AssemblyNameFlags.cs
|
||||
BindingFlags.cs
|
||||
CallingConventions.cs
|
||||
ConstructorInfo.cs
|
||||
DefaultMemberAttribute.cs
|
||||
EventAttributes.cs
|
||||
EventInfo.cs
|
||||
FieldAttributes.cs
|
||||
FieldInfo.cs
|
||||
ICustomAttributeProvider.cs
|
||||
MemberFilter.cs
|
||||
MemberInfo.cs
|
||||
MemberTypes.cs
|
||||
MethodAttributes.cs
|
||||
MethodBase.cs
|
||||
MethodImplAttributes.cs
|
||||
MethodInfo.cs
|
||||
Module.cs
|
||||
ParameterAttributes.cs
|
||||
PropertyAttributes.cs
|
||||
PropertyInfo.cs
|
||||
ResourceAttributes.cs
|
||||
ResourceLocation.cs
|
||||
TypeAttributes.cs
|
||||
@@ -1,3 +1,14 @@
|
||||
2004-05-30 Gert Driesen ([email protected])
|
||||
|
||||
* SetWin32ContextInIDispatchAttribute.cs: only build
|
||||
for NET_2_0 profile
|
||||
* VariantWrapper.cs: only build for NET_2_0 profile
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* SetWin32ContextInIDispatchAttribute.cs: added
|
||||
* VariantWrapper.cs: added
|
||||
|
||||
2004-05-19 Gert Driesen ([email protected])
|
||||
|
||||
* AutomationProxyAttribute.cs
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// System.Runtime.InteropServices.SetWin32ContextInIDispatchAttribute.cs
|
||||
//
|
||||
// Author:
|
||||
// Gert Driesen ([email protected])
|
||||
//
|
||||
// (C) Novell, Inc. http://www.ximian.com
|
||||
//
|
||||
|
||||
#if NET_2_0
|
||||
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
[AttributeUsage (AttributeTargets.Assembly, Inherited = false)]
|
||||
public sealed class SetWin32ContextInIDispatchAttribute : Attribute
|
||||
{
|
||||
public SetWin32ContextInIDispatchAttribute ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// System.Runtime.InteropServices.VariantWrapper.cs
|
||||
//
|
||||
// Author:
|
||||
// Gert Driesen ([email protected])
|
||||
//
|
||||
// (C) Novell, Inc. http://www.ximian.com
|
||||
//
|
||||
|
||||
#if NET_2_0
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
public sealed class VariantWrapper
|
||||
{
|
||||
private object _wrappedObject;
|
||||
|
||||
public VariantWrapper (object obj)
|
||||
{
|
||||
_wrappedObject = obj;
|
||||
}
|
||||
|
||||
public object WrappedObject
|
||||
{
|
||||
get
|
||||
{
|
||||
return _wrappedObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-05-29 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* ObjectWriter.cs: reduce contention in GetObjectData.
|
||||
|
||||
2004-05-14 Vladimir Vukicevic <[email protected]>
|
||||
|
||||
* binary_serialization_format.htm: renamed filename from having
|
||||
|
||||
@@ -359,27 +359,29 @@ namespace System.Runtime.Serialization.Formatters.Binary
|
||||
return;
|
||||
}
|
||||
|
||||
metadata = null;
|
||||
lock (_cachedTypes)
|
||||
{
|
||||
Hashtable typesTable = (Hashtable) _cachedTypes [_context.State];
|
||||
if (typesTable != null)
|
||||
{
|
||||
metadata = (TypeMetadata) typesTable [instanceType];
|
||||
if (metadata == null)
|
||||
{
|
||||
metadata = CreateMemberTypeMetadata (instanceType);
|
||||
typesTable [instanceType] = metadata;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
metadata = CreateMemberTypeMetadata (instanceType);
|
||||
Hashtable typesTable;
|
||||
bool isNew = false;
|
||||
lock (_cachedTypes) {
|
||||
typesTable = (Hashtable) _cachedTypes [_context.State];
|
||||
if (typesTable == null) {
|
||||
typesTable = new Hashtable ();
|
||||
typesTable [instanceType] = metadata;
|
||||
_cachedTypes [_context.State] = typesTable;
|
||||
isNew = true;
|
||||
}
|
||||
}
|
||||
|
||||
metadata = null;
|
||||
lock (typesTable) {
|
||||
if (!isNew) {
|
||||
metadata = (TypeMetadata) typesTable [instanceType];
|
||||
}
|
||||
|
||||
if (metadata == null) {
|
||||
metadata = CreateMemberTypeMetadata (instanceType);
|
||||
}
|
||||
|
||||
typesTable [instanceType] = metadata;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
2004-05-29 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* CspProviderFlags.cs: Reverted previous patch as UseExistingKey isn't
|
||||
part of the 1.0/1.1 framework.
|
||||
|
||||
2004-05-29 Gert Driesen ([email protected])
|
||||
|
||||
* CspProviderFlags.cs: Added missing enum field UseExistingKey
|
||||
|
||||
2004-05-27 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* HashAlgorithm.cs: Added missing exception handling to ComputeHash,
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace System.Security.Cryptography {
|
||||
[Serializable]
|
||||
public enum CspProviderFlags {
|
||||
UseMachineKeyStore = 1,
|
||||
UseDefaultKeyContainer,
|
||||
UseDefaultKeyContainer = 2
|
||||
}
|
||||
}
|
||||
|
||||
@@ -485,6 +485,9 @@ namespace System
|
||||
if (array == null)
|
||||
throw new ArgumentNullException ("array");
|
||||
|
||||
if (value == null)
|
||||
return -1;
|
||||
|
||||
if (array.Rank > 1)
|
||||
throw new RankException (Locale.GetText ("Only single dimension arrays are supported."));
|
||||
|
||||
@@ -502,7 +505,7 @@ namespace System
|
||||
if (array.Rank > 1)
|
||||
throw new RankException (Locale.GetText ("Only single dimension arrays are supported."));
|
||||
|
||||
if ((comparer == null) && !(value is IComparable))
|
||||
if ((comparer == null) && (value != null) && !(value is IComparable))
|
||||
throw new ArgumentException (Locale.GetText (
|
||||
"comparer is null and value does not support IComparable."));
|
||||
|
||||
@@ -527,7 +530,7 @@ namespace System
|
||||
if (index > array.GetLowerBound (0) + array.GetLength (0) - length)
|
||||
throw new ArgumentException (Locale.GetText (
|
||||
"index and length do not specify a valid range in array."));
|
||||
if (!(value is IComparable))
|
||||
if ((value != null) && (!(value is IComparable)))
|
||||
throw new ArgumentException (Locale.GetText (
|
||||
"value does not support IComparable"));
|
||||
|
||||
@@ -553,7 +556,7 @@ namespace System
|
||||
throw new ArgumentException (Locale.GetText (
|
||||
"index and length do not specify a valid range in array."));
|
||||
|
||||
if ((comparer == null) && !(value is IComparable))
|
||||
if ((comparer == null) && (value != null) && !(value is IComparable))
|
||||
throw new ArgumentException (Locale.GetText (
|
||||
"comparer is null and value does not support IComparable."));
|
||||
|
||||
|
||||
@@ -157,7 +157,8 @@ namespace System
|
||||
{
|
||||
NumberFormatInfo nfi = NumberFormatInfo.GetInstance (provider);
|
||||
|
||||
if (format == null)
|
||||
// null or empty ("")
|
||||
if ((format == null) || (format.Length == 0))
|
||||
format = "G";
|
||||
|
||||
return IntegerFormatter.NumberToString (format, nfi, m_value);
|
||||
|
||||
@@ -1,3 +1,33 @@
|
||||
2004-06-01 Miguel de Icaza <[email protected]>
|
||||
|
||||
* String.cs: Flag concat with four arguments internal.
|
||||
|
||||
2004-05-31 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* Array.cs: Fixed legal case where value is null.
|
||||
* Byte.cs: Fixed ToString when format is an empty string (use "G").
|
||||
* Guid.cs: Renamed private fields (and changed some to signed) to
|
||||
match MS implementation and allow serialization to work. Fix
|
||||
bug #59113.
|
||||
|
||||
2004-05-30 Gonzalo Paniagua Javier <[email protected]>
|
||||
|
||||
* DateTime.cs: adjust milliseconds for fraction specifier ('f').
|
||||
|
||||
2004-05-30 Miguel de Icaza <[email protected]>
|
||||
|
||||
* Console.cs: Remove *again* the version of WriteLine with four
|
||||
arguments; That should *not* be added.
|
||||
|
||||
Flag it as internal as people migrate their code.
|
||||
|
||||
2004-05-29 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* Convert.cs: Fixed ToSByte(string,IFormatProvider) to throw
|
||||
ArgumentNullException (only case, all other returns 0). Fixed exception
|
||||
reporting for hex prefix only strings. Fixed ChangeTo where null could
|
||||
be misinterpreted between null and Empty.
|
||||
|
||||
2004-05-28 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* Convert.cs: Fixed integer parsing for special cases (0x, 0X for base
|
||||
|
||||
@@ -327,8 +327,7 @@ namespace System
|
||||
}
|
||||
|
||||
[CLSCompliant (false)]
|
||||
[MonoTODO ("Arglist is missing")]
|
||||
public static void WriteLine (string format, object arg0, object arg1, object arg2, object arg3)
|
||||
internal static void WriteLine (string format, object arg0, object arg1, object arg2, object arg3)
|
||||
{
|
||||
stdout.WriteLine (String.Format (format, arg0, arg1, arg2, arg3));
|
||||
}
|
||||
|
||||
@@ -1469,7 +1469,7 @@ namespace System {
|
||||
public static sbyte ToSByte (string value, IFormatProvider provider)
|
||||
{
|
||||
if (value == null)
|
||||
return 0; // LAMESPEC: Spec says throw ArgumentNullException
|
||||
throw new ArgumentNullException ("value");
|
||||
return SByte.Parse (value, provider);
|
||||
}
|
||||
|
||||
@@ -2326,7 +2326,9 @@ namespace System {
|
||||
// ========== Conversion / Helper Functions ========== //
|
||||
|
||||
public static object ChangeType (object value, Type conversionType)
|
||||
{
|
||||
{
|
||||
if ((value != null) && (conversionType == null))
|
||||
throw new ArgumentNullException ("conversionType");
|
||||
CultureInfo ci = CultureInfo.CurrentCulture;
|
||||
NumberFormatInfo number = ci.NumberFormat;
|
||||
return ToType (value, conversionType, number);
|
||||
@@ -2342,6 +2344,8 @@ namespace System {
|
||||
|
||||
public static object ChangeType (object value, Type conversionType, IFormatProvider provider)
|
||||
{
|
||||
if ((value != null) && (conversionType == null))
|
||||
throw new ArgumentNullException ("conversionType");
|
||||
return ToType (value, conversionType, provider);
|
||||
}
|
||||
|
||||
@@ -2394,7 +2398,7 @@ namespace System {
|
||||
i+=2;
|
||||
}
|
||||
if (len == i) {
|
||||
throw new OverflowException (
|
||||
throw new FormatException (
|
||||
Locale.GetText ("Missing number after prefix"));
|
||||
}
|
||||
}
|
||||
@@ -2560,7 +2564,7 @@ namespace System {
|
||||
return null;
|
||||
|
||||
if (conversionType == null)
|
||||
throw new ArgumentNullException ("convertionType");
|
||||
throw new InvalidCastException ("Cannot cast to destination type.");
|
||||
|
||||
if (value.GetType () == conversionType)
|
||||
return value;
|
||||
|
||||
@@ -957,14 +957,26 @@ namespace System
|
||||
return false;
|
||||
|
||||
break;
|
||||
case 'f':
|
||||
if (millisecond != -1)
|
||||
return false;
|
||||
num = Math.Min (num, 6);
|
||||
case 'f':
|
||||
if (millisecond != -1)
|
||||
return false;
|
||||
num = Math.Min (num, 6);
|
||||
millisecond = _ParseNumber (s, num+1, true, sloppy_parsing, next_not_digit, out num_parsed);
|
||||
if (millisecond >= 1000)
|
||||
return false;
|
||||
break;
|
||||
if (num_parsed == -1)
|
||||
return false;
|
||||
|
||||
if (num_parsed != 3) {
|
||||
int k;
|
||||
if (num_parsed > 3) {
|
||||
for (k = num_parsed; k > 3; k--)
|
||||
millisecond /= 10;
|
||||
} else {
|
||||
for (k = num_parsed; k < 3; k++) {
|
||||
millisecond *= 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
if (ampm != -1)
|
||||
return false;
|
||||
|
||||
+112
-112
@@ -23,17 +23,17 @@ namespace System
|
||||
[StructLayout (LayoutKind.Sequential)]
|
||||
public struct Guid : IFormattable, IComparable
|
||||
{
|
||||
private uint _timeLow;
|
||||
private ushort _timeMid;
|
||||
private ushort _timeHighAndVersion;
|
||||
private byte _clockSeqHiAndReserved;
|
||||
private byte _clockSeqLow;
|
||||
private byte _node0;
|
||||
private byte _node1;
|
||||
private byte _node2;
|
||||
private byte _node3;
|
||||
private byte _node4;
|
||||
private byte _node5;
|
||||
private int _a; //_timeLow;
|
||||
private short _b; //_timeMid;
|
||||
private short _c; //_timeHighAndVersion;
|
||||
private byte _d; //_clockSeqHiAndReserved;
|
||||
private byte _e; //_clockSeqLow;
|
||||
private byte _f; //_node0;
|
||||
private byte _g; //_node1;
|
||||
private byte _h; //_node2;
|
||||
private byte _i; //_node3;
|
||||
private byte _j; //_node4;
|
||||
private byte _k; //_node5;
|
||||
|
||||
internal class GuidParser
|
||||
{
|
||||
@@ -242,17 +242,17 @@ namespace System
|
||||
public Guid (byte[] b)
|
||||
{
|
||||
CheckArray (b, 16);
|
||||
_timeLow = System.BitConverter.ToUInt32 (b, 0);
|
||||
_timeMid = System.BitConverter.ToUInt16 (b, 4);
|
||||
_timeHighAndVersion = System.BitConverter.ToUInt16 (b, 6);
|
||||
_clockSeqHiAndReserved = b[8];
|
||||
_clockSeqLow = b[9];
|
||||
_node0 = b[10];
|
||||
_node1 = b[11];
|
||||
_node2 = b[12];
|
||||
_node3 = b[13];
|
||||
_node4 = b[14];
|
||||
_node5 = b[15];
|
||||
_a = System.BitConverter.ToInt32 (b, 0);
|
||||
_b = System.BitConverter.ToInt16 (b, 4);
|
||||
_c = System.BitConverter.ToInt16 (b, 6);
|
||||
_d = b [8];
|
||||
_e = b [9];
|
||||
_f = b [10];
|
||||
_g = b [11];
|
||||
_h = b [12];
|
||||
_i = b [13];
|
||||
_j = b [14];
|
||||
_k = b [15];
|
||||
}
|
||||
|
||||
public Guid (string g)
|
||||
@@ -267,44 +267,44 @@ namespace System
|
||||
|
||||
public Guid (int a, short b, short c, byte[] d)
|
||||
{
|
||||
CheckArray(d, 8);
|
||||
_timeLow = (uint) a;
|
||||
_timeMid = (ushort) b;
|
||||
_timeHighAndVersion = (ushort) c;
|
||||
_clockSeqHiAndReserved = d[0];
|
||||
_clockSeqLow = d[1];
|
||||
_node0 = d[2];
|
||||
_node1 = d[3];
|
||||
_node2 = d[4];
|
||||
_node3 = d[5];
|
||||
_node4 = d[6];
|
||||
_node5 = d[7];
|
||||
CheckArray (d, 8);
|
||||
_a = (int) a;
|
||||
_b = (short) b;
|
||||
_c = (short) c;
|
||||
_d = d [0];
|
||||
_e = d [1];
|
||||
_f = d [2];
|
||||
_g = d [3];
|
||||
_h = d [4];
|
||||
_i = d [5];
|
||||
_j = d [6];
|
||||
_k = d [7];
|
||||
}
|
||||
|
||||
public Guid (int a, short b, short c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
|
||||
: this((uint) a, (ushort) b, (ushort) c, d, e, f, g, h, i, j, k)
|
||||
{
|
||||
_a = a;
|
||||
_b = b;
|
||||
_c = c;
|
||||
_d = d;
|
||||
_e = e;
|
||||
_f = f;
|
||||
_g = g;
|
||||
_h = h;
|
||||
_i = i;
|
||||
_j = j;
|
||||
_k = k;
|
||||
}
|
||||
|
||||
[CLSCompliant (false)]
|
||||
public Guid (uint a, ushort b, ushort c, byte d, byte e, byte f, byte g, byte h, byte i, byte j, byte k)
|
||||
: this((int) a, (short) b, (short) c, d, e, f, g, h, i, j, k)
|
||||
{
|
||||
_timeLow = a;
|
||||
_timeMid = b;
|
||||
_timeHighAndVersion = c;
|
||||
_clockSeqHiAndReserved = d;
|
||||
_clockSeqLow = e;
|
||||
_node0 = f;
|
||||
_node1 = g;
|
||||
_node2 = h;
|
||||
_node3 = i;
|
||||
_node4 = j;
|
||||
_node5 = k;
|
||||
}
|
||||
|
||||
public static readonly Guid Empty = new Guid (0,0,0,0,0,0,0,0,0,0,0);
|
||||
|
||||
private static int Compare (uint x, uint y)
|
||||
private static int Compare (int x, int y)
|
||||
{
|
||||
if (x < y) {
|
||||
return -1;
|
||||
@@ -314,7 +314,7 @@ namespace System
|
||||
}
|
||||
}
|
||||
|
||||
public int CompareTo (object value )
|
||||
public int CompareTo (object value)
|
||||
{
|
||||
if (value == null)
|
||||
return 1;
|
||||
@@ -326,38 +326,38 @@ namespace System
|
||||
|
||||
Guid v = (Guid) value;
|
||||
|
||||
if (_timeLow != v._timeLow ) {
|
||||
return Compare(_timeLow, v._timeLow);
|
||||
if (_a != v._a) {
|
||||
return Compare (_a, v._a);
|
||||
}
|
||||
else if (_timeMid != v._timeMid) {
|
||||
return Compare(_timeMid, v._timeMid);
|
||||
else if (_b != v._b) {
|
||||
return Compare (_b, v._b);
|
||||
}
|
||||
else if (_timeHighAndVersion != v._timeHighAndVersion) {
|
||||
return Compare(_timeHighAndVersion, v._timeHighAndVersion);
|
||||
else if (_c != v._c) {
|
||||
return Compare (_c, v._c);
|
||||
}
|
||||
else if (_clockSeqHiAndReserved != v._clockSeqHiAndReserved) {
|
||||
return Compare(_clockSeqHiAndReserved, v._clockSeqHiAndReserved);
|
||||
else if (_d != v._d) {
|
||||
return Compare (_d, v._d);
|
||||
}
|
||||
else if (_clockSeqLow != v._clockSeqLow) {
|
||||
return Compare(_clockSeqLow, v._clockSeqLow);
|
||||
else if (_e != v._e) {
|
||||
return Compare (_e, v._e);
|
||||
}
|
||||
else if (_node0 != v._node0) {
|
||||
return Compare(_node0, v._node0);
|
||||
else if (_f != v._f) {
|
||||
return Compare (_f, v._f);
|
||||
}
|
||||
else if (_node1 != v._node1) {
|
||||
return Compare(_node1, v._node1);
|
||||
else if (_g != v._g) {
|
||||
return Compare (_g, v._g);
|
||||
}
|
||||
else if (_node2 != v._node2) {
|
||||
return Compare(_node2, v._node2);
|
||||
else if (_h != v._h) {
|
||||
return Compare (_h, v._h);
|
||||
}
|
||||
else if (_node3 != v._node3) {
|
||||
return Compare(_node3, v._node3);
|
||||
else if (_i != v._i) {
|
||||
return Compare (_i, v._i);
|
||||
}
|
||||
else if (_node4 != v._node4) {
|
||||
return Compare(_node4, v._node4);
|
||||
else if (_j != v._j) {
|
||||
return Compare (_j, v._j);
|
||||
}
|
||||
else if (_node5 != v._node5) {
|
||||
return Compare(_node5, v._node5);
|
||||
else if (_k != v._k) {
|
||||
return Compare (_k, v._k);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -376,16 +376,16 @@ namespace System
|
||||
{
|
||||
int res;
|
||||
|
||||
res = (int) _timeLow;
|
||||
res = res ^ ((int) _timeMid << 16 | _timeHighAndVersion);
|
||||
res = res ^ ((int) _clockSeqHiAndReserved << 24);
|
||||
res = res ^ ((int) _clockSeqLow << 16);
|
||||
res = res ^ ((int) _node0 << 8);
|
||||
res = res ^ ((int) _node1);
|
||||
res = res ^ ((int) _node2 << 24);
|
||||
res = res ^ ((int) _node3 << 16);
|
||||
res = res ^ ((int) _node4 << 8);
|
||||
res = res ^ ((int) _node5);
|
||||
res = (int) _a;
|
||||
res = res ^ ((int) _b << 16 | _c);
|
||||
res = res ^ ((int) _d << 24);
|
||||
res = res ^ ((int) _e << 16);
|
||||
res = res ^ ((int) _f << 8);
|
||||
res = res ^ ((int) _g);
|
||||
res = res ^ ((int) _h << 24);
|
||||
res = res ^ ((int) _i << 16);
|
||||
res = res ^ ((int) _j << 8);
|
||||
res = res ^ ((int) _k);
|
||||
|
||||
return res;
|
||||
}
|
||||
@@ -413,9 +413,9 @@ namespace System
|
||||
|
||||
Guid res = new Guid (b);
|
||||
// Mask in Variant 1-0 in Bit[7..6]
|
||||
res._clockSeqHiAndReserved = (byte) ((res._clockSeqHiAndReserved & 0x3fu) | 0x80u);
|
||||
res._d = (byte) ((res._d & 0x3fu) | 0x80u);
|
||||
// Mask in Version 4 (random based Guid) in Bits[15..13]
|
||||
res._timeHighAndVersion = (ushort) ((res._timeHighAndVersion & 0x0fffu) | 0x4000u);
|
||||
res._c = (short) ((res._c & 0x0fffu) | 0x4000u);
|
||||
|
||||
return res;
|
||||
}
|
||||
@@ -452,29 +452,29 @@ namespace System
|
||||
int d = 0;
|
||||
int s;
|
||||
|
||||
tmp = BitConverter.GetBytes(_timeLow);
|
||||
tmp = BitConverter.GetBytes(_a);
|
||||
for (s=0; s<4; ++s) {
|
||||
res[d++] = tmp[s];
|
||||
}
|
||||
|
||||
tmp = BitConverter.GetBytes(_timeMid);
|
||||
tmp = BitConverter.GetBytes(_b);
|
||||
for (s=0; s<2; ++s) {
|
||||
res[d++] = tmp[s];
|
||||
}
|
||||
|
||||
tmp = BitConverter.GetBytes(_timeHighAndVersion);
|
||||
tmp = BitConverter.GetBytes(_c);
|
||||
for (s=0; s<2; ++s) {
|
||||
res[d++] = tmp[s];
|
||||
}
|
||||
|
||||
res[8] = _clockSeqHiAndReserved;
|
||||
res[9] = _clockSeqLow;
|
||||
res[10] = _node0;
|
||||
res[11] = _node1;
|
||||
res[12] = _node2;
|
||||
res[13] = _node3;
|
||||
res[14] = _node4;
|
||||
res[15] = _node5;
|
||||
res[8] = _d;
|
||||
res[9] = _e;
|
||||
res[10] = _f;
|
||||
res[11] = _g;
|
||||
res[12] = _h;
|
||||
res[13] = _i;
|
||||
res[14] = _j;
|
||||
res[15] = _k;
|
||||
|
||||
return res;
|
||||
}
|
||||
@@ -489,24 +489,24 @@ namespace System
|
||||
res.Append ('{');
|
||||
}
|
||||
|
||||
res.Append (_timeLow.ToString ("x8"));
|
||||
res.Append (_a.ToString ("x8"));
|
||||
if (h) {
|
||||
res.Append ('-');
|
||||
}
|
||||
res.Append (_timeMid.ToString ("x4"));
|
||||
res.Append (_b.ToString ("x4"));
|
||||
if (h) {
|
||||
res.Append ('-');
|
||||
}
|
||||
res.Append (_timeHighAndVersion.ToString ("x4"));
|
||||
res.Append (_c.ToString ("x4"));
|
||||
if (h) {
|
||||
res.Append ('-');
|
||||
}
|
||||
|
||||
char[] vals1 = {
|
||||
ToHex((_clockSeqHiAndReserved >> 4) & 0xf),
|
||||
ToHex(_clockSeqHiAndReserved & 0xf),
|
||||
ToHex((_clockSeqLow >> 4) & 0xf),
|
||||
ToHex(_clockSeqLow & 0xf)
|
||||
ToHex((_d >> 4) & 0xf),
|
||||
ToHex(_d & 0xf),
|
||||
ToHex((_e >> 4) & 0xf),
|
||||
ToHex(_e & 0xf)
|
||||
};
|
||||
|
||||
res.Append (vals1);
|
||||
@@ -516,18 +516,18 @@ namespace System
|
||||
}
|
||||
|
||||
char[] vals2 = {
|
||||
ToHex((_node0 >> 4) & 0xf),
|
||||
ToHex(_node0 & 0xf),
|
||||
ToHex((_node1 >> 4) & 0xf),
|
||||
ToHex(_node1 & 0xf),
|
||||
ToHex((_node2 >> 4) & 0xf),
|
||||
ToHex(_node2 & 0xf),
|
||||
ToHex((_node3 >> 4) & 0xf),
|
||||
ToHex(_node3 & 0xf),
|
||||
ToHex((_node4 >> 4) & 0xf),
|
||||
ToHex(_node4 & 0xf),
|
||||
ToHex((_node5 >> 4) & 0xf),
|
||||
ToHex(_node5 & 0xf)
|
||||
ToHex((_f >> 4) & 0xf),
|
||||
ToHex(_f & 0xf),
|
||||
ToHex((_g >> 4) & 0xf),
|
||||
ToHex(_g & 0xf),
|
||||
ToHex((_h >> 4) & 0xf),
|
||||
ToHex(_h & 0xf),
|
||||
ToHex((_i >> 4) & 0xf),
|
||||
ToHex(_i & 0xf),
|
||||
ToHex((_j >> 4) & 0xf),
|
||||
ToHex(_j & 0xf),
|
||||
ToHex((_k >> 4) & 0xf),
|
||||
ToHex(_k & 0xf)
|
||||
};
|
||||
|
||||
res.Append (vals2);
|
||||
|
||||
@@ -967,7 +967,10 @@ namespace System
|
||||
return Concat (s1, s2, s3);
|
||||
}
|
||||
|
||||
public static String Concat (Object obj1, Object obj2, Object obj3, Object obj4)
|
||||
//
|
||||
// Do *not* remove `internal' from that method
|
||||
//
|
||||
internal static String Concat (Object obj1, Object obj2, Object obj3, Object obj4)
|
||||
{
|
||||
string s1, s2, s3, s4;
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2004-05-30 David Sheldon <[email protected]>
|
||||
|
||||
* StackFrameTest.cs: Mark the failures that have been failing
|
||||
for months due to bug 45730 as ignored as it doesn't look like
|
||||
it will be fixed soon.
|
||||
|
||||
2003-10-07 Nick Drochak <[email protected]>
|
||||
|
||||
* StackFrameTest.cs: Get tests to pass on .NET 1.1.
|
||||
|
||||
@@ -145,6 +145,7 @@ namespace MonoTests.System.Diagnostics {
|
||||
/// <summary>
|
||||
/// Tests whether getting file line number works.
|
||||
/// </summary>
|
||||
[Ignore ("Bug 45730 - Incorrect line numbers returned")]
|
||||
public void TestGetFileLineNumber() {
|
||||
AssertEquals("Line number (1)",
|
||||
0,
|
||||
@@ -162,6 +163,7 @@ namespace MonoTests.System.Diagnostics {
|
||||
/// <summary>
|
||||
/// Tests whether getting file column number works.
|
||||
/// </summary>
|
||||
[Ignore ("Bug 45730 - Column numbers always zero")]
|
||||
public void TestGetFileColumnNumber() {
|
||||
AssertEquals("Column number (1)",
|
||||
0,
|
||||
@@ -267,6 +269,7 @@ namespace MonoTests.System.Diagnostics {
|
||||
/// <summary>
|
||||
/// Tests whether getting file line number works.
|
||||
/// </summary>
|
||||
[Ignore ("Bug 45730 - Incorrect line numbers returned")]
|
||||
public void TestGetFileLineNumber() {
|
||||
AssertEquals("Line number (1)",
|
||||
0,
|
||||
@@ -280,6 +283,7 @@ namespace MonoTests.System.Diagnostics {
|
||||
/// <summary>
|
||||
/// Tests whether getting file column number works.
|
||||
/// </summary>
|
||||
[Ignore ("Bug 45730 - Column numbers always zero")]
|
||||
public void TestGetFileColumnNumber() {
|
||||
AssertEquals("Column number (1)",
|
||||
0,
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
//
|
||||
// (C) Eduardo Garcia Cebollero.
|
||||
// (C) Ximian, Inc. http://www.ximian.com
|
||||
// Copyright (C) 2004 Novell (http://www.novell.com)
|
||||
//
|
||||
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
using System.IO;
|
||||
@@ -30,7 +32,6 @@ namespace MonoTests.System.IO
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
|
||||
if (Directory.Exists (TempFolder))
|
||||
Directory.Delete (TempFolder, true);
|
||||
}
|
||||
@@ -550,7 +551,87 @@ namespace MonoTests.System.IO
|
||||
stream.Close ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
public void Read_Bytes_BufferNull ()
|
||||
{
|
||||
byte[] b = null;
|
||||
new BinaryReader (new MemoryStream ()).Read (b, 0, 1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_Bytes_IndexNegative ()
|
||||
{
|
||||
byte[] array = new byte [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, -1, array.Length);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Read_Bytes_IndexOverflow ()
|
||||
{
|
||||
byte[] array = new byte [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, Int32.MaxValue, array.Length);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_Bytes_CountNegative ()
|
||||
{
|
||||
byte[] array = new byte [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, 0, -1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Read_Bytes_CountOverflow ()
|
||||
{
|
||||
byte[] array = new byte [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, 0, Int32.MaxValue);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
public void Read_Chars_BufferNull ()
|
||||
{
|
||||
char[] c = null;
|
||||
new BinaryReader (new MemoryStream ()).Read (c, 0, 1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_Chars_IndexNegative ()
|
||||
{
|
||||
char[] array = new char [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, -1, array.Length);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Read_Chars_IndexOverflow ()
|
||||
{
|
||||
char[] array = new char [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, Int32.MaxValue, array.Length);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_Chars_CountNegative ()
|
||||
{
|
||||
char[] array = new char [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, 0, -1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Read_Chars_CountOverflow ()
|
||||
{
|
||||
char[] array = new char [8];
|
||||
new BinaryReader (new MemoryStream ()).Read (array, 0, Int32.MaxValue);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PeakChar ()
|
||||
{
|
||||
|
||||
@@ -535,5 +535,43 @@ public class BufferedStreamTest : Assertion {
|
||||
AssertEquals ("test#01", 9, stream.Position);
|
||||
AssertEquals ("test#02", 9, stream.ReadByte ());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PositionAfterSetLength ()
|
||||
{
|
||||
BufferedStream stream = new BufferedStream (new MemoryStream ());
|
||||
stream.SetLength (32);
|
||||
stream.Position = 32;
|
||||
stream.SetLength (16);
|
||||
AssertEquals ("Position==16", 16, stream.Position);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void SetLength_Disposed ()
|
||||
{
|
||||
BufferedStream stream = new BufferedStream (new MemoryStream ());
|
||||
stream.Close ();
|
||||
stream.SetLength (16);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (NotSupportedException))]
|
||||
public void Seek_ClosedMemoryStream ()
|
||||
{
|
||||
MemoryStream ms = new MemoryStream ();
|
||||
BufferedStream stream = new BufferedStream (ms);
|
||||
ms.Close ();
|
||||
stream.Seek (0, SeekOrigin.Begin);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void Seek_ClosedBufferedStream ()
|
||||
{
|
||||
BufferedStream stream = new BufferedStream (new MemoryStream ());
|
||||
stream.Close ();
|
||||
stream.Seek (0, SeekOrigin.Begin);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,18 @@
|
||||
2003-05-26 Atsushi Enomoto <atsushi@ximian.com>
|
||||
2004-05-30 Sebastien Pouliot <sebastien@ximian.com>
|
||||
|
||||
* BufferedStreamTest.cs: Added tests for Position after SetLength,
|
||||
SetLength after Close and Seek logic exception handling.
|
||||
* FileStream.cs: Added test for invalid SeekOrigin in Seek. Lots of
|
||||
new tests for exception handling (negatives, disposed) and test
|
||||
reading a byte ast the end of the stream.
|
||||
* MemoryStream.cs: Added test for Seek after Close.
|
||||
|
||||
2004-05-29 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* BinaryReader.cs: Added new cases to check exceptions thrown by Read
|
||||
methods.
|
||||
|
||||
2004-05-26 Atsushi Enomoto <[email protected]>
|
||||
|
||||
* FileInfoTest.cs : more incorrect \ fix.
|
||||
|
||||
|
||||
@@ -769,6 +769,18 @@ namespace MonoTests.System.IO
|
||||
if (File.Exists (path))
|
||||
File.Delete (path);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_OffsetNegative ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read)) {
|
||||
stream.Read (new byte[0], -1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
@@ -782,6 +794,18 @@ namespace MonoTests.System.IO
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Read_CountNegative ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read)) {
|
||||
stream.Read (new byte[0], 1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Read_CountOverflow ()
|
||||
@@ -794,6 +818,18 @@ namespace MonoTests.System.IO
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Write_OffsetNegative ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write)) {
|
||||
stream.Write (new byte[0], -1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Write_OffsetOverflow ()
|
||||
@@ -806,6 +842,18 @@ namespace MonoTests.System.IO
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentOutOfRangeException))]
|
||||
public void Write_CountNegative ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write)) {
|
||||
stream.Write (new byte[0], 1, -1);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Write_CountOverflow ()
|
||||
@@ -817,6 +865,117 @@ namespace MonoTests.System.IO
|
||||
stream.Write (new byte[0], 1, Int32.MaxValue);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Seek_InvalidSeekOrigin ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read)) {
|
||||
stream.Seek (0, (SeekOrigin) (-1));
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
public void Constructor_InvalidFileHandle ()
|
||||
{
|
||||
new FileStream ((IntPtr)(-1), FileAccess.Read);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PositionAfterSetLength ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write)) {
|
||||
stream.SetLength (32);
|
||||
stream.Position = 32;
|
||||
stream.SetLength (16);
|
||||
AssertEquals ("Position==16", 16, stream.Position);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void SetLength_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
stream.Close ();
|
||||
stream.SetLength (16);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void Position_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read);
|
||||
stream.Close ();
|
||||
stream.Position = 0;
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void BeginRead_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read);
|
||||
stream.Close ();
|
||||
stream.EndRead (stream.BeginRead (new byte[8], 0, 8, null, null));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void BeginWrite_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
stream.Close ();
|
||||
stream.EndWrite (stream.BeginWrite (new byte[8], 0, 8, null, null));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void Lock_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
stream.Close ();
|
||||
stream.Lock (0,1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void Unlock_Disposed ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Write);
|
||||
stream.Close ();
|
||||
stream.Unlock (0,1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ReadBytePastEndOfStream ()
|
||||
{
|
||||
string path = TempFolder + Path.DirectorySeparatorChar + "temp";
|
||||
DeleteFile (path);
|
||||
using (FileStream stream = new FileStream (path, FileMode.OpenOrCreate, FileAccess.Read)) {
|
||||
stream.Seek (0, SeekOrigin.End);
|
||||
AssertEquals ("ReadByte", -1, stream.ReadByte ());
|
||||
stream.Close ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -419,6 +419,15 @@ namespace MonoTests.System.IO
|
||||
AssertEquals ("#08", 769, ms.Position);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
public void Seek_Disposed ()
|
||||
{
|
||||
MemoryStream ms = new MemoryStream ();
|
||||
ms.Close ();
|
||||
ms.Seek (0, SeekOrigin.Begin);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SetLength ()
|
||||
{
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
2004-05-30 David Sheldon <[email protected]>
|
||||
|
||||
* DecimalTest.cs: Moved the rounding test that fails due to
|
||||
bug 37744 into its own test, and annotated it as ignored until
|
||||
the bug is fixed.
|
||||
|
||||
2004-05-29 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* ConvertTest.cs: Added new parsing tests including special case for
|
||||
Convert.ToSByte. Added test to ChangeType to Empty.
|
||||
* Int64Test.cs: Added new test cases for overflows.
|
||||
|
||||
2004-05-28 Sebastien Pouliot <[email protected]>
|
||||
|
||||
* ConvertTest.cs: Removed extra 0 from ToInt16_MinValue. Added overflow
|
||||
|
||||
@@ -3409,5 +3409,71 @@ namespace MonoTests.System {
|
||||
AssertEquals ("ToUInt64", 0, Convert.ToUInt64 (s));
|
||||
AssertEquals ("ToUInt64+base", 0, Convert.ToUInt64 (s, 10));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void To_NullObject ()
|
||||
{
|
||||
object o = null;
|
||||
// signed
|
||||
AssertEquals ("ToSByte", 0, Convert.ToSByte (o));
|
||||
AssertEquals ("ToInt16", 0, Convert.ToInt16 (o));
|
||||
AssertEquals ("ToInt32", 0, Convert.ToInt32 (o));
|
||||
AssertEquals ("ToInt64", 0, Convert.ToInt64 (o));
|
||||
// unsigned
|
||||
AssertEquals ("ToByte", 0, Convert.ToByte (o));
|
||||
AssertEquals ("ToUInt16", 0, Convert.ToUInt16 (o));
|
||||
AssertEquals ("ToUInt32", 0, Convert.ToUInt32 (o));
|
||||
AssertEquals ("ToUInt64", 0, Convert.ToUInt64 (o));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void To_NullObjectFormatProvider ()
|
||||
{
|
||||
object o = null;
|
||||
IFormatProvider fp = (IFormatProvider) new NumberFormatInfo ();
|
||||
// signed
|
||||
AssertEquals ("ToSByte", 0, Convert.ToSByte (o, fp));
|
||||
AssertEquals ("ToInt16", 0, Convert.ToInt16 (o, fp));
|
||||
AssertEquals ("ToInt32", 0, Convert.ToInt32 (o, fp));
|
||||
AssertEquals ("ToInt64", 0, Convert.ToInt64 (o, fp));
|
||||
// unsigned
|
||||
AssertEquals ("ToByte", 0, Convert.ToByte (o, fp));
|
||||
AssertEquals ("ToUInt16", 0, Convert.ToUInt16 (o, fp));
|
||||
AssertEquals ("ToUInt32", 0, Convert.ToUInt32 (o, fp));
|
||||
AssertEquals ("ToUInt64", 0, Convert.ToUInt64 (o, fp));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (ArgumentNullException))]
|
||||
public void ToSByte_NullStringFormatProvider ()
|
||||
{
|
||||
string s = null;
|
||||
// SByte is a "special" case ???
|
||||
Convert.ToSByte (s, new NumberFormatInfo ());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void To_NullStringFormatProvider ()
|
||||
{
|
||||
string s = null;
|
||||
IFormatProvider fp = (IFormatProvider) new NumberFormatInfo ();
|
||||
// signed
|
||||
// No SByte here
|
||||
AssertEquals ("ToInt16", 0, Convert.ToInt16 (s, fp));
|
||||
AssertEquals ("ToInt32", 0, Convert.ToInt32 (s, fp));
|
||||
AssertEquals ("ToInt64", 0, Convert.ToInt64 (s, fp));
|
||||
// unsigned
|
||||
AssertEquals ("ToByte", 0, Convert.ToByte (s, fp));
|
||||
AssertEquals ("ToUInt16", 0, Convert.ToUInt16 (s, fp));
|
||||
AssertEquals ("ToUInt32", 0, Convert.ToUInt32 (s, fp));
|
||||
AssertEquals ("ToUInt64", 0, Convert.ToUInt64 (s, fp));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (InvalidCastException))]
|
||||
public void ChangeTypeToTypeCodeEmpty ()
|
||||
{
|
||||
Convert.ChangeType (true, TypeCode.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -859,12 +859,12 @@ namespace MonoTests.System {
|
||||
}
|
||||
}
|
||||
|
||||
public void TestRound()
|
||||
public void TestRound()
|
||||
{
|
||||
decimal[,] dtab = {
|
||||
{1m, 0, 1m}, {1.234567890m, 1, 1.2m},
|
||||
{1.234567890m, 2, 1.23m}, {1.23450000001m, 3, 1.235m},
|
||||
{1.2345m, 3, 1.234m}, {1.2355m, 3, 1.236m},
|
||||
{1.2355m, 3, 1.236m},
|
||||
{1.234567890m, 4, 1.2346m}, {1.23567890m, 2, 1.24m},
|
||||
{47893764694.4578563236436621m, 7, 47893764694.4578563m},
|
||||
{-47893764694.4578563236436621m, 9, -47893764694.457856324m},
|
||||
@@ -882,6 +882,26 @@ namespace MonoTests.System {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Ignore ("Bug 37744 - Bankers rounding not implemented")]
|
||||
// When this bug is fixed, this case can be reinserted into the above test.
|
||||
public void TestRoundFailures()
|
||||
{
|
||||
decimal[,] dtab = {
|
||||
{1.2345m, 3, 1.234m}
|
||||
};
|
||||
|
||||
decimal d;
|
||||
|
||||
for (int i = 0; i < dtab.GetLength(0); i++)
|
||||
{
|
||||
d = Decimal.Round(dtab[i,0], (int)dtab[i,1]);
|
||||
if (d != dtab[i,2])
|
||||
{
|
||||
Fail("FailRound: Round(" + dtab[i,0] + "," + (int)dtab[i,1] + ") != " + d);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ParseInt64 ()
|
||||
|
||||
@@ -18,7 +18,8 @@ using System.Threading;
|
||||
namespace MonoTests.System
|
||||
{
|
||||
|
||||
public class Int64Test : TestCase
|
||||
[TestFixture]
|
||||
public class Int64Test : Assertion
|
||||
{
|
||||
private const Int64 MyInt64_1 = -42;
|
||||
private const Int64 MyInt64_2 = -9223372036854775808;
|
||||
@@ -60,11 +61,10 @@ public class Int64Test : TestCase
|
||||
private NumberFormatInfo Nfi = NumberFormatInfo.InvariantInfo;
|
||||
private NumberFormatInfo NfiUser;
|
||||
|
||||
public Int64Test() {}
|
||||
|
||||
private CultureInfo old_culture;
|
||||
|
||||
protected override void SetUp()
|
||||
[SetUp]
|
||||
public void SetUp ()
|
||||
{
|
||||
old_culture = Thread.CurrentThread.CurrentCulture;
|
||||
|
||||
@@ -103,7 +103,8 @@ public class Int64Test : TestCase
|
||||
NfiUser.PercentSymbol = "%%%";
|
||||
}
|
||||
|
||||
protected override void TearDown()
|
||||
[TearDown]
|
||||
public void TearDown ()
|
||||
{
|
||||
Thread.CurrentThread.CurrentCulture = old_culture;
|
||||
}
|
||||
@@ -364,6 +365,45 @@ public class Int64Test : TestCase
|
||||
s = val2.ToString("p", NfiUser);
|
||||
Assert(s.Equals(sval2UserPercent1));
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Parse_MaxValue ()
|
||||
{
|
||||
AssertEquals ("9223372036854775807", Int64.MaxValue, Int64.Parse ("9223372036854775807"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Parse_MinValue ()
|
||||
{
|
||||
AssertEquals ("-9223372036854775808,10", Int64.MinValue, Int64.Parse ("-9223372036854775808"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (OverflowException))]
|
||||
public void Parse_OverByOneMaxValue ()
|
||||
{
|
||||
Int64.Parse ("9223372036854775808");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (OverflowException))]
|
||||
public void Parse_WayOverMaxValue ()
|
||||
{
|
||||
Int64.Parse ("1" + Int64.MaxValue.ToString ());
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (OverflowException))]
|
||||
public void Parse_OverByOneMinValue ()
|
||||
{
|
||||
Int64.Parse ("-9223372036854775809");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (OverflowException))]
|
||||
public void Parse_WayOverMinValue ()
|
||||
{
|
||||
Int64.Parse (Int64.MinValue.ToString () + "1");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -538,6 +538,7 @@ System.Runtime.InteropServices/RegistrationServices.cs
|
||||
System.Runtime.InteropServices/RuntimeEnvironment.cs
|
||||
System.Runtime.InteropServices/SafeArrayRankMismatchException.cs
|
||||
System.Runtime.InteropServices/SafeArrayTypeMismatchException.cs
|
||||
System.Runtime.InteropServices/SetWin32ContextInIDispatchAttribute.cs
|
||||
System.Runtime.InteropServices/StructLayoutAttribute.cs
|
||||
System.Runtime.InteropServices/SYSKIND.cs
|
||||
System.Runtime.InteropServices/TYPEATTR.cs
|
||||
@@ -575,6 +576,7 @@ System.Runtime.InteropServices/UnmanagedType.cs
|
||||
System.Runtime.InteropServices/VARDESC.cs
|
||||
System.Runtime.InteropServices/VarEnum.cs
|
||||
System.Runtime.InteropServices/VARFLAGS.cs
|
||||
System.Runtime.InteropServices/VariantWrapper.cs
|
||||
System.Runtime.InteropServices.Expando/IExpando.cs
|
||||
System.Runtime.Remoting/ActivatedClientTypeEntry.cs
|
||||
System.Runtime.Remoting/ActivatedServiceTypeEntry.cs
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2004-05-30 Marek Safar <[email protected]>
|
||||
|
||||
* cs1017.cs: New test.
|
||||
|
||||
2004-05-19 Marek Safar <[email protected]>
|
||||
|
||||
* cs0579-6.cs: New test for bug #58688.
|
||||
|
||||
Loaded 100 of 145 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user