當前位置: 首頁>>代碼示例>>C#>>正文


C# Any類代碼示例

本文整理匯總了C#中Any的典型用法代碼示例。如果您正苦於以下問題:C# Any類的具體用法?C# Any怎麽用?C# Any使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Any類屬於命名空間,在下文中一共展示了Any類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Component

 public Component(ucss.uno.XComponentContext ctx, uno.Any[] args) {
     m_args = new Any[args.Length + 1];
     m_args[0] = new Any(typeof(ucss.uno.XComponentContext), ctx);
     for (int i = 0; i < args.Length; i ++) {
         m_args[i+1] = args[i];
     }
 }
開發者ID:Echo360,項目名稱:LibreOffice-core,代碼行數:7,代碼來源:testobjects.cs

示例2: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public byte this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(byte);
     }
     set
     {
     }
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:15,代碼來源:Uint8Array.cs

示例3: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public uint this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(uint);
     }
     set
     {
     }
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:15,代碼來源:Uint32Array.cs

示例4: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public short this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(short);
     }
     set
     {
     }
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:15,代碼來源:Int16Array.cs

示例5: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public float this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(float);
     }
     set
     {
     }
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:15,代碼來源:Float32Array.cs

示例6: default

 /// <summary>
 /// Allows index operations on the array.
 /// </summary>
 /// <param name="i">Index position in the array.</param>
 /// <returns>The element in the specified position.</returns>
 public double this[Any<int, long, uint, ulong> i]
 {
     get
     {
         return default(double);
     }
     set
     {
     }
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:15,代碼來源:Float64Array.cs

示例7: Otherwise

 /// <summary>
 /// Sets route definition that will be used on route change when no
 /// other route definition is matched.
 /// </summary>
 /// <param name="parms">
 /// Mapping information to be assigned to $route.current. If called with
 /// a string, the value maps to redirectTo.
 /// </param>
 public RouteProvider Otherwise(Any<String, MappingInformation> parms)
 {
     return default(RouteProvider);
 }
開發者ID:configit-open-source,項目名稱:Frameworks,代碼行數:12,代碼來源:Route.cs

示例8: Transform

 /*
  * Transformation matrix is described by:
  * [ a c e ]
  * [ b d f ]
  * [ 0 0 1 ]
  */
 /// <summary>
 /// Multiplies the current transformation matrix with the matrix described by its arguments.
 /// Matrix is described by a 3x3 [ a c e // b d f // 0 0 1 ] (// means a matrix line break).
 /// </summary>
 /// <param name="a">m11: Horizontal scaling.</param>
 /// <param name="b">m12: Horizontal skewing.</param>
 /// <param name="c">m21: Vertical skewing.</param>
 /// <param name="d">m22: Vertical scaling.</param>
 /// <param name="e">dx: Horizontal moving.</param>
 /// <param name="f">dy: Vertical moving.</param>
 public virtual void Transform(Any<int, double> a, Any<int, double> b, Any<int, double> c,
                               Any<int, double> d, Any<int, double> e, Any<int, double> f)
 {
     return;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:21,代碼來源:CanvasRenderingContext2D.cs

示例9: StrokeText

 /// <summary>
 /// Draws (strokes) a given text at the given (x, y) position.
 /// </summary>
 /// <param name="text">
 /// The text to render using the current font, textAlign, textBaseline, and direction values.
 /// </param>
 /// <param name="x">The x axis of the coordinate for the text starting point.</param>
 /// <param name="y">The y axis of the coordinate for the text starting point.</param>
 public virtual void StrokeText(string text, Any<uint, int> x, Any<uint, int> y)
 {
     return;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:12,代碼來源:CanvasRenderingContext2D.cs

示例10: SetLineDash

 /// <summary>
 /// Sets the current line dash pattern.
 /// </summary>
 /// <param name="segments">
 /// An Array. A list of numbers that specifies distances to alternately draw a line and a gap
 /// (in coordinate space units). If the number of elements in the array is odd, the elements
 /// of the array get copied and concatenated.
 /// For example, [5, 15, 25] will become [5, 15, 25, 5, 15, 25].
 /// </param>
 public virtual void SetLineDash(Any<double[], uint[], int[], IEnumerable<Any<double, uint, int>>> segments)
 {
     return;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:13,代碼來源:CanvasRenderingContext2D.cs

示例11: PutImageData

 /// <summary>
 /// Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
 /// only the pixels from that rectangle are painted.
 /// </summary>
 /// <param name="imagedata">An imageData object containing the array of pixel values.</param>
 /// <param name="dx">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dy">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dirtyX">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyY">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyWidth">
 /// Width of the rectangle to be painted, in the origin image data. Defaults to the width of the image data.
 /// </param>
 /// <param name="dirtyHeight">
 /// Height of the rectangle to be painted, in the origin image data. Defaults to the height of the image data.
 /// </param>
 public virtual void PutImageData(ImageData imagedata, int dx, int dy, 
                                  Any<uint?, int?> dirtyX, Any<uint?, int?> dirtyY, 
                                  Any<uint?, int?> dirtyWidth, Any<uint?, int?> dirtyHeight)
 {
     return;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:33,代碼來源:CanvasRenderingContext2D.cs

示例12: CreateLinearGradient

 /// <summary>
 /// Creates a linear gradient along the line given by the coordinates represented by the parameters.
 /// </summary>
 /// <param name="x0">The x axis of the coordinate of the start point.</param>
 /// <param name="y0">The y axis of the coordinate of the start point.</param>
 /// <param name="x1">The x axis of the coordinate of the end point.</param>
 /// <param name="y1">The y axis of the coordinate of the end point.</param>
 /// <returns>A linear CanvasGradient initialized with the specified line.</returns>
 public virtual CanvasGradient CreateLinearGradient(Any<uint, int, double> x0, Any<uint, int, double> y0,
                                                    Any<uint, int, double> x1, Any<uint, int, double> y1)
 {
     return null;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:13,代碼來源:CanvasRenderingContext2D.cs

示例13: CreateImageData

 /// <summary>
 /// Creates a new, blank ImageData object with the specified dimensions. All of the pixels in the
 /// new object are transparent black.
 /// </summary>
 /// <param name="width">The width to give the new ImageData object.</param>
 /// <param name="height">The height to give the new ImageData object.</param>
 /// <returns>
 /// A new ImageData object with the specified width and height. The new object is filled with
 /// transparent black pixels.
 /// </returns>
 public virtual ImageData CreateImageData(Any<uint, int> width, Any<uint, int> height)
 {
     return null;
 }
開發者ID:csuffyy,項目名稱:Bridge,代碼行數:14,代碼來源:CanvasRenderingContext2D.cs

示例14: Int16Array

 /// <summary>
 /// Creates a new Int16Array of the specified length.
 /// </summary>
 /// <param name="length">Length of array to create</param>
 public Int16Array(Any<int, long, uint, ulong> length)
 {
 }
開發者ID:GavinHwa,項目名稱:Bridge,代碼行數:7,代碼來源:Int16Array.cs

示例15: PutImageData

 /// <summary>
 /// Paints data from the given ImageData object onto the bitmap. If a dirty rectangle is provided,
 /// only the pixels from that rectangle are painted.
 /// </summary>
 /// <param name="imagedata">An imageData object containing the array of pixel values.</param>
 /// <param name="dx">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dy">
 /// Position offset in the target canvas context of the rectangle to be painted, relative to the
 /// rectangle in the origin image data.
 /// </param>
 /// <param name="dirtyX">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyY">
 /// Position of the top left point of the rectangle to be painted, in the origin image data.
 /// Defaults to the top left of the whole image data.
 /// </param>
 /// <param name="dirtyWidth">
 /// Width of the rectangle to be painted, in the origin image data. Defaults to the width of the image data.
 /// </param>
 /// <param name="dirtyHeight">
 /// Height of the rectangle to be painted, in the origin image data. Defaults to the height of the image data.
 /// </param>
 public virtual void PutImageData(ImageData imagedata, int dx, int dy, Any<uint?, int?> dirtyX = null,
                                  Any<uint?, int?> dirtyY = null, Any<uint?, int?> dirtyWidth = null,
                                  Any<uint?, int?> dirtyHeight = null)
 {
     return;
 }
開發者ID:shalves,項目名稱:Bridge,代碼行數:33,代碼來源:CanvasRenderingContext2D.cs


注:本文中的Any類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。