neo-sharp

neo-sharp

  • Docs
  • English
    • Português (Brasil)

›Tools

Home

  • Introduction
  • Basic Guide
  • Intermediate Guide
  • Advanced Guide

Blockchain

  • Block
  • Blockchain
  • Cryptography
  • Hash
  • Header
  • Unspent Transaction Output

NEO

  • Compiler
  • Consensus
  • Contract
  • Fees
  • GAS
  • NEO VM
  • NEP
  • Network Protocol
  • Nodes
  • RCP
  • Transaction Types
  • Verification
  • Wallets
  • Witness

NEO-Sharp

  • Modules
  • Application Module
  • Configuration Module
  • Core Module
  • Logging Module
  • Persistence Module
  • Serialization Module
  • Wallet Module

Development

  • Best Practices
  • Code Style
  • Dependency Injection
  • Unit Test

Tools

  • .NET Core
  • Documentation
  • Git / GitHub
  • NEO Tools
  • Platform

.NET Core

About

NEO-Sharp project is built using C# on top of .NET Core. C# is the programming language, while .NET Core is the default collection of classes that are ready for you to use.

C# can also be used with .NET Framework (different from .NET Core), but this is only compatible with Windows, and for that reason, .NET Core is used instead.

IDE

It's better to use a Integrated Development Environment to have features like debugging and auto-complete.

For C#, the most recommended are Visual Studio and Visual Code. You can download it here

Attributes (Annotations)

For more information Microsoft Doc

Extensions

Extension methods enable you to "add" methods to existing types.

In NEO-Sharp, its in the NeoSharp.Core/Extensions folder

Example:
NeoSharp.Core/Extensions/BigIntegerExtensions.cs
NeoSharp.Core/Extensions/BitExtensions.cs
NeoSharp.Core/Extensions/ByteArrayExtensions.cs
NeoSharp.Core/Extensions/DateTimeExtensions.cs
NeoSharp.Core/Extensions/EnumerableExtensions.cs
NeoSharp.Core/Extensions/Fixed8Extensions.cs
NeoSharp.Core/Extensions/IntExtensions.cs
NeoSharp.Core/Extensions/MessageExtensions.cs
NeoSharp.Core/Extensions/SerializableExtensions.cs
NeoSharp.Core/Extensions/StringExtensions.cs
NeoSharp.Core/Extensions/TypeExtensions.cs

For more information about extensions: Microsoft Doc

LINQ

Linq its extension methods for IEnumerable, you can use when you need interact with list

For more information Microsoft Doc

Partial Class

In NEO-Sharp, we are using for implementation of NeoSharp.Application/Client/IPrompt.cs

Example:
NeoSharp.Application/Client/Prompt.cs
NeoSharp.Application/Client/Prompt[Blockchain].cs
NeoSharp.Application/Client/Prompt[Contract].cs
NeoSharp.Application/Client/Prompt[Invokes].cs
NeoSharp.Application/Client/Prompt[Network].cs
NeoSharp.Application/Client/Prompt[Usability].cs
NeoSharp.Application/Client/Prompt[Wallet].cs

For more information Microsoft Doc

← Unit TestDocumentation →
  • About
  • IDE
  • Attributes (Annotations)
  • Extensions
  • LINQ
  • Partial Class
neo-sharp
Docs
Getting StartedGuides
Community
DiscordRedditFacebookTwitterMedium
More
NEOCoZStar