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
BEGIN:VCALENDAR | |
CALSCALE:GREGORIAN | |
BEGIN:VEVENT | |
DTSTAMP:20200919T142610Z | |
DTSTART:20201019T081500Z | |
DTEND:20201019T101500Z | |
SUMMARY:CM - Management de projet | |
LOCATION:Amphi 001 | |
DESCRIPTION:L3 M. Dupont charles |
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 Xamarin.Forms; | |
namespace EventToCommand.Behaviors | |
{ | |
public class BehaviorBase<T> : Behavior<T> where T : BindableObject | |
{ | |
public T AssociatedObject { get; private set; } | |
protected override void OnAttachedTo(T bindable) |
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; | |
namespace System{ | |
public interface IEntity | |
{ | |
public int Id { get; set; } | |
public DateTime CreatedAt { get; set; } | |
public DateTime UpdatedAt { get; set; } |
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
// Search by continent: Africa, Americas, Asia, Europe, Oceania | |
List<Country> result = await RESTCountriesAPI.GetCountriesByContinentAsync(string continent); |
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
// Search by country name | |
List<Country> result = await RESTCountriesAPI.GetCountriesByNameContainsAsync(string name); | |
// Search by country full name | |
Country country = await RESTCountriesAPI.GetCountryByFullNameAsync(string 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
// Get all countries in Spanish language | |
var countries = await RESTCountriesAPI.GetAllCountriesAsync(); | |
List<string> countriesInSpanish = countries.Select(c => c.Translations.Es).ToList(); |
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
// Get a list of country names | |
var all = await RESTCountriesAPI.GetAllCountriesAsync(); | |
List<string> countries = all.Select(c => c.Name).ToList(); |
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
// Get all countries | |
List<Country> countries = await RESTCountriesAPI.GetAllCountriesAsync(); |
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
// Add namespace | |
using RESTCountries.Services; |