Lately I have been doing my first (real world) C# project. (Unfortunately I had to do it in VS2003 ;( )
C# must be Delphi's little brother! The language really feels like the Delphi language. Also the syntax, was not all that difficult to get used to.
I find my self programming 'Delphi code style' in C#.
For example in Delphi you write a function like this:
function ReturnANumber(SomeCondition : Integer) : Integer;
Result := 0;
If SomeCondition > 100 then
Result := 101
Result := 102;
You can not do this in C#, because it will return immediately to the caller, so I figured the following:
private int ReturnANumber(int SomeCondition)
Result = 0;
If (SomeCondition > 100)
Result = 101
Result = 102;
How about this function:
private void bool Assigned(object AObject)
if (AObject = null) return false else return true;
If you use this function for raising an event, well it could almost be Delphi :-)
if Assigned(SomeMethodPointerType) SomeMethodPointerType(this);
Using an image as your UIBarButtonItem in your navigationcontroller bar can only be achieved by using a common UIButton as the BarButtonItem...
Delphi 2009 has support for generics, and has 'built in' generic types like TList, TArrays etc. If you want to use them you must add...
A new generic type in Delphi 2009 is TDictionary . TDictionary offers a way to store values based on a key into a list. TDictionary is decla...
In ASP.NET it is easy to set the prefered authentication method in the web.config file. For external websites this is set mostly to Forms ...