C#语句几个白痴问题请帮忙解释一下下面几个句子结构所要表达的意思,1,IFillShapeElement pFillSh
C#语句几个白痴问题
请帮忙解释一下下面几个句子结构所要表达的意思,
1,IFillShapeElement pFillShapeEle = pElement as IFillShapeElement; //IFillShapeElement为一个接口
as充当的意思是什么
2,IRectangleElement pRectangleEle = new RectangleElementClass(); //RectangleElementClass与IRectangleElement 都为接口名称 但相互之间没有继承关系,接口不是不能直接实例化么
3,pColor = new RgbColorClass();
IFillSymbol pFillSymbol = new SimpleFillSymbolClass();
//这两种都是实例化为什么下面这句前面多一个类名.
4,IFeature pFeature; // IFeature 接口名,这是pFeature继承IFeature
新手,