This file contains hidden or 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; | |
namespace myBlank | |
{ | |
class Program | |
{ | |
static void Main(String[] args) | |
{ | |
int i = 4; |
This file contains hidden or 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; | |
namespace myBlank | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int iterations = 1000000; |
This file contains hidden or 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
import Foundation | |
import XCTest | |
class MethodAccess: NSObject { | |
final func finalFunction(x : Int)->Int { | |
return x + 1 | |
} | |
func notFinalFunction(x : Int)->Int { |
This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; |
This file contains hidden or 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; | |
public class Sort { | |
public static int[] SortArray(int[] array) | |
{ | |
int length = array.Length; | |
int temp = array[0]; |
This file contains hidden or 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.Diagnostics; | |
namespace consoletest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var watch = new Stopwatch(); |
This file contains hidden or 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.Threading.Tasks; | |
namespace console1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine(Systems.GetEqual("a", "c")); |
This file contains hidden or 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; | |
namespace console1 | |
{ | |
public class Systems | |
{ | |
public static bool GetEqual<T>(T a, T b) where T : IComparable<T> | |
{ | |
return a.CompareTo(b) == 0; | |
} | |
} |
This file contains hidden or 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
MVVM Cross | |
Solution Components | |
For the DL Xamarin projects we will use the MvvmCross framework. This framework acts as a helper to build a cross-platform application using the MVVM pattern. For more information about MvvmCross: | |
* MvvmCross Overview https://mvvmcross.com/docs/feature-overview | |
* MvvmCross App Architecture https://mvvmcross.com/docs/app-architecture | |
* IoC /DI https://mvvmcross.com/docs/inversion-of-control-ioc / |
This file contains hidden or 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
/// Create Extention | |
// class TextField: UITextField | |
extension UITextField { | |
open override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool { | |
return action == #selector(UIResponderStandardEditActions.cut) || action == #selector(UIResponderStandardEditActions.copy) | |
} | |
} | |
// Usage |