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
| class Program { | |
| private static string result; | |
| static void Main() { | |
| SaySomething(); | |
| Console.WriteLine(result); | |
| } | |
| static async Task<string> SaySomething() { | |
| await Task.Delay(5); |
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
| static DateTime time; | |
| /* ... */ | |
| if (time == null) | |
| { | |
| /* do something */ | |
| } |
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
| class Program { | |
| static String location; | |
| static DateTime time; | |
| static void Main() { | |
| Console.WriteLine(location == null ? "location is null" : location); | |
| Console.WriteLine(time == null ? "time is null" : time.ToString()); | |
| } | |
| } |
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
| public async Task<bool> DownloadPayload(string userId) | |
| { | |
| TaskCompletionSource<bool> tcs = new TaskCompletionSource<bool>(); | |
| ReadOnlyCollection<MobileServiceTableOperationError> syncErrors = null; | |
| try | |
| { | |
| //string unique = DateTime.Now.Ticks.ToString() + DateTime.UtcNow.TimeOfDay.ToString(); | |
| // Download all user Departments | |
| //await userDepartmentsTable.PurgeAsync(); |
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
| public class ReportStorageController : StorageController<Report> | |
| { | |
| [HttpPost] | |
| [Route("tables/Report/{id}/StorageToken")] | |
| public async Task<HttpResponseMessage> PostStorageTokenRequest(string id, StorageTokenRequest value) | |
| { | |
| StorageToken token = await GetStorageTokenAsync(id, value); | |
| return Request.CreateResponse(token); | |
| } |
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
| alert(7 + '7' + '7'); | |
| alert(7 + 7 + '7'); | |
| alert(7 + '7' ); | |
| alert('7' + 7 + 7); |
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
| class Taritas | |
| { | |
| static void Main(string[] args) | |
| { | |
| Y bObj= new Y(2); | |
| Console.ReadLine(); | |
| } | |
| } | |
| public class X |
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.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace MyClass | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
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
| public class Taritas | |
| { | |
| public int Taritas() | |
| { | |
| Console.WriteLine("Hi you are in class Taritas"); | |
| } | |
| } |
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
| public class GetCurrentLocationAndroid : IGetCurrentLocation | |
| { | |
| /// <summary> | |
| /// Instance of the Geoloactor | |
| /// </summary> | |
| private Geolocator _locator; | |
| /// <summary> | |
| /// The get current location. | |
| /// </summary> |
NewerOlder