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
using AutoMapper; | |
using System; | |
using System.Collections.Generic; | |
namespace AutoMapper_Repro | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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 static IQueryable<T> OrderBy<T>(this IQueryable<T> source, string sortExpression) | |
{ | |
if (source == null) | |
throw new ArgumentNullException("source", "source is null."); | |
if (string.IsNullOrEmpty(sortExpression)) | |
throw new ArgumentException("sortExpression is null or empty.", "sortExpression"); | |
var parts = sortExpression.Split(' '); |
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 React from 'react'; | |
import bindAll from 'lodash/bindAll'; | |
class Report extends React.Component { | |
constructor() { | |
super(); | |
this.state = {}; | |
bindAll(this, 'click'); | |
} |
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 React from 'react'; | |
var styles = require('./index.css'); | |
//selective destructuring allows us to access | |
//children without using this.props.children | |
function Report ({ children }) { | |
return <div className={styles.report}> | |
{children} | |
</div>; | |
} |
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 INotifyImplementation : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
public virtual void OnPropertyChanged([CallerMemberName]string propertyName = null) | |
{ | |
this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | |
} | |
} |
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 ListFilteredSorted<T> : BaseInfo | |
{ | |
public ListFilteredSorted() | |
{ | |
Init(); | |
} | |
public ListFilteredSorted(Predicate<object> filter) | |
{ | |
FilterMethod = filter; |