Click here to Skip to main content
15,501,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Metro UI for windows Form Pin
Hari-CodeBlogger7-Jan-15 6:24
MemberHari-CodeBlogger7-Jan-15 6:24 
GeneralRe: Metro UI for windows Form Pin
Dave Kreskowiak7-Jan-15 6:29
mveDave Kreskowiak7-Jan-15 6:29 
GeneralRe: Metro UI for windows Form Pin
Swinkaran7-Jan-15 13:04
professionalSwinkaran7-Jan-15 13:04 
AnswerRe: Metro UI for windows Form Pin
Swinkaran5-Jan-15 13:44
professionalSwinkaran5-Jan-15 13:44 
GeneralRe: Metro UI for windows Form Pin
Hari-CodeBlogger7-Jan-15 0:56
MemberHari-CodeBlogger7-Jan-15 0:56 
GeneralRe: Metro UI for windows Form Pin
BibhutiAlmighty7-Jan-15 5:50
MemberBibhutiAlmighty7-Jan-15 5:50 
GeneralRe: Metro UI for windows Form Pin
Hari-CodeBlogger7-Jan-15 6:08
MemberHari-CodeBlogger7-Jan-15 6:08 
Questioni cant understand logic code ...help me Pin
Nguyen Jay3-Jan-15 22:56
MemberNguyen Jay3-Jan-15 22:56 
class product
namespace EssentialTools.Models {
public class Product {
public int ProductID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public decimal Price { get; set; }
public string Category { set; get; }
}
}
class LinqValueCalculator
C#
using System.Collections.Generic;
using System.Linq;
namespace EssentialTools.Models {
 public class LinqValueCalculator {
 public decimal ValueProducts(IEnumerable<Product> products) {
 return products.Sum(p => p.Price);
 }
 }
}

The ShoppingCart Class
using System.Collections.Generic;
namespace EssentialTools.Models {
public class ShoppingCart {
private LinqValueCalculator calc;
public ShoppingCart(LinqValueCalculator calcParam) {
calc = calcParam;
}
public IEnumerable<product> Products { get; set; }
public decimal CalculateProductTotal() {
return calc.ValueProducts(Products);
}
}
i dont understand logic code ...plz help me .Thank you
AnswerRe: i cant understand logic code ...help me Pin
OriginalGriff3-Jan-15 23:38
mveOriginalGriff3-Jan-15 23:38 
GeneralRe: i cant understand logic code ...help me Pin
Nguyen Jay3-Jan-15 23:54
MemberNguyen Jay3-Jan-15 23:54 
GeneralRe: i cant understand logic code ...help me Pin
OriginalGriff4-Jan-15 0:11
mveOriginalGriff4-Jan-15 0:11 
GeneralRe: i cant understand logic code ...help me Pin
Nguyen Jay4-Jan-15 0:15
MemberNguyen Jay4-Jan-15 0:15 
AnswerRe: i cant understand logic code ...help me Pin
Abhinav S4-Jan-15 2:17
MemberAbhinav S4-Jan-15 2:17 
GeneralRe: i cant understand logic code ...help me Pin
Nguyen Jay4-Jan-15 2:34
MemberNguyen Jay4-Jan-15 2:34 
AnswerRe: i cant understand logic code ...help me Pin
Abhinav S4-Jan-15 17:05
MemberAbhinav S4-Jan-15 17:05 
QuestionHelp me ... IEnumerable/IEnumerator Pin
Nguyen Jay3-Jan-15 18:54
MemberNguyen Jay3-Jan-15 18:54 
AnswerRe: Help me ... IEnumerable/IEnumerator Pin
BillWoodruff3-Jan-15 20:47
mveBillWoodruff3-Jan-15 20:47 
GeneralRe: Help me ... IEnumerable/IEnumerator Pin
Nguyen Jay3-Jan-15 21:06
MemberNguyen Jay3-Jan-15 21:06 
QuestionFEATURE_BROWSER_EMULATION for Class Addin Pin
Member 113215783-Jan-15 10:57
MemberMember 113215783-Jan-15 10:57 
AnswerRe: FEATURE_BROWSER_EMULATION for Class Addin Pin
BillWoodruff3-Jan-15 12:55
mveBillWoodruff3-Jan-15 12:55 
GeneralRe: FEATURE_BROWSER_EMULATION for Class Addin Pin
Member 113215783-Jan-15 16:13
MemberMember 113215783-Jan-15 16:13 
GeneralRe: FEATURE_BROWSER_EMULATION for Class Addin Pin
BillWoodruff3-Jan-15 16:35
mveBillWoodruff3-Jan-15 16:35 
QuestionSearch options Database Pin
rattlerrFx3-Jan-15 7:38
MemberrattlerrFx3-Jan-15 7:38 
AnswerRe: Search options Database Pin
DamithSL3-Jan-15 15:55
professionalDamithSL3-Jan-15 15:55 
GeneralRe: Search options Database Pin
rattlerrFx3-Jan-15 16:15
MemberrattlerrFx3-Jan-15 16:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.