コード例 #1
0
 public void AddMapping(MappingLocation documentLocation, MappingLocation generatedLocation)
 {
     Mappings.Add(new LineMapping
     {
         DocumentLocation = documentLocation,
         GeneratedLocation = generatedLocation
     });
 }
コード例 #2
0
ファイル: LineMappingManager.cs プロジェクト: yy1987/Razor
 public void AddMapping(MappingLocation documentLocation, MappingLocation generatedLocation)
 {
     Mappings.Add(new LineMapping
     {
         DocumentLocation  = documentLocation,
         GeneratedLocation = generatedLocation
     });
 }
コード例 #3
0
ファイル: MappingLocation.cs プロジェクト: LeePaulSmith/Razor
        public override bool Equals(object obj)
        {
            MappingLocation other = obj as MappingLocation;

            return(AbsoluteIndex == other.AbsoluteIndex &&
                   ContentLength == other.ContentLength &&
                   LineIndex == other.LineIndex &&
                   CharacterIndex == other.CharacterIndex);
        }
コード例 #4
0
ファイル: LineMapping.cs プロジェクト: billwaddyjr/Razor
 public LineMapping(MappingLocation documentLocation, MappingLocation generatedLocation)
 {
     DocumentLocation = documentLocation;
     GeneratedLocation = generatedLocation;
 }
コード例 #5
0
 public LineMapping(MappingLocation documentLocation, MappingLocation generatedLocation)
 {
     DocumentLocation  = documentLocation;
     GeneratedLocation = generatedLocation;
 }
コード例 #6
0
 public void AddMapping(MappingLocation documentLocation, MappingLocation generatedLocation)
 {
     Mappings.Add(new LineMapping(documentLocation, generatedLocation));
 }