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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SimplifyVisitor | |
{ | |
using System.Reflection; | |
public abstract class VisitorBase |
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 System; | |
namespace SimplifyVisitor | |
{ | |
public class ConcreteVisitor : VisitorBase//<Node> | |
{ | |
protected override void Visit(ConstantNode node) | |
{ | |
Console.WriteLine("Visiting constant node"); | |
} |
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 System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace SimplifyVisitor | |
{ | |
using System.Reflection; | |
public abstract class VisitorBase |
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 System; | |
namespace SimplifyVisitor | |
{ | |
public class ConcreteVisitor : VisitorBase<Node> | |
{ | |
protected void Visit(ConstantNode node) | |
{ | |
Console.WriteLine("Visiting constant node"); | |
} |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace pipeandfilters | |
{ | |
internal class Program | |
{ |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace pipeandfilters | |
{ | |
internal class Program | |
{ |
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
from web import db | |
mailtags = db.Table('mailtags', | |
db.Column('mail_id', db.Integer, db.ForeignKey('mail.message_id')), | |
db.Column('tag_id', db.Integer, db.ForeignKey('tag.id')) | |
) | |
class Mail(db.Model): | |
message_id = db.Column(db.Integer, primary_key=True) |
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 void Execute(UploadPhotoCommandHandler, ...) | |
{ | |
... | |
var profile = ...; | |
.. //some validations if profile exists and so on | |
profile.UploadPhoto(@command.photo); | |
_profileRepository.Save(profile); | |
} | |
... |
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
module Model { | |
declare var window:Window; | |
export class Stream { | |
public reviews: Review[]; | |
public proxy: Proxy; | |
public constructor(proxy: Proxy) { | |
this.reviews = new Array<Review>(); | |
this.proxy = proxy; | |
} |
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 System; | |
using System.Data; | |
using System.Linq; | |
using Dapper; | |
using IzoobleBackend.MainDomain.DB; | |
using IzoobleBackend.MainDomain.Dtos; | |
namespace IzoobleBackend.MainDomain.Queries | |
{ | |
public class GetGlobalStreamQuery : IQuery<StreamDto> |
OlderNewer