Click here to Skip to main content
15,895,538 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Visual Basic needs more credit PinPopular
Richard MacCutchan10-Jun-14 4:44
mveRichard MacCutchan10-Jun-14 4:44 
GeneralRe: Visual Basic needs more credit PinPopular
PIEBALDconsult10-Jun-14 4:47
mvePIEBALDconsult10-Jun-14 4:47 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 4:48
Colborne_Greg10-Jun-14 4:48 
GeneralRe: Visual Basic needs more credit PinPopular
Richard Deeming10-Jun-14 4:51
mveRichard Deeming10-Jun-14 4:51 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 5:07
Colborne_Greg10-Jun-14 5:07 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 5:55
mveRichard Deeming10-Jun-14 5:55 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 6:07
Colborne_Greg10-Jun-14 6:07 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 6:14
mveRichard Deeming10-Jun-14 6:14 
Colborne_Greg wrote:
second one fails

No, it doesn't.
https://dotnetfiddle.net/J0N7Mm[^]

C#
using System;

public class Program
{
    public static void Main()
    {
        int height = 100;
        var image = new Image { height = height };
        Console.WriteLine("The image's height is {0}.", image.height);
    }
}

public class Image
{
    public int height { get; set; }
}


Output: The image's height is 100.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralMessage Closed Pin
10-Jun-14 6:16
Colborne_Greg10-Jun-14 6:16 
GeneralRe: Visual Basic needs more credit Pin
Adam Tibi10-Jun-14 23:28
professionalAdam Tibi10-Jun-14 23:28 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 5:41
Colborne_Greg11-Jun-14 5:41 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming11-Jun-14 5:44
mveRichard Deeming11-Jun-14 5:44 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 5:54
Colborne_Greg11-Jun-14 5:54 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 7:30
richard_k11-Jun-14 7:30 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 7:57
Colborne_Greg11-Jun-14 7:57 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 14:31
richard_k11-Jun-14 14:31 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 15:13
Colborne_Greg11-Jun-14 15:13 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 15:20
richard_k11-Jun-14 15:20 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 16:09
Colborne_Greg11-Jun-14 16:09 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang13-Jun-14 2:16
Stefan_Lang13-Jun-14 2:16 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg14-Jun-14 20:38
Colborne_Greg14-Jun-14 20:38 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang15-Jun-14 21:47
Stefan_Lang15-Jun-14 21:47 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg16-Jun-14 0:47
Colborne_Greg16-Jun-14 0:47 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang16-Jun-14 1:52
Stefan_Lang16-Jun-14 1:52 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg16-Jun-14 12:52
Colborne_Greg16-Jun-14 12:52 

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.