Initial commit
This commit is contained in:
36
10.5-SubString/10.5-SubString.csproj
Normal file
36
10.5-SubString/10.5-SubString.csproj
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>SubString</RootNamespace>
|
||||
<AssemblyName>10.5-SubString</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="SubString.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
17
10.5-SubString/10.5-SubString.sln
Normal file
17
10.5-SubString/10.5-SubString.sln
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "10.5-SubString", "10.5-SubString.csproj", "{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}.Debug|x86.Build.0 = Debug|x86
|
||||
{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}.Release|x86.ActiveCfg = Release|x86
|
||||
{DB5F3F12-05A8-4D79-A6DC-9100F24FA569}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
12
10.5-SubString/10.5-SubString.userprefs
Normal file
12
10.5-SubString/10.5-SubString.userprefs
Normal file
@@ -0,0 +1,12 @@
|
||||
<Properties StartupItem="10.5-SubString.csproj">
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="SubString.cs">
|
||||
<Files>
|
||||
<File FileName="SubString.cs" Line="17" Column="1" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
</Properties>
|
||||
16
10.5-SubString/SubString.cs
Normal file
16
10.5-SubString/SubString.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
class SubString {
|
||||
public static void Main() {
|
||||
string s1 = "C:/Users/Crille/Desktop/profilbild.jpg";
|
||||
|
||||
Console.WriteLine("Filandelse: " + s1.Substring(s1.Length - 3, 3));
|
||||
|
||||
int username_start = s1.IndexOf('/', 3) + 1;
|
||||
int username_end = s1.IndexOf('/', username_start + 1);
|
||||
int username_length = username_end - username_start;
|
||||
|
||||
Console.WriteLine("Start: {0}, End: {1}, Length: {2}", username_start, username_end, username_length);
|
||||
Console.WriteLine("Username: " + s1.Substring(username_start, username_length));
|
||||
}
|
||||
}
|
||||
BIN
10.5-SubString/bin/Debug/10.5-SubString.exe
Normal file
BIN
10.5-SubString/bin/Debug/10.5-SubString.exe
Normal file
Binary file not shown.
BIN
10.5-SubString/bin/Debug/10.5-SubString.pdb
Normal file
BIN
10.5-SubString/bin/Debug/10.5-SubString.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
C:\Users\Crille\CSharp\10.5-SubString\bin\Debug\10.5-SubString.exe
|
||||
C:\Users\Crille\CSharp\10.5-SubString\bin\Debug\10.5-SubString.pdb
|
||||
C:\Users\Crille\CSharp\10.5-SubString\obj\x86\Debug\10.5-SubString.csprojResolveAssemblyReference.cache
|
||||
C:\Users\Crille\CSharp\10.5-SubString\obj\x86\Debug\10.5-SubString.exe
|
||||
C:\Users\Crille\CSharp\10.5-SubString\obj\x86\Debug\10.5-SubString.pdb
|
||||
Binary file not shown.
BIN
10.5-SubString/obj/x86/Debug/10.5-SubString.exe
Normal file
BIN
10.5-SubString/obj/x86/Debug/10.5-SubString.exe
Normal file
Binary file not shown.
BIN
10.5-SubString/obj/x86/Debug/10.5-SubString.pdb
Normal file
BIN
10.5-SubString/obj/x86/Debug/10.5-SubString.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user