Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added Golovko/Task_1/.vs/Task_1_Basics/v14/.suo
Binary file not shown.
62 changes: 62 additions & 0 deletions Golovko/Task_1/1_Strings/1_Console.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0B845B55-E717-4D70-98E8-C856AFEA69BC}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>_1_Strings</RootNamespace>
<AssemblyName>1_Strings</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FIO.cs" />
<Compile Include="IFIO.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
6 changes: 6 additions & 0 deletions Golovko/Task_1/1_Strings/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
29 changes: 29 additions & 0 deletions Golovko/Task_1/1_Strings/FIO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1_Console
{
sealed class FIO : IFIO
{
private readonly string surname;
private readonly string name;
private readonly string patronimic;
public FIO(string surname, string name, string patronimic)
{
this.surname = surname;
this.name = name;
this.patronimic = patronimic;
}
public void Introduce()
{
string fio = surname + " " + name + " " + patronimic;
int length = fio.Length;
Console.WriteLine("+{0}+", new string('-', length));
Console.WriteLine("|{0}|", fio);
Console.WriteLine("+{0}+", new string('-', length));
}
}
}
13 changes: 13 additions & 0 deletions Golovko/Task_1/1_Strings/IFIO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1_Console
{
interface IFIO
{
void Introduce();
}
}
18 changes: 18 additions & 0 deletions Golovko/Task_1/1_Strings/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1_Console
{
class Program
{
static void Main(string[] args)
{
IFIO fio = new FIO("Golovko", "Gregory", "Nickolaevich");
fio.Introduce();
Console.ReadKey();
}
}
}
36 changes: 36 additions & 0 deletions Golovko/Task_1/1_Strings/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("1_Strings")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("1_Strings")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
// для COM-компонентов. Если требуется обратиться к типу в этой сборке через
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
[assembly: ComVisible(false)]

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("0b845b55-e717-4d70-98e8-c856afea69bc")]

// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file not shown.
6 changes: 6 additions & 0 deletions Golovko/Task_1/1_Strings/bin/Debug/1_Strings.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Binary file added Golovko/Task_1/1_Strings/bin/Debug/1_Strings.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Binary file not shown.
6 changes: 6 additions & 0 deletions Golovko/Task_1/1_Strings/bin/Release/1_Strings.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
11 changes: 11 additions & 0 deletions Golovko/Task_1/1_Strings/bin/Release/1_Strings.vshost.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Debug\1_Strings.exe.config
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Debug\1_Strings.exe
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Debug\1_Strings.pdb
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\obj\Debug\1_Console.csprojResolveAssemblyReference.cache
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\obj\Debug\1_Strings.exe
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\obj\Debug\1_Strings.pdb
C:\Users\Головко\Desktop\Task_1_Basics\1_Strings\bin\Debug\1_Strings.exe.config
C:\Users\Головко\Desktop\Task_1_Basics\1_Strings\bin\Debug\1_Strings.exe
C:\Users\Головко\Desktop\Task_1_Basics\1_Strings\bin\Debug\1_Strings.pdb
C:\Users\Головко\Desktop\Task_1_Basics\1_Strings\obj\Debug\1_Strings.exe
C:\Users\Головко\Desktop\Task_1_Basics\1_Strings\obj\Debug\1_Strings.pdb
C:\Users\Головко\CSharpCourse-2016\Golovko\Task_1\1_Strings\bin\Debug\1_Strings.exe.config
C:\Users\Головко\CSharpCourse-2016\Golovko\Task_1\1_Strings\bin\Debug\1_Strings.exe
C:\Users\Головко\CSharpCourse-2016\Golovko\Task_1\1_Strings\bin\Debug\1_Strings.pdb
C:\Users\Головко\CSharpCourse-2016\Golovko\Task_1\1_Strings\obj\Debug\1_Strings.exe
C:\Users\Головко\CSharpCourse-2016\Golovko\Task_1\1_Strings\obj\Debug\1_Strings.pdb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Debug\1_Strings.exe.config
Binary file not shown.
Binary file added Golovko/Task_1/1_Strings/obj/Debug/1_Strings.pdb
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Release\1_Strings.exe.config
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Release\1_Strings.exe
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\bin\Release\1_Strings.pdb
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\obj\Release\1_Strings.exe
c:\users\головко\documents\visual studio 2015\Projects\Task_1_Basics\1_Strings\obj\Release\1_Strings.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
62 changes: 62 additions & 0 deletions Golovko/Task_1/2_1_Comparation/2_1_Comparation.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{82D8CACC-C707-4772-A6B3-F4DDFFB0E404}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>_2_1_Comparation</RootNamespace>
<AssemblyName>2_1_Comparation</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Comparer.cs" />
<Compile Include="IComparer.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
6 changes: 6 additions & 0 deletions Golovko/Task_1/2_1_Comparation/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
23 changes: 23 additions & 0 deletions Golovko/Task_1/2_1_Comparation/Comparer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2_1_Comparation
{
struct Comparer: IComparer
{
private readonly double a;
private readonly double b;
public double Max
{
get { return a > b ? a : b; }
}
public Comparer(double a, double b)
{
this.a = a;
this.b = b;
}
}
}
13 changes: 13 additions & 0 deletions Golovko/Task_1/2_1_Comparation/IComparer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2_1_Comparation
{
interface IComparer
{
double Max { get; }
}
}
18 changes: 18 additions & 0 deletions Golovko/Task_1/2_1_Comparation/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2_1_Comparation
{
class Program
{
static void Main(string[] args)
{
IComparer comp = new Comparer(96, 84);
Console.WriteLine("The max value is {0}", comp.Max);
Console.ReadKey();
}
}
}
Loading