CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of stack
C#
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>() {
by mellamokb   July 15, 2011 @ 4:04pm
227 Views
no comments
 
C#
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" },
    };
by mellamokb   July 15, 2011 @ 2:54pm
304 Views
no comments
 
C#
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"},
by Jerry Nixon   October 12, 2010 @ 7:42pm
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;
by Parvulescu Cosmin   April 15, 2010 @ 5:11pm
Tags: java, stack
142 Views
no comments
 
C++
/***********/
/* Stiva.h */
/***********/
 
#ifndef STIVA
#define STIVA
 
struct nod
{
    int val;
by Parvulescu Cosmin   January 22, 2010 @ 9:04am
Tags: Stack, C++
150 Views
no comments
 
XML
<?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 = "";
        
by Jason Rowe   January 04, 2010 @ 12:16pm
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() {
by Jon Erickson   November 25, 2009 @ 2:19pm
282 Views
1 comments
 
C#
[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;
by Athens Springer   October 29, 2009 @ 12:53pm
Tags: C#, Stack
212 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate