Made change per https://code.google.com/p/google-api-dotnet-client/issues/detail?id=330 peverify fails to verify Google.Apis.dll due to typeof() method. Used Type.Equals ...
10 years, 6 months ago
(2014-06-25 17:47:44 UTC)
#1
Made change per
https://code.google.com/p/google-api-dotnet-client/issues/detail?id=330
peverify fails to verify Google.Apis.dll due to typeof() method. Used
Type.Equals method to confirm equality of T's Type.
[IL]: Error:
[C:\Users\Christopher\Source\Tortoise\330\google-api-dotnet-client\default\Src\GoogleApis\bin\Debug\Google.Apis.dll
:
Google.Apis.Services.BaseClientService+<DeserializeResponse>d__2`1[T]::MoveNext][mdToken=0x60000fe][offset
0x000000BC] The 'this' parameter to the call must be the calling method's 'this'
parameter.(Error: 0x801318E1)
1 Error(s) Verifying
C:\Users\Christopher\Source\Tortoise\330\google-api-dotnet-client\default\Src\GoogleApis\bin\Debug\Google.Apis.dll
Removed:
if (typeof(T).Equals(typeof(string)))
{
return (T)(object)text;
}
Added:
if (Type.Equals(typeof(T),typeof(string)))
{
return (T)(object)text;
}
Reverified using peverify:
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
All Classes and Methods in
C:\Users\Christopher\Source\Tortoise\330\google-api-dotnet-client\default\Src\GoogleApis\bin\Debug\Google.Apis.dll
Verified.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>
Issue 110190043: Issue 330 - Operation Could Destabilize Runtime Google.Api.Services.BaseClientService.cs
Created 10 years, 6 months ago by cbartholomew
Modified 10 years ago
Reviewers: pele..._google.com
Base URL:
Comments: 0