Core/CafeLib.Core/Support/ObjectId.cs
// private static methods
/// <summary>
/// Gets the current process id.  This method exists because of how CAS operates on the call stack, checking
/// for permissions before executing the method.  Hence, if we inlined this call, the calling method would not execute
/// before throwing an exception requiring the try/catch at an even higher level that we don't necessarily control.
/// </summary>
Gets the current process id.  This method exists because of how CAS operates on the call stack, checking
for permissions before executing the method.  Hence, if we inlined this call, the calling method would not execute
before throwing an exception requiring the try/catch at an even higher level that we don't necessarily control.
Gets the current process id . This method exists because of how CAS operates on the call stack checking for permissions before executing the method . Hence if we inlined this call the calling method would not execute before throwing an exception requiring the try / catch at an even higher level that we don ' t necessarily control .
[MethodImpl(MethodImplOptions.NoInlining)]
        private static int GetCurrentProcessId()
        {
            return System.Diagnostics.Process.GetCurrentProcess().Id;
        }
[ MethodImpl ( MethodImplOptions . NoInlining ) ] private static int GetCurrentProcessId ( ) { return System . Diagnostics . Process . GetCurrentProcess ( ) . Id ; }
Gets the current process id.
Gets the current process id .