This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
return (IMXActionResult)actionMethodInfo.Invoke(this, argumentList.ToArray()); | |
} | |
catch (ArgumentException exception) | |
{ | |
// this should be impossible - as we've checked the types in the GenerateActionMap method | |
return ShowError("parameter type mismatch seen " + exception.Message); | |
} | |
catch (TargetParameterCountException exception) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private IMXActionResult MxActionResult(MethodInfo actionMethodInfo, List<object> argumentList) | |
{ | |
try | |
{ | |
return; // return (IMXActionResult)actionMethodInfo.Invoke(this, argumentList.ToArray()); | |
} | |
catch (ArgumentException exception) | |
{ | |
// this should be impossible - as we've checked the types in the GenerateActionMap method | |
return; // return ShowError("parameter type mismatch seen " + exception.Message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//----------------------------------------------------------------------- | |
// <copyright file="NanoIoC.cs" company="Matt lacey Limited"> | |
// Copyright © 2012 Matt Lacey | |
// </copyright> | |
//----------------------------------------------------------------------- | |
namespace Mrlacey | |
{ | |
using System; | |
using System.Collections.Generic; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Runtime.CompilerServices; | |
/* | |
* not available in MonoDroid :/ | |
[assembly: TypeForwardedTo(typeof(System.Net.Sockets.UdpAnySourceMulticastClient))] | |
[assembly: TypeForwardedTo(typeof(System.Net.Sockets.UdpSingleSourceMulticastClient))] | |
[assembly: TypeForwardedTo(typeof(System.Net.DnsEndPoint))] | |
[assembly: TypeForwardedTo(typeof(System.Net.WriteStreamClosedEventHandler))] | |
[assembly: TypeForwardedTo(typeof(System.Net.WriteStreamClosedEventArgs))] | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ShowAllSystemNetTypes | |
{ | |
public void DoShowAll() | |
{ | |
foreach (var type in typeof(WebRequest).Assembly.GetExportedTypes()) | |
{ | |
Debug.WriteLine("[assembly: TypeForwardedTo(typeof({0}))]", type.FullName); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using Cirrious.MvvmCross.Binding.Android.Views; | |
using Cirrious.MvvmCross.Binding.Bindings.Target; | |
using Cirrious.MvvmCross.Binding.Interfaces; | |
using Cirrious.MvvmCross.Interfaces.Platform.Diagnostics; | |
namespace Cirrious.MvvmCross.Binding.Android.Target | |
{ | |
public class MvxAutoCompleteTextViewConstraintTargetBinding : MvxPropertyInfoTargetBinding<MvxBindableAutoCompleteTextView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
namespace ProfileDumper | |
{ | |
[Serializable] | |
class ProfileDump | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlanarYUVLuminanceSource : LuminanceSource | |
{ | |
private readonly sbyte[] yuvData; | |
private readonly int dataWidth; | |
private readonly int dataHeight; | |
private readonly int left; | |
private readonly int top; | |
public PlanarYUVLuminanceSource(sbyte[] yuvData, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class Preview : SurfaceView, ISurfaceHolderCallback, Camera.IPreviewCallback | |
{ | |
ISurfaceHolder surface_holder; | |
Camera camera; | |
private QRCodeReader _reader; | |
public Preview(Context context) | |
: base(context) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Copyright | |
// <copyright file="MvxBindableListAdapter.cs" company="Cirrious"> | |
// (c) Copyright Cirrious. http://www.cirrious.com | |
// This source is subject to the Microsoft Public License (Ms-PL) | |
// Please see license.txt on http://opensource.org/licenses/ms-pl.html | |
// All other rights reserved. | |
// </copyright> | |
// | |
// Project Lead - Stuart Lodge, Cirrious. http://www.cirrious.com | |
#endregion |
OlderNewer