Format:
Recent snippets matching tags of stack
void Main() { List<Budget> list1 = new List<Budget>() { new Budget { SeasonNo = "1", SeasonName = "Test 1", typeProductCd = "3", UsdActualRetail = 1.01m }, new Budget { SeasonNo = "1", SeasonName = "Test 2", typeProductCd = "3", UsdActualRetail = 1.01m }, new Budget { SeasonNo = "1", SeasonName = "Test 3", typeProductCd = "3", UsdActualRetail = 1.01m }, new Budget { SeasonNo = "1", SeasonName = "Test 4", typeProductCd = "3", UsdActualRetail = 1.01m }, }; List<Budget> list2 = new List<Budget>() {
227 Views
no comments
void Main() { AutoMapper.Mapper.CreateMap<Contact, KeyValuePair<Guid, string>>() .ConstructUsing(x => new KeyValuePair<Guid, string>(x.Id, x.FullName)); //var contacts = ContactRepository.GetAll(); // Returns IList<Contact> var contacts = new List<Contact> { new Contact { Id = Guid.NewGuid(), FullName = "Joe Bob" }, new Contact { Id = Guid.NewGuid(), FullName = "Sally Jones" }, };
304 Views
no comments
void _ShowItemQuota() { this.Text = "Item Quota"; ShowItemQuota(new List<ItemQuotaSeries>() { new ItemQuotaSeries{Used = 123, Quota = 1234, Name = "Type 1"}, new ItemQuotaSeries{Used = 123, Quota = 2345, Name="Type 2"}, new ItemQuotaSeries{Used = 234, Quota = 1234, Name="Type Three"}, new ItemQuotaSeries{Used = 123, Quota = 1234, Name = "Type 4"}, new ItemQuotaSeries{Used = 123, Quota = 125, Name="Type 5"},
774 Views
no comments
public class cstack implements containers{ node top; cstack() { top = null; } public void add(int[] val) { node temp = new node(); temp.value = val;
142 Views
no comments
/***********/ /* Stiva.h */ /***********/ #ifndef STIVA #define STIVA struct nod { int val;
150 Views
no comments
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:user="urn:fnord:scripts" > <xsl:output method="text" indent="yes"/> <msxsl:script implements-prefix="user" language="CSharp"> <![CDATA[ public string locationList = "";
280 Views
no comments
// ==UserScript== // @name StackOverflow - Auto Upvote // @namespace StackOverflow // @include http://stackoverflow.com/questions/* // @include http://meta.stackoverflow.com/questions/* // @include http://serverfault.com/questions/* // @include http://superuser.com/questions/* // ==/UserScript== (function() {
282 Views
1 comments
[Serializable, DebuggerTypeProxy(typeof(StackDebugView)), DebuggerDisplay("Count = {Count}"), ComVisible(true)] public class Stack : ICollection, IEnumerable, ICloneable { // Fields private object[] _array; private const int _defaultCapacity = 10; private int _size; [NonSerialized] private object _syncRoot; private int _version;
212 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
