Click here to Skip to main content
15,900,973 members
Home / Discussions / C#
   

C#

 
AnswerRe: problem in occurs in win 7 Pin
Corinna John12-Jul-10 21:13
Corinna John12-Jul-10 21:13 
QuestionHow to resize the drwan rectangle when zoomin the image in the picture box? [modified] Pin
Nivas8212-Jul-10 18:21
Nivas8212-Jul-10 18:21 
AnswerRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
R. Giskard Reventlov12-Jul-10 21:27
R. Giskard Reventlov12-Jul-10 21:27 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
Nivas8212-Jul-10 22:12
Nivas8212-Jul-10 22:12 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
PaulPrice12-Jul-10 22:21
PaulPrice12-Jul-10 22:21 
GeneralRe: How to resize the drwan rectangle when zoomin the image in the picture box? [modified] Pin
Nivas8212-Jul-10 22:26
Nivas8212-Jul-10 22:26 
AnswerRe: How to resize the drwan rectangle when zoomin the image in the picture box? Pin
Nivas8226-Jul-10 0:22
Nivas8226-Jul-10 0:22 
QuestionInlined Code Question Pin
Richard Blythe12-Jul-10 14:27
Richard Blythe12-Jul-10 14:27 
Below is sample code from one of my recent apps. I used this pattern a lot when designing searchable objects. I know that by appearances, there will be more than two method calls involved.
However, I've read that the C# compiler inlines short blocks of code.

Will the "Contained" method be inlined at compile time?


/// <summary>
/// Returns a value indicating if the path contains the specified node type.
/// </summary>
/// <param name="nodeType">Specifies the node type.</param>
/// <returns></returns>
public bool Contains(BindingPathNodeType nodeType)
{
    return IndexOf(nodeType) != -1;
}

/// <summary>
/// Attempts to locate the first (zero-based) index position of the specified node type.
/// </summary>
/// <param name="nodeType">Specifies the node type.</param>
/// <returns></returns>
public int IndexOf(BindingPathNodeType nodeType)
{
    int intCount = parsedPathNodes.Length;
    for (int i = 0; i < intCount; i++)
        if (parsedPathNodes[i].NodeType == nodeType)
            return i;
    return -1;
}

The mind is like a parachute. It doesn’t work unless it’s open.

AnswerRe: Inlined Code Question Pin
Not Active12-Jul-10 14:36
mentorNot Active12-Jul-10 14:36 
AnswerRe: Inlined Code Question Pin
PIEBALDconsult12-Jul-10 17:40
mvePIEBALDconsult12-Jul-10 17:40 
GeneralRe: Inlined Code Question Pin
Richard Blythe13-Jul-10 4:59
Richard Blythe13-Jul-10 4:59 
GeneralRe: Inlined Code Question Pin
PIEBALDconsult13-Jul-10 17:43
mvePIEBALDconsult13-Jul-10 17:43 
AnswerRe: Inlined Code Question Pin
harold aptroot13-Jul-10 5:16
harold aptroot13-Jul-10 5:16 
GeneralRe: Inlined Code Question Pin
Richard Blythe13-Jul-10 5:31
Richard Blythe13-Jul-10 5:31 
QuestionHow can I make a self updating application - specifically a plug-in - via C#? Pin
euroazn12-Jul-10 7:40
euroazn12-Jul-10 7:40 
AnswerRe: How can I make a self updating application - specifically a plug-in - via C#? Pin
ramzg12-Jul-10 9:47
ramzg12-Jul-10 9:47 
AnswerRe: How can I make a self updating application - specifically a plug-in - via C#? Pin
Not Active12-Jul-10 11:47
mentorNot Active12-Jul-10 11:47 
Question.NET IL Code Pin
I Believe In GOD12-Jul-10 7:22
I Believe In GOD12-Jul-10 7:22 
AnswerRe: .NET IL Code PinPopular
DaveyM6912-Jul-10 7:25
professionalDaveyM6912-Jul-10 7:25 
GeneralRe: .NET IL Code Pin
I Believe In GOD12-Jul-10 9:00
I Believe In GOD12-Jul-10 9:00 
GeneralRe: .NET IL Code Pin
DaveyM6912-Jul-10 9:08
professionalDaveyM6912-Jul-10 9:08 
GeneralRe: .NET IL Code Pin
Keith Barrow12-Jul-10 9:33
professionalKeith Barrow12-Jul-10 9:33 
AnswerRe: .NET IL Code Pin
Keith Barrow12-Jul-10 7:27
professionalKeith Barrow12-Jul-10 7:27 
GeneralRe: .NET IL Code Pin
harold aptroot12-Jul-10 7:28
harold aptroot12-Jul-10 7:28 
GeneralRe: .NET IL Code Pin
I Believe In GOD12-Jul-10 9:02
I Believe In GOD12-Jul-10 9:02 

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.