What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-29 22:09:04
vbnet programatically convert type to db type
using Microsoft.SqlServer.Server; // SqlDataRecord and SqlMetaData using System; using System.Collections; // IEnumerator and IEnumerable using System.Collections.Generic; // general IEnumerable and IEnumerator using System.Data; // DataTable and SqlDataT... Add solution -
C# 2021-09-29 01:30:02
C# search a nonbinary tree for common ancestor +nonbinary
public class Node<T> where T:IComparable { public T Value { get; set; } public IList<Node<T>> Children { get; set; } public override string ToString() { return Value.ToString(); } public static Func<... Add solution -
C# 2021-09-28 01:03:03
how to add system.messaging c#
[System.ComponentModel.TypeConverter(typeof(System.Messaging.Design.MessageQueueConverter))] [System.Messaging.MessagingDescription("MessageQueueDesc")] public class MessageQueue : System.ComponentModel.Component, System.Collections.IEnumerable Add solution -
C# 2021-09-26 00:54:02
c# deeply related children
// Usage: var relativeChildren = Traverse(myListOfRelativeChildren, item => item.Children); relativeChildren.ToList().ForEach((child) => { // this way you can even get the properties of child objects Console.WriteLine(child.Id); }); public stat... Add solution -
TypeScript 2021-09-23 03:56:03
c# ienumerable wrap to know when its compltee
IEnumerable<string> names = GetNames(); foreach (var name in names) Console.WriteLine("Found " + name); var allNames = new StringBuilder(); foreach (var name in names) allNames.Append(name + " "); Add solution -
C# 2021-09-21 04:12:03
object list to csv c#
private void SaveToCsv<T>(List<T> reportData, string path) { var lines = new List<string>(); IEnumerable<PropertyDescriptor> props = TypeDescriptor.GetProperties(typeof(T)).OfType<PropertyDescriptor>(); var header... Add solution