GetPath() public abstract method

public abstract GetPath ( ) : string
return string
コード例 #1
0
ファイル: Graphics.cs プロジェクト: qq858979911/DesignPattern
        public void Stroke(Shape shape)
        {
            string path = shape.GetPath();

            Console.WriteLine($"描边{path}");
        }
コード例 #2
0
ファイル: Graphics.cs プロジェクト: qq858979911/DesignPattern
        public void Fill(Shape shape)
        {
            string path = shape.GetPath();

            Console.WriteLine($"填充{path}");
        }