Skip to content

Commit

Permalink
Normalize line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevie-O committed Nov 21, 2014
1 parent d7a3500 commit 7c08501
Show file tree
Hide file tree
Showing 20 changed files with 9,241 additions and 9,241 deletions.
618 changes: 309 additions & 309 deletions SharpLua.Interactive/Main.cs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions SharpLua.Interactive/SharpLua.InteractiveNet20.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
156 changes: 78 additions & 78 deletions SharpLua/CFSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,84 +22,84 @@ struct IReflect
// the guts of this structure were copied from ProxyType
Type proxy;

public IReflect(Type proxy)
{
this.proxy = proxy;
}

/// <summary>
/// Provide human readable short hand for this proxy object
/// </summary>
/// <returns></returns>
public override string ToString()
{
return UnderlyingSystemType.ToString();
}


public Type UnderlyingSystemType
{
get
{
return proxy;
}
}

public FieldInfo GetField(string name, BindingFlags bindingAttr)
{
return proxy.GetField(name, bindingAttr);
}

public FieldInfo[] GetFields(BindingFlags bindingAttr)
{
return proxy.GetFields(bindingAttr);
}

public MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
{
return proxy.GetMember(name, bindingAttr);
}

public MemberInfo[] GetMembers(BindingFlags bindingAttr)
{
return proxy.GetMembers(bindingAttr);
}

public MethodInfo GetMethod(string name, BindingFlags bindingAttr)
{
return proxy.GetMethod(name, bindingAttr);
}

public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetMethod(name, bindingAttr, binder, types, modifiers);
}

public MethodInfo[] GetMethods(BindingFlags bindingAttr)
{
return proxy.GetMethods(bindingAttr);
}

public PropertyInfo GetProperty(string name, BindingFlags bindingAttr)
{
return proxy.GetProperty(name, bindingAttr);
}

public PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
}

public PropertyInfo[] GetProperties(BindingFlags bindingAttr)
{
return proxy.GetProperties(bindingAttr);
}

public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
{
return proxy.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
}

public IReflect(Type proxy)
{
this.proxy = proxy;
}

/// <summary>
/// Provide human readable short hand for this proxy object
/// </summary>
/// <returns></returns>
public override string ToString()
{
return UnderlyingSystemType.ToString();
}


public Type UnderlyingSystemType
{
get
{
return proxy;
}
}

public FieldInfo GetField(string name, BindingFlags bindingAttr)
{
return proxy.GetField(name, bindingAttr);
}

public FieldInfo[] GetFields(BindingFlags bindingAttr)
{
return proxy.GetFields(bindingAttr);
}

public MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
{
return proxy.GetMember(name, bindingAttr);
}

public MemberInfo[] GetMembers(BindingFlags bindingAttr)
{
return proxy.GetMembers(bindingAttr);
}

public MethodInfo GetMethod(string name, BindingFlags bindingAttr)
{
return proxy.GetMethod(name, bindingAttr);
}

public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetMethod(name, bindingAttr, binder, types, modifiers);
}

public MethodInfo[] GetMethods(BindingFlags bindingAttr)
{
return proxy.GetMethods(bindingAttr);
}

public PropertyInfo GetProperty(string name, BindingFlags bindingAttr)
{
return proxy.GetProperty(name, bindingAttr);
}

public PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
}

public PropertyInfo[] GetProperties(BindingFlags bindingAttr)
{
return proxy.GetProperties(bindingAttr);
}

public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
{
return proxy.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
}

public static implicit operator IReflect(Type t) { return new IReflect(t); }
public static explicit operator Type(IReflect r) { return r.proxy; }
public static bool operator ==(IReflect a, Type t) { return a.proxy == t; }
Expand Down
60 changes: 30 additions & 30 deletions SharpLua/Interfacing/LuaException.cs
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
using System;
using System.Runtime.Serialization;

namespace SharpLua
{
/// <summary>
/// Exceptions thrown by the Lua runtime
/// </summary>
[Serializable]
public class LuaException : Exception
{
public LuaException()
{ }

public LuaException(string message)
: base(message)
{ }

public LuaException(string message, Exception innerException)
: base(message, innerException)
{ }

using System;
using System.Runtime.Serialization;

namespace SharpLua
{
/// <summary>
/// Exceptions thrown by the Lua runtime
/// </summary>
[Serializable]
public class LuaException : Exception
{
public LuaException()
{ }

public LuaException(string message)
: base(message)
{ }

public LuaException(string message, Exception innerException)
: base(message, innerException)
{ }

#if WindowsCE
public virtual string Source { get { return null; } }
#else
protected LuaException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
#endif
}
}
public virtual string Source { get { return null; } }
#else
protected LuaException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
#endif
}
}
Loading

0 comments on commit 7c08501

Please sign in to comment.