This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PerishableItem : IProduct | |
{ | |
#region IProduct Interface Data Members | |
public string Name { get; set; } | |
public double Price { get; set; } | |
public double UnitPrice { get; set; } | |
public uint SKU { get; set; } | |
#endregion | |
//Omitted Code... it's the same as above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IProduct | |
{ | |
string Name { get; set; } | |
double Price { get; set; } | |
double UnitPrice { get; set; } | |
uint SKU { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PerishableItem | |
{ | |
public string Name { get; set; } | |
public double Price { get; set; } | |
public double UnitPrice { get; set; } | |
public uint SKU { get; set; } | |
public DateTime SellByDate { get; set; } | |
public DateTime ExpirationDate { get; set; } | |
protected delegate void ExpiredItemHandler(object sender,ExpiredItemEventArgs e); | |
public event ExpiredItemHandler Expired; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Copyright (c) 2011 Brian Driscoll | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClassFoo | |
{ | |
public string Foo { get; set; } | |
public MyClassFoo(string foo) | |
{ | |
Foo = foo; | |
} | |
public string DoSomethingWithFoo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* The ScriptTimer class provides an easy and efficient method for identifying | |
* time sinks in your code. Ideally you'd insert time markers around lines of | |
* code that you believe are causing your application to run slowly so that you | |
* can identify the slow-running culprit and fix it! | |
* | |
* @author Brian Driscoll | |
* @license The MIT License |
NewerOlder