[gbrainy] Compatibility with c# 4.0
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Compatibility with c# 4.0
- Date: Mon, 14 Jun 2010 22:53:36 +0000 (UTC)
commit 62a1b0f812bb3c7b73eaccd4dac5a4956d88e998
Author: Jordi Mas <jmas softcatala org>
Date: Tue Jun 15 00:54:35 2010 +0200
Compatibility with c# 4.0
src/Core/Main/IMouseEvent.cs | 2 +-
src/Core/Main/Xml/GameXml.cs | 2 +-
src/Core/Main/Xml/GameXmlFactory.cs | 1 +
3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Main/IMouseEvent.cs b/src/Core/Main/IMouseEvent.cs
index ebd0bad..06703cc 100644
--- a/src/Core/Main/IMouseEvent.cs
+++ b/src/Core/Main/IMouseEvent.cs
@@ -37,7 +37,7 @@ namespace gbrainy.Core.Main
public double Y { get; set; }
public MouseEventType EventType { get; set; }
- public MouseEventArgs (double x, double y, MouseEventType event_type)
+ public MouseEventArgs (double x, double y, MouseEventType event_type) : this ()
{
X = x;
Y = y;
diff --git a/src/Core/Main/Xml/GameXml.cs b/src/Core/Main/Xml/GameXml.cs
index fac1feb..6170b8f 100644
--- a/src/Core/Main/Xml/GameXml.cs
+++ b/src/Core/Main/Xml/GameXml.cs
@@ -35,7 +35,7 @@ namespace gbrainy.Core.Main
public int Game { get; set; }
public int Variant { get; set; }
- public DefinitionLocator (int game, int variant)
+ public DefinitionLocator (int game, int variant) : this ()
{
Game = game;
Variant = variant;
diff --git a/src/Core/Main/Xml/GameXmlFactory.cs b/src/Core/Main/Xml/GameXmlFactory.cs
index a7f7017..5a9010c 100644
--- a/src/Core/Main/Xml/GameXmlFactory.cs
+++ b/src/Core/Main/Xml/GameXmlFactory.cs
@@ -211,6 +211,7 @@ namespace gbrainy.Core.Main
string eval;
// Using's for the variables section
+ // We need to evaluate either declarations (like using) or expression/statements separately
eval = "using System;\n";
Mono.CSharp.Evaluator.Run (eval);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]