Skip to content

dz#29

Open
Kislota1 wants to merge 3 commits into
ISUCT:Oleg_Larinfrom
Kislota1:Oleg_Larin
Open

dz#29
Kislota1 wants to merge 3 commits into
ISUCT:Oleg_Larinfrom
Kislota1:Oleg_Larin

Conversation

@Kislota1
Copy link
Copy Markdown

No description provided.

Comment thread Player/Program.cs
Comment on lines +5 to +13
interface IHasInfo
{
void ShowInfo();
}
interface IWeapon : IHasInfo
{
void Fire();
int Damage { get; }
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One file - one class/interface/enum

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and always so - only one there - 1 file per 1 class

Comment thread Player/Program.cs

class Gun : Weapon
{
public override int Damage { get { return 10; } }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public override int Damage { get { return 10; } }
public override int Damage => 10;

Comment thread Player/Program.cs
}
}

class Program
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please always specify access modifier

Comment thread Player/Player1.csproj
Comment on lines +1 to +8
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

</Project>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move all Player logic to CourceApp project (may place code in the subfolder) Or - add stylecop and test's connection to the project

</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this file shown as changed?
configure you gitattributes to fit lineendings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants