[CSharp/en]Fixes for my own changes

This commit is contained in:
Laoujin 2015-02-01 00:04:10 +01:00
parent 90e8dac0b8
commit f5d0208178

View File

@ -326,7 +326,7 @@ on a new line! ""Wow!"", the masses cried";
// or
tryInt.ToString();
// Casting
// Casting
// Cast decimal 15 to a int
// and then implicitly cast to long
long x = (int) 15M;
@ -390,11 +390,6 @@ on a new line! ""Wow!"", the masses cried";
count = 15; // out param must be assigned before control leaves the method
}
// Methods can have the same name, as long as the signature is unique
public static void MethodSignatures(string maxCount)
{
}
// GENERICS
// The classes for TKey and TValue is specified by the user calling this function.
// This method emulates the SetDefault of Python
@ -657,7 +652,7 @@ on a new line! ""Wow!"", the masses cried";
MudGuards = 2, // need to set the values manually!
Racks = 4,
Lights = 8,
Full = Bell | MudGuards | Racks | Lights
FullPackage = Bell | MudGuards | Racks | Lights
}
// Usage: aBike.Accessories.HasFlag(Bicycle.BikeAccessories.Bell)