|
From: Michael D. <mik...@us...> - 2004-07-22 13:30:11
|
Update of /cvsroot/nhibernate/nhibernate/src/HashCodeProvider In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11400/HashCodeProvider Added Files: AssemblyInfo.cs HashCodeProvider.build HashCodeProvider.il HashCodeProvider.license.txt Log Message: Replacement code for RuntimeHelpers.GetHashCode(object) that is causing the MissingMethodException --- NEW FILE: HashCodeProvider.license.txt --- Copyright (c) 2002 Mattias Sjogren This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. No substantial portion of the source code may be redistributed without the express written permission of the copyright holders, where "substantial" is defined as enough code to be recognizably from this library. --- NEW FILE: HashCodeProvider.il --- .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 1:0:5000:0 } .assembly HashCodeProvider { .custom instance void [mscorlib]System.Reflection.AssemblyKeyNameAttribute::.ctor(string) = ( 01 00 00 00 00 ) .custom instance void [mscorlib]System.Reflection.AssemblyKeyFileAttribute::.ctor(string) = ( 01 00 00 00 00 ) .custom instance void [mscorlib]System.Reflection.AssemblyDelaySignAttribute::.ctor(bool) = ( 01 00 00 00 00 ) .custom instance void [mscorlib]System.Reflection.AssemblyFileVersionAttribute::.ctor(string) = ( 01 00 05 31 2E 30 2E 30 00 00 ) // ...1.0.0.. .custom instance void [mscorlib]System.Reflection.AssemblyInformationalVersionAttribute::.ctor(string) = ( 01 00 03 31 2E 30 00 00 ) // ...1.0.. .custom instance void [mscorlib]System.Reflection.AssemblyTrademarkAttribute::.ctor(string) = ( 01 00 00 00 00 ) .custom instance void [mscorlib]System.Reflection.AssemblyCopyrightAttribute::.ctor(string) = ( 01 00 22 43 6F 70 79 72 69 67 68 74 20 28 63 29 // .."Copyright (c) 20 32 30 30 32 20 4D 61 74 74 69 61 73 20 53 6A // 2002 Mattias Sj 6F 67 72 65 6E 00 00 ) // ogren.. .custom instance void [mscorlib]System.Reflection.AssemblyProductAttribute::.ctor(string) = ( 01 00 10 48 61 73 68 43 6F 64 65 50 72 6F 76 69 // ...HashCodeProvi 64 65 72 00 00 ) // der.. .custom instance void [mscorlib]System.Reflection.AssemblyCompanyAttribute::.ctor(string) = ( 01 00 33 68 74 74 70 3A 2F 2F 77 77 77 2E 6D 73 // ..3http://www.ms 6A 6F 67 72 65 6E 2E 6E 65 74 2F 64 6F 74 6E 65 // jogren.net/dotne 74 2F 65 6E 67 2F 73 61 6D 70 6C 65 73 2F 6D 69 // t/eng/samples/mi 73 63 2E 61 73 70 00 00 ) // sc.asp.. .custom instance void [mscorlib]System.Reflection.AssemblyConfigurationAttribute::.ctor(string) = ( 01 00 00 00 00 ) .custom instance void [mscorlib]System.Reflection.AssemblyDescriptionAttribute::.ctor(string) = ( 01 00 30 55 74 69 6C 69 74 79 20 74 6F 20 63 61 // ..0Utility to ca 6C 6C 20 4F 62 6A 65 63 74 2E 47 65 74 48 61 73 // ll Object.GetHas 68 43 6F 64 65 20 6E 6F 6E 76 69 72 74 75 61 6C // hCode nonvirtual 6C 79 2E 00 00 ) // ly... .custom instance void [mscorlib]System.Reflection.AssemblyTitleAttribute::.ctor(string) = ( 01 00 10 48 61 73 68 43 6F 64 65 50 72 6F 76 69 // ...HashCodeProvi 64 65 72 00 00 ) // der.. .hash algorithm 0x00008004 .ver 1:0:0:0 } .module HashCodeProvider.dll // MVID: {52F1D165-1EC9-4B77-8031-3AAFBBC27452} .imagebase 0x11000000 .subsystem 0x00000003 .file alignment 4096 .corflags 0x00000001 // Image base: 0x07b50000 .namespace HashCodeProvider { .class public IdentityHashCodeProvider implements [mscorlib]System.Collections.IHashCodeProvider { .method private hidebysig newslot final virtual instance int32 System.Collections.IHashCodeProvider.GetHashCode(object obj) { .override [mscorlib]System.Collections.IHashCodeProvider::GetHashCode ldarg.1 call instance int32 [mscorlib]System.Object::GetHashCode() ret } .method public hidebysig specialname rtspecialname instance void .ctor() { ldarg.0 call instance void [mscorlib]System.Object::.ctor() ret } } } --- NEW FILE: HashCodeProvider.build --- <?xml version="1.0" ?> <project name="HashCodeProvider" default="build" xmlns="http://nant.sf.net/schemas/nant-0.84.win32.net-1.0.xsd" > <target name="build"> <exec program="${nant.settings.currentframework.frameworkdirectory}\ilasm" commandline="HashCodeProvider.il /dll /output:..\..\external-bin\HashCodeProvider.dll" /> <copy file="HashCodeProvider.license.txt" todir="../../external-bin" /> </target> </project> --- NEW FILE: AssemblyInfo.cs --- using System.Reflection; using System.Runtime.CompilerServices; // // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. // [assembly: AssemblyTitle("HashCodeProvider")] [assembly: AssemblyDescription("Utility to call Object.GetHashCode nonvirtually.")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("http://www.msjogren.net/dotnet/eng/samples/misc.asp")] [assembly: AssemblyProduct("HashCodeProvider")] [assembly: AssemblyCopyright( "Copyright (c) 2002 Mattias Sjogren" + "\n\nThis software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software." + "\n\nPermission is granted to anyone to use this software for any purpose, including commercial applications, subject to the following restrictions:" + "\n\n1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required." + "\n\n2. No substantial portion of the source code may be redistributed without the express written permission of the copyright holders, where \"substantial\" is defined as enough code to be recognizably from this library.")] // // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] // // In order to sign your assembly you must specify a key to use. Refer to the // Microsoft .NET Framework documentation for more information on assembly signing. // // Use the attributes below to control which key is used for signing. // // Notes: // (*) If no key is specified, the assembly is not signed. // (*) KeyName refers to a key that has been installed in the Crypto Service // Provider (CSP) on your machine. KeyFile refers to a file which contains // a key. // (*) If the KeyFile and the KeyName values are both specified, the // following processing occurs: // (1) If the KeyName can be found in the CSP, that key is used. // (2) If the KeyName does not exist and the KeyFile does exist, the key // in the KeyFile is installed into the CSP and used. // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. // When specifying the KeyFile, the location of the KeyFile should be // relative to the project output directory which is // %Project Directory%\obj\<configuration>. For example, if your KeyFile is // located in the project directory, you would specify the AssemblyKeyFile // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework // documentation for more information on this. // [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] [assembly: AssemblyKeyName("")] |