This file contains 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var personNamePropertyName = nameof(Person.Name); | |
Console.WriteLine($"Der Name des Properties ist: {personNamePropertyName}"); | |
} | |
} | |
public class Person |
This file contains 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
public class Person | |
{ | |
public string Name { get; set; } = string.Empty; | |
public string Vorname { get; set; } = string.Empty; | |
public int Alter { get; set; } = 21; | |
public List<string> Spitznamen { get; set; } = new List<string>(); | |
public string Anzeigename => $"{Vorname}, {Name}"; | |
} |
This file contains 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
public string Searchnames(List<string> namen) | |
{ | |
var result = string.Empty; | |
if (namen?.Count > 0) | |
{ | |
//do somethig | |
} | |
return result; | |
} |
This file contains 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
{ | |
"scripts": { | |
"start": "webpack-dev-server --inline --progress --port 8080" | |
}, | |
"dependencies": { | |
"@angular/common": "~2.2.0", | |
"@angular/compiler": "~2.2.0", | |
... | |
} |
This file contains 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
// Angular | |
import '@angular/platform-browser'; | |
import '@angular/platform-browser-dynamic'; | |
import '@angular/core'; | |
import '@angular/common'; | |
import '@angular/forms'; | |
import '@angular/http'; | |
import '@angular/router'; | |
This file contains 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
import 'core-js/es6/symbol'; | |
import 'core-js/es6/object'; | |
import 'core-js/es6/function'; | |
import 'core-js/es6/parse-int'; | |
import 'core-js/es6/parse-float'; | |
import 'core-js/es6/number'; | |
import 'core-js/es6/math'; | |
import 'core-js/es6/string'; | |
import 'core-js/es6/date'; | |
import 'core-js/es6/array'; |
This file contains 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
/// <reference path="../typings/index.d.ts" /> | |
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
import { AppModule } from './app.module'; | |
const platform = platformBrowserDynamic(); | |
platform.bootstrapModule(AppModule); |
This file contains 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
var helpers = require('./helpers'); | |
var webpackMerge = require('webpack-merge'); // used to merge webpack configs | |
var commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev | |
/** | |
* Webpack Plugins | |
*/ | |
var DefinePlugin = require('webpack/lib/DefinePlugin'); | |
var LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin'); | |
var WebpackNotifierPlugin = require('webpack-notifier'); |
This file contains 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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<title>Angular2 Mit WebPack 2</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" /> | |
<!-- base url --> |
This file contains 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
public class RouteConfig | |
{ | |
public static void RegisterRoutes(RouteCollection routes) | |
{ | |
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |
routes.MapRoute( | |
name: "Default", | |
url: "{controller}/{action}/{id}", | |
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } |