Hi,

 

In this case it's better to c&p than to add a dependency on
System.Runtime.Caching.dll.

 

Rolf

 

From: Andrew Benz [mailto:[email protected]] 
Sent: martes, 15 de marzo de 2011 23:27
To: Rolf Bjarne Kvinge
Cc: [email protected]
Subject: Re: [mono-vb]
Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory

 

I don't know if it's in the MS .NET runtime, but I know it's in Mono's
implementation of the MemoryCache object.  It's an internal method, though.
I can take a crack and getting you a patch tomorrow (I've got class
tonight), but I've got two questions: first, are you averse to taking a
dependency on System.Diagnostics and second, the functionality I'd like to
use currently exists in the main Mono class library but is not publicly
accessible.  Is there a way of sharing that code or is copy & paste good
enough?

 

Thanks

Andrew

On Tue, Mar 15, 2011 at 4:55 PM, Rolf Bjarne Kvinge <[email protected]>
wrote:

Hi,

 

>From what you tell it can be used. I wasn't able to find
System.Runtime.Caching.MemoryCache.DetermineTotalPhysicalMemory on MSDN
though.

 

In any case I'd be happy to commit any patches you may have.

 

Rolf

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew Benz
Sent: lunes, 14 de marzo de 2011 19:30
To: [email protected]
Subject: [mono-vb]
Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory

 

I just ran into an issue where a library that I'm trying to use makes use of
the Microsoft.VisualBasic.Devices.ComputerInfo.TotalPhysicalMemory, which is
currently throwing a NotImplementedException.  I'm guessing that this method
is supposed to return the save value as
System.Runtime.Caching.MemoryCache.DetermineTotalPhysicalMemory, which is
implemented in the main mono runtime.  Could that functionality be re-used
in the TotalPhysicalMemory property?


Thanks,
Andrew

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3508 - Release Date: 03/15/11

 

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1498/3509 - Release Date: 03/15/11

_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to