Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
AnswerRe: simulate Alt+Shift in all objects of project C# Pin
OriginalGriff3-Jul-16 22:50
mveOriginalGriff3-Jul-16 22:50 
Questionhow to sum time in grid view footer c# Pin
Member 125037693-Jul-16 20:06
Member 125037693-Jul-16 20:06 
QuestionRe: how to sum time in grid view footer c# Pin
Richard MacCutchan3-Jul-16 22:05
mveRichard MacCutchan3-Jul-16 22:05 
AnswerRe: how to sum time in grid view footer c# Pin
Member 125037693-Jul-16 23:11
Member 125037693-Jul-16 23:11 
GeneralRe: how to sum time in grid view footer c# Pin
Richard MacCutchan3-Jul-16 23:20
mveRichard MacCutchan3-Jul-16 23:20 
QuestionC# - New to programming! Stuck! Can someone help explain this code? Pin
Member 126152642-Jul-16 4:21
Member 126152642-Jul-16 4:21 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Dave Kreskowiak2-Jul-16 5:15
mveDave Kreskowiak2-Jul-16 5:15 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
Richard MacCutchan2-Jul-16 5:17
mveRichard MacCutchan2-Jul-16 5:17 
Not really much that you can break it down to:
C#
static int Pow(int x, int y=2)
{
    // Pow is a static method that takes two parameters:
    // x is the number that we want to find a power of
    // y is the power, if not specified the default value of 2 is used

    int result = 1;   // set the result to 1

    // counting from zero to the power value - 1 (e.g 0 to 1, if power = 2)
    for (int i = 0; i < y; i++)
    {
        // multiply result by the number x
        // so, first time round result will be equal to x
        //     second time result will be x squared etc
        result *= x;
    }
    // return the calculated value to the caller.
    return result;
}

AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
BillWoodruff3-Jul-16 1:55
professionalBillWoodruff3-Jul-16 1:55 
AnswerRe: C# - New to programming! Stuck! Can someone help explain this code? Pin
koolprasad20036-Jul-16 18:38
professionalkoolprasad20036-Jul-16 18:38 
QuestionLoading a type dynamically Pin
Super Lloyd1-Jul-16 18:42
Super Lloyd1-Jul-16 18:42 
AnswerRe: Loading a type dynamically Pin
Eddy Vluggen2-Jul-16 0:50
professionalEddy Vluggen2-Jul-16 0:50 
AnswerRe: Loading a type dynamically Pin
BillWoodruff3-Jul-16 1:58
professionalBillWoodruff3-Jul-16 1:58 
GeneralRe: Loading a type dynamically Pin
Super Lloyd3-Jul-16 2:25
Super Lloyd3-Jul-16 2:25 
QuestionSplit Excel Workbook to sheets Pin
Magic19041-Jul-16 9:05
Magic19041-Jul-16 9:05 
AnswerRe: Split Excel Workbook to sheets Pin
Gerry Schmitz1-Jul-16 9:39
mveGerry Schmitz1-Jul-16 9:39 
AnswerRe: Split Excel Workbook to sheets Pin
Richard MacCutchan1-Jul-16 21:22
mveRichard MacCutchan1-Jul-16 21:22 
AnswerRe: Split Excel Workbook to sheets Pin
Patrice T2-Jul-16 17:26
mvePatrice T2-Jul-16 17:26 
QuestionLinq to SQL multiple tables problem Pin
Member 119277061-Jul-16 8:23
Member 119277061-Jul-16 8:23 
AnswerRe: Linq to SQL multiple tables problem Pin
Gerry Schmitz1-Jul-16 9:52
mveGerry Schmitz1-Jul-16 9:52 
QuestionHow to render empty byte array element as xml tag in c#? Pin
Raghavendra.Kodimala1-Jul-16 4:42
professionalRaghavendra.Kodimala1-Jul-16 4:42 
AnswerRe: How to render empty byte array element as xml tag in c#? Pin
Gerry Schmitz1-Jul-16 5:26
mveGerry Schmitz1-Jul-16 5:26 
GeneralRe: How to render empty byte array element as xml tag in c#? Pin
Raghavendra.Kodimala1-Jul-16 6:40
professionalRaghavendra.Kodimala1-Jul-16 6:40 
GeneralRe: How to render empty byte array element as xml tag in c#? Pin
Gerry Schmitz1-Jul-16 9:33
mveGerry Schmitz1-Jul-16 9:33 
QuestionLock the Computer Pin
Sabry19051-Jul-16 3:47
Sabry19051-Jul-16 3:47 

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.