MyNamespaceForCSharp Imitate the My namespace of Visual Basic in C# var mem = My.Computer.Info.AvailablePhysicalMemory;