Format:
Recent snippets for: naveensrinivasan
////////////////// First Option public IEnumerable<Tuple<T,Tuple<bool,string>>> GetFailedSystemRules<T>(T item, IEnumerable<Func<T,Tuple<bool,string>>> funcs) { return funcs.Select(f => Tuple.Create(item,f(item))).Where(f => f.Item2.Item1 == false); } public IEnumerable<Tuple<T,Tuple<bool,string>>> GetPassedSystemRules<T>(T item, IEnumerable<Func<T,Tuple<bool,string>>> funcs) { return funcs.Select(f => Tuple.Create(item,f(item))).Where(f => f.Item2.Item1 == true);
120 Views
no comments
namespace TestPerson { public class Person { public string Name { get; set; } public int Age { get; set; } public char Sex { get; set; } } }
182 Views
no comments
BeginHeader UnknownEvent/Classic, TimeStamp, Process Name ( PID), ThreadID, CPU, EventGuid, Type, Level, Version, MofLength InvalidEvent/Classic, TimeStamp, Process Name ( PID), ThreadID, CPU, EventGuid, Type, Level, Version, MofLength UnknownEvent/Crimson, TimeStamp, Process Name ( PID), ThreadID, CPU, ProviderId, Id, Task, Opcode, Version, Channel, Level, Keyword, UserDataLength InvalidEvent/Crimson, TimeStamp, Process Name ( PID), ThreadID, CPU, ProviderId, Id, Task, Opcode, Version, Channel, Level, Keyword, UserDataLength Microsoft-Windows-DotNETRuntime/Exception /Start , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, ExceptionType, ExceptionMessage, ExceptionEIP, ExceptionHRESULT, ExceptionFlags, ClrInstanceID Microsoft-Windows-DotNETRuntime/Runtime /Start , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, ClrInstanceID, Sku, BclMajorVersion, BclMinorVersion, BclBuildNumber, BclQfeNumber, VMMajorVersion, VMMinorVersion, VMBuildNumber, VMQfeNumber, StartupFlags, StartupMode, CommandLine, ComObjectGuid, RuntimeDllPath FirstReliableEventTimeStamp, TimeStamp EndHeader OS Version: 6.1.7600, Trace Size: 128KB, Events Lost: 0, Buffers lost: 0, Trace Start: 129137010665867140, Trace Length: 24 sec, PointerSize: 8, Trace Name: clrevents.etl
714 Views
no comments
BeginHeader UnknownEvent/Classic, TimeStamp, Process Name ( PID), ThreadID, CPU, EventGuid, Type, Level, Version, MofLength InvalidEvent/Classic, TimeStamp, Process Name ( PID), ThreadID, CPU, EventGuid, Type, Level, Version, MofLength UnknownEvent/Crimson, TimeStamp, Process Name ( PID), ThreadID, CPU, ProviderId, Id, Task, Opcode, Version, Channel, Level, Keyword, UserDataLength InvalidEvent/Crimson, TimeStamp, Process Name ( PID), ThreadID, CPU, ProviderId, Id, Task, Opcode, Version, Channel, Level, Keyword, UserDataLength Microsoft-Windows-DotNETRuntime/GC /Start , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, Count, Depth, Reason, Type, ClrInstanceID Microsoft-Windows-DotNETRuntime/GC /Stop , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, Count, Depth, ClrInstanceID Microsoft-Windows-DotNETRuntime/GC /RestartEEStop , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, ClrInstanceID Microsoft-Windows-DotNETRuntime/GC /HeapStats , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, GenerationSize0, TotalPromotedSize0, GenerationSize1, TotalPromotedSize1, GenerationSize2, TotalPromotedSize2, GenerationSize3, TotalPromotedSize3, FinalizationPromotedSize, FinalizationPromotedCount, PinnedObjectCount, SinkBlockCount, GCHandleCount, ClrInstanceID Microsoft-Windows-DotNETRuntime/GC /CreateSegment , TimeStamp, Process Name ( PID), ThreadID, CPU, etw:ActivityId, etw:Related ActivityId, etw:UserSid, etw:SessionId, Address, Size, Type, ClrInstanceID
657 Views
no comments
//--------------------------------------------------------------------- // <autogenerated> // // Generated by Message Compiler (mc.exe) // // Copyright (c) Microsoft Corporation. All Rights Reserved. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated>
803 Views
no comments
<?xml version="1.0" encoding="UTF-16"?> <instrumentationManifest xsi:schemaLocation="http://schemas.microsoft.com/win/2004/08/events eventman.xsd" xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:win="http://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:trace="http://schemas.microsoft.com/win/2004/08/events/trace"> <instrumentation> <events> <provider name="SampleProvider" message="$(string.ProviderMessage)" guid="{D9B453B9-6230-486C-8DEC-C7C5A2230D04}" symbol="SampleProvider" resourceFileName="f:\downloads\EtwProvider.exe" messageFileName="f:\downloads\EtwProvider.exe"> <events> <event symbol="SampleEvent" value="1001" version="1" channel="SampleOperationalChannel" level="win:Informational" template="SimpleTemplate" task="SampleTask" opcode="SampleOpCode" keywords="SampleKeyword" message="$(string.SampleProvider.SampleEvent.message)"> </event> </events> <levels>
257 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
