- вибір нового парфуму
- випробування нової б'юті-процедури
- план позбавлення від шкідливої звички
- як намалювати картину
- процедура проїзду в маршрутці
- мій типовий похід у музей
- організація екскурсії для друзів з іншого міста
- проведення сімейної вечері
- поїздка в подорож за межі України
- проведення майстер-класу (публічні виступи, 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
| Намалювати діаграму КЛАСІВ на одну із запропонованих тем. | |
| Класів має бути від 5 до 10. В кожному типі - мінімум 2 атрибута та 2 операції. | |
| 1) вибір нових парфумів | |
| 2) випробування нової б'юті-процедури | |
| 3) план позбавлення від шкідливої звички | |
| 4) як намалювати картину | |
| 5) мій типовий похід до музею | |
| 6) організація екскурсії для друзів з іншого міста | |
| 7) проведення сімейної вечері | |
| 8) поїздка в подорож за межі України |
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
| треба додати клас ContentProvider в перший додаток (той, що з Room) | |
| StudentContentProvider.java: | |
| package site.sunmeat.helloworld; | |
| import android.content.*; | |
| import android.database.Cursor; | |
| import android.net.Uri; | |
| import androidx.annotation.*; |
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
| settings.gradle.kts: | |
| pluginManagement { | |
| repositories { | |
| gradlePluginPortal() // обов’язково поставити зверху! тут лежить kotlin("android") | |
| google { | |
| content { | |
| includeGroupByRegex("com\\.android.*") | |
| includeGroupByRegex("com\\.google.*") | |
| includeGroupByRegex("androidx.*") |
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
| // для компіляції додайте nuget-пакети через View > Terminal: | |
| // dotnet add package Serilog --version 4.3.0 | |
| // dotnet add package Serilog.Sinks.Console --version 6.1.1 | |
| // dotnet add package Serilog.Sinks.File --version 7.0.0 | |
| using Serilog; | |
| namespace LoggingExample | |
| { | |
| class Program |
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.Diagnostics; | |
| using Microsoft.Extensions.Logging; // dotnet add package Microsoft.Extensions.Logging.Console --version 9.0.0 | |
| namespace LoggingExample | |
| { | |
| class Program | |
| { | |
| static async Task Main() | |
| { | |
| Console.OutputEncoding = System.Text.Encoding.UTF8; |
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.Text.Json; | |
| using System.Text.Json.Serialization; | |
| using System.Text.Encodings.Web; | |
| namespace JSONSerializerExample | |
| { | |
| public class Human | |
| { | |
| public string? Name { get; set; } | |
| [JsonIgnore] |
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.Xml.Serialization; | |
| namespace XMLSerializerExample | |
| { | |
| // [Serializable] // в нових версіях дот нет цей атрібут вже не обов'язковий | |
| public class Human | |
| { | |
| public string? Name { get; set; } | |
| [XmlIgnore] | |
| public int Age { get; set; } |
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.Collections.Generic; | |
| using System.Text; | |
| namespace SuperHeroExample | |
| { | |
| public class Human : IEquatable<Human> | |
| { | |
| // приватні поля для зберігання даних | |
| private string name; | |
| private int age; |
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.Text; | |
| using MessagePack; // dotnet add package MessagePack | |
| namespace SerializationExample | |
| { | |
| // Every serializable non-static field and a property needs to be annotated | |
| // with the [Key] attribute. If you annotate the type with | |
| // the [MessagePackObject(keyAsPropertyName: true)] attribute, then members | |
| // don't require explicit annotations. In such case, to ignore certain | |
| // public members, use the [IgnoreMember] attribute. |