예제 #1
0
파일: Example1.cs 프로젝트: dangraahmed/RND
 public override string GetName()
 {
     return(string.Format("{0}, {1}", m_BaseComponent.GetName(), m_Name));
 }
예제 #2
0
파일: Example1.cs 프로젝트: dangraahmed/RND
 private static void PrintProductDetails(BakeryComponent product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice());
 }